Questions tagged [web-user-controls]
107 questions
2
votes
0 answers
UserControl is not a known element
I've just added a new UserControl to a project of user controls. I'm just using the default generated code without any editing. When I try to place the UserControl on a test page in a separate project, intellisense shows all of the user controls in…

xr280xr
- 12,621
- 7
- 81
- 125
2
votes
4 answers
How do I load two ASP.NET UserControls on Demand?
I want load two user controls on demand.
asp:UpdatePanel ID="UpdatePanel1" runat="server"
ContentTemplate
asp:Button ID="Button1" runat="server" Text="Button" UseSubmitBehavior="false"
OnClick="Button1_Click" /
div…

IFA_User
- 43
- 1
- 4
2
votes
1 answer
Extending usercontrol, Inner controls not initialized if declared on ascx page
The Usercontrol I am creating is made up of 3 files as expected (ascx, ascx.cs, and ascx.designer.cs)
My Problem :
Controls created in the aspx page ( asp:Button runat="server" id="mybutton" />) are not being initialized properly, such that…

Ninjanoel
- 2,864
- 4
- 33
- 53
1
vote
1 answer
User Controls Asp .Net
Task – develop user control, which has <%#Bind(“expression”)%>`
How send parametrs into user control and how to use Bind and Eval ?

Olexander Shevchuk
- 11
- 2
1
vote
4 answers
javascript and asp.net web user controls
I have a web user control that generates the following html on the client.
I want to reference a specific RadioButton control using JavaScript.
I am not sure how to do this as the RadioButton ID is generated by asp.net.
For example I give the…

TonyAbell
- 1,310
- 4
- 19
- 28
1
vote
3 answers
How do I register event handlers for a web user control in my code behind?
I'm having a problem setting up an event on a form. Here's the setup:
I was given a page with two controls, two different versions of a form for the end-user to fill out- standard and advanced. The two forms have different code and javascript, so…

Coronus
- 587
- 6
- 26
1
vote
1 answer
ASP.NET - How do I register multiple JavaScript calls to run on PostBack?
I have an ASP.NET page with two instances of the same Web User Control (a simple WYSIWYG editor). On submit, the WUCs do a little JavaScript magic and then proceed with a normal postback.
The first instance seems to be working, but the second fails…

Justin Morgan - On strike
- 30,035
- 12
- 80
- 104
1
vote
0 answers
Can I develop visual studio extension for viewing Web User Control in temp web page?
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…

Amr Badawy
- 7,453
- 12
- 49
- 84
1
vote
1 answer
How to use two web user control on one page in asp.net
I am working on web user controls. I have created two simple web user controls. The first on is saving data in database and second one is retrieving data. They are working perfectly fine.
But now I am trying to add those both control on single page…

ruder partap
- 83
- 5
1
vote
2 answers
Call a function of a Web User Control from the parent page
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 declare the Web User Control
On…

roncansan
- 2,310
- 6
- 27
- 34
1
vote
1 answer
ASP.NET/AJAX - Web user control update panel triggering from outside
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.

Julian
- 1,105
- 2
- 26
- 57
1
vote
3 answers
sharing web user controls across projects
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…

Kyle
- 10,839
- 17
- 53
- 63
1
vote
1 answer
How do I customize the ASP.Net Bubble Event to pass an additional variable?
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…

SteveGSD
- 1,750
- 1
- 17
- 28
1
vote
1 answer
Can you get SkinID Autocompletion in ASCX Controls
Working in VS 2008
When working on on ASPX file in Source mode, if i've specified a StyleSheetTheme in the page directive of the file, then Visual Studio will provide me with AutoCompletion lists of the possible skinID values for a control…

Eoin Campbell
- 43,500
- 17
- 101
- 157
1
vote
1 answer
Alternative to window.frameelement.document.forms[0]?
I am looking at some code that is failing in current versions of Chrome and IE 11.
It errors because of the line:
var form = window.frameElement.document.forms[0];
With error:
"JavaScript runtime error: Unable to get property 'forms' of undefined…

treeNinja
- 165
- 1
- 3
- 9