The names of the controls inside a usercontrol get renamed when they're rendered on the page (rt click & ViewSource to see it) so you need to code the field name. You can do this:
var vdp = document.getElementById('<%= dp.ClientID %>');
alert(vdp.value);
Wednesday, April 7, 2010
Saturday, April 3, 2010
Register Java Script with ajax on asp.net page
hi dear
there is a problem which we find when we r using javascript on any page which already use ajax .
we have to register our javascript code with asp.net
but if u still facing error of http request then
place all script and tags which are using <% %> in to asp:placeholder id="" runat="server" scripts asp:placeholder
it will solve ur problem thanks
there is a problem which we find when we r using javascript on any page which already use ajax .
we have to register our javascript code with asp.net
but if u still facing error of http request then
place all script and tags which are using <% %> in to asp:placeholder id="" runat="server" scripts asp:placeholder
it will solve ur problem thanks
Subscribe to:
Posts (Atom)
.net core
Sure, here are 50 .NET Core architect interview questions along with answers: 1. **What is .NET Core, and how does it differ from the tradi...
-
The error message you encountered ("DeleteService FAILED 1072: The specified service has been marked for deletion") indicates tha...
-
When running npx (with any arguments, but -v is easiest to test) from the global install folder, the following error is produced. ...