User control javascript
Possible Duplicate:
JavaScript Function Definition in ASP User Control
Possible Duplicate:
JavaScript Function Definition in ASP User Control
How do you add Javascript file programmatically to the user control?
I have a very wired error, one of my custom controls seems that is create two compiled files, and when I try to load it dynamically with LoadControl() is just fail because can not cast the one to the other – even if they are exactly the same. I write the message to see that all is the same, is only change the compiled dll.
The only way I’ve found to persist property values within a user control is to use the ViewState.
I have a load of UserControl objects (ascx files) in their own little project. I then reference this project in two projects: The REST API (which is a class library project) and the main website.
How do you get a server control HTMLAnchor to have href=”#”. It keeps resolving the “#” to the control path.
I have seen two suggestions for my original question about whether it is possible to define a content area inside a user control and there are some helpful suggestions i.e.
I am trying to render a user control into a string. The application is set up to enable user to use tokens and user controls are rendered where the tokens are found.
I designed a user control. It contains a public property “CurrentValue”.
When I try to initialize the property using an Eval expression, a null value is assigned.
This question is a follow up to my question about sharing resources between web applications, because I have not yet found a good solution.