Ask a Question related to ASP.NET General, Design and Development.
-
Matthew Nace #1
Javascript in ascx file
Is there any limitations in using javascript in .ascx
files (user controls) I got it working just fine but some
of the properties for objects, ie form.item property isn't
coming up. In .aspx files everything is fine. I want to
set a boolean var, set that to a hidden html element, then
test it in the code-behind. I have attached the ascx file
for reference. Is there something I need to do.
What this is all coming down to is so I can have the user
confirm a deletion in the web site, and then test for the
boolean value. And since you can't use message boxes in
ASP.Net this is the root I'm taking. Thought if there is a
better solution in displaying a message box, I'm all ears,
thanks.
Matthew Nace Guest
-
programatically get ascx file name
Can anyone tell me how to get a string of the file name for an ascx file? On an aspx file, Request.Servervariables will return the path of the... -
JavaScript Src attrubute in ascx
I have a System.Web.UI.UserControl as custom control and I have a javascript block for user control. The problem is I want to bring src attribute... -
Using Global variable in .ascx file
How can I use a Global variable in .ascx page. I have created a menu control and registered it in my .ascx file. I want to use the global variable... -
how to load an ascx file in class.vb ?
I need to import an *;ascx, as an object, in my class, that is in myclass.vb. How can i do ? i saw the method LoadControl but i can't use it, or... -
DropDownList in an .ascx file problem.
I have a dropdownlist in an .ascx file. When using the dropdown it is workin 3 or 4 times and suddenly it gives an error like "Control... -
David Waz... #2
Javascript in ascx file
I personally think a better ROUTE is to add an on-click
event attribute to the control that uses a confirm message:
Code-behind:
btnDelete.Attributes("OnClick") = "return confirm('Ok to
delete?');"
>-----Original Message-----
>Is there any limitations in using javascript in .ascx
>files (user controls) I got it working just fine but some
>of the properties for objects, ie form.item property iDavid Waz... Guest



Reply With Quote

