Surprised that i havent been able to find this myself, but anyway. Let's say i use my web user control like this:
<myprefix:mytag userid="4" runat="server">Some fancy text</myprefix:mytag>
How would i be able to access the text inside the tags from its codebehind ("Some fancy text")? Was expecting it to be exposed through this.Text, t...
I think I summed up the question in the title. Here is some further elaboration...
I have a web user control that is used in multiple places, sometimes more than once on a given page.
The web user control has a specific set of JavaScript functions (mostly jQuery code) that are containted within *.js files and automatically inserted in...
I am using BubbleEvent to give events from a web user control to its parent (which is a Default.aspx with code behind page).
I would like to use BubbleEvent to not only pass the sender and event, but also an integer or another variable.
Is there a way to add a parameter to the BubbleEvent, or is there a different way I should be approa...
I've done this using a regular .cs file that just extends System.Web.UI.UserControl and then included the assembly of the project that contains the control into other projects. I've also created .ascx files in one project then copied all ascx files from a specified folder in the properties->Build Events->Pre-build event.
Now what I wan...
Hi,
I've got an web user control with an updatepanel. On my mainpage I got like 3 of those controls. Now I want to have an timer in the mainpage which would trigger the updatepanels in the web user controls.
How can I manage this?
Thanks in advance.
...
I need to align rows in different tables that are layed out horizontally. I'd prefer to put the html code in a single web user control so I can create as many instances of that control as I want and lay them out horizontally. The problem is, the text in the rows needs to wrap. So some rows may expand vertically and some may not (see t...
i tried to extend the listbox control and override its RenderEndTag method.
everything works well if i used the control directly in a webapage. ie, the RenderEndTag is called.
but when i try to put the control in a WebUserControl and use the webusercontorl in a webpage, the RenderEndTag of the extended control is not called. this is...
Hi,
I'm creating a comments web user control. I want to use this comments control on distinct pages like: articles, attractions and categories.
So, on the articles page I delcare the Web User Control
<uc1:Comments ID="Comments1" runat="server" />
On the control, there is a funtion call loadComments
public void LoadComents(int ID,...
I have created a web user control called Activity. I have defined a public-facing event on that web user control called OnActivityDelete. There is a delete button in the Activity control. When the delete button is clicked, the Activity control fires the OnActivityDelete event. I am using this web user control in a repeater. I assign an e...
I work now in a huge project that we build all interface as Web User Controls .. every time I want to view & test one i should add it in web page and then view ..
I think in a way to develop a visual studio extension that show "View in Temp Web Page" when I make right click on a user control to allow me view user control in a generated t...
Lets say I have three DropDownList controls in a web user control and they depend on each other.
Categories
Brands
Products
Explanation:
After I choose a category from Categories dropdown list, related brands are loaded in Brands DropDownList and same happens when I choose specific brand and they are all located in a web user contro...