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)
ASP.NET Core
Certainly! Here are 10 advanced .NET Core interview questions covering various topics: 1. **ASP.NET Core Middleware Pipeline**: Explain the...
-
The error message you encountered ("DeleteService FAILED 1072: The specified service has been marked for deletion") indicates tha...
-
replace html of a div using jquery this is simple . just use .html() method of jquery to set new html for a div . $ ( "#divID...
-
declare @ProductIds nvarchar(50)='18,19' SELECT * FROM products Where (',' + @ProductIds +',' LIKE '%,' ...