nishi2010 wrote:
The problem is that in code src.value = source, there is an error:
Object reference not set to an instance of an object
This simply means there is an issue at line:
nishi2010 wrote:
HtmlInputText src = (HtmlInputText) Master.FindControl("txtsearch");
Use a DEBUGGER and see if you are getting anything for '
(HtmlInputText) Master.FindControl("txtsearch")
'?
It doesn't look like. src is null after the execution of this line and thus, src.Value is nothing.
Now few more things:
1. Make sure you have
runat=server
on that
htmlInput
control(which looks like used as
type="text"
)
2. src.
Value = "someValue";
Your code snippet states it's small 'v' in value. Might be a typo here, still just check it.