kaisersoze
Centurion
- Joined
- Aug 27, 2003
- Messages
- 152
hi,
I have a asp:textbox object in the page. I am loading a value into the textbox from server-side. When user clicks on a link, javascript should pick the value from the text box and should show an alert depending on the if stmt.
I know i should do something lke this:
var v = document.getElementById("txtPath").value;
I get error of i do like that (object cannot be null something of that sort)
I right clicked and said view source code, I see _ctl1_ is added to txtpath. If i use "_ctl1_txtPath" then it works. why is it happening like this.
I have a asp:textbox object in the page. I am loading a value into the textbox from server-side. When user clicks on a link, javascript should pick the value from the text box and should show an alert depending on the if stmt.
I know i should do something lke this:
var v = document.getElementById("txtPath").value;
I get error of i do like that (object cannot be null something of that sort)
I right clicked and said view source code, I see _ctl1_ is added to txtpath. If i use "_ctl1_txtPath" then it works. why is it happening like this.