Questions tagged [webusercontrols]
22 questions
0
votes
3 answers
passing a value to WebUserControl for show in a lable
hi
i have a WebUserControl that have a lable for show message
how can i send a value to the lable from Page to my WebUserControl at runtime.

Ali
- 689
- 1
- 5
- 6
0
votes
2 answers
Cannot implicitly convert type 'System.Web.UI.Control' to 'System.Web.UI.UserControl
am trying to load usercontrol in c#.
Can add the .ascx onto my .aspx page by using the code below:
Control MyUserControl;
MyUserControl = LoadControl("~/controls/Editor.ascx");
PlaceHolder1.Controls.Add(MyUserControl);
However, I want…

Chris
- 470
- 1
- 10
- 19
0
votes
4 answers
User control's elements not getting initialised when added dynamically?
I've got a custom ASP.Net web user control I've built; done this enough times before but this one is misbehaving and I can't spot why.
Where the calling page includes the user control directly in its markup, all is well and the control behaves as…

eftpotrm
- 2,241
- 1
- 20
- 24
0
votes
1 answer
ASP.Net event only being raised every other time?
I have an ASP.Net web user control which represents a single entry in a list. To allow users to reorder the items, each item has buttons to move the item up or down the list. Clicking on one of these raises an event to the parent page, which then…

eftpotrm
- 2,241
- 1
- 20
- 24
0
votes
1 answer
how to omit style sheet to apply style to other web page
i 'm making one message repeater like new message notification dialogue from this reference http://codepen.io/petebot/full/CpKzI here i just found one new style sheet that gives nice look to message dialogue. but with little restriction i only want…

Shal
- 319
- 4
- 8
- 25
0
votes
3 answers
Dynamically add WebUser Controls in a loop
hi I like to add Dynamically add WebUser Controls in a loop
like this con1 con2 con3 and more or less depending on the loop
is there a good way to do this
my first try look like this. but i don't know how to tell it to use the next one grpCon2
…

Entvex
- 35
- 1
- 1
- 9
0
votes
0 answers
Can't get Select event at GridView in userControl
I have button and GridView at UserControl.
When I press button.It will perform at PageLoad function.
But when I click select in GridView.It can't work same button at PageLoad.
if (!IsPostBack){}
else{
string…

Brian
- 163
- 2
- 18