Questions tagged [aspx-user-control]
94 questions
25
votes
13 answers
Can't access control ID in code behind
I have the following code in my aspx page:
and this in my code behind:
protected void Page_Load(object sender, EventArgs e)
{
myButton.Text = "bye";
}
For some reason the intellisense…
David
3
votes
0 answers
Getting the error “Data retrieval failed for the subreport, 'Subreport1'”
I am trying to get a subreport working. I am using VS 2017.I am getting an error message like "Data retrieval failed for the subreport, 'Subreport1', located at...." while adding my subreports into main reoorts. Here's my code:
public override int…

JJohn
- 31
- 3
2
votes
1 answer
asp.net aspx OnClick do not fire when clicking while it is in progress of client service
I have Default.cs file with Default.aspx.cs file. Where I implemented rules_abort_execution_button with OnClick and OnServerClick methods. Both functions are implemented in Default.cs
UI button: Default.aspx.cs

BinaryTie
- 281
- 1
- 21
- 49
2
votes
1 answer
Gracefully migrate from SSRS2014/IE to SSRS2016/Edge
I have a chicken-egg-problem when upgrading from SSRS2014 to SSRS2016.
I cannot move to the new reportviewer because I still have users on
IE. The new report viewer cannot print nicely on Internet Explorer:
if you click print, you can download a…

realbart
- 3,497
- 1
- 25
- 37
2
votes
2 answers
How to use web handlers for PDF creation?
I have pretty less knowledge in web handlers. All I know is web handlers are used for creating some dynamic file creation purpose.
And also I know how to add the Web handlers.
But, I need to use web handlers in my ASP.NET project for PDF creation…

BOBIN JOSEPH
- 1,012
- 8
- 25
1
vote
1 answer
How to correctly hookup UserControl EventHandler in ASPX Page (not code-behind)
I have a UserControl, a wrapper for asp:DropDownList. This is a control that will be repeated quite a few times, and I would like to avoid having to write event hook-ups in the code-behind for every place that it is written.
I have been trying every…

Battle J. Butts
- 50
- 6
1
vote
2 answers
Accessing parent properties in UserControls from different aspx page
There is a aspx page which makes use of UserControl as follows.
Page1.aspx.cs
public class Page1
{
public string Code {get;set;}
....
}
In the Page1.aspx a user control called "UsrControl"
<@Register TagPrefix="Usr" NameSpace="UsrControl">
I…

user2630764
- 624
- 1
- 8
- 19
1
vote
1 answer
ASP.NET WebForms UserControl with generic type parameter
In Visual Studio 2022 ASP.NET Web Application Project (.NET Framework) I seemed to be able to make a User Control with generics:
public class StronglyTypedListBox : System.Web.UI.UserControl {
protected ListBox lst; // This line actually…

Jyunhao Shih
- 1,287
- 2
- 8
- 9
1
vote
0 answers
How to add image to image button within user controller for asp.net
I have 2 projects. One is the main webform project and the second is a library project for my user controls. This library doesn't use file extension ascx. I have to be clear on this. My objective is to create an user controller that contains 1…

SANOSUKE
- 11
- 4
1
vote
1 answer
How to call non static method from web method
In my code, previously I save data when a button click, here hdnDisplayOrderSaveData is ASP hidden filed
protected void btnSaveDisplayOrder_Click(object sender, EventArgs e)
string data = hdnDisplayOrderSaveData.Value;
Service…

thomsan
- 433
- 5
- 19
1
vote
0 answers
How to initialize a Tigra Calendar with today's date and retain the selected date in the Input field of an ASPX page?
I've had to replace my asp:Calendar control with another (Calendar/DatePicker) that also allows for year selection. After some searching, I found the Tigra Calendar; which seemed ideal because all I needed was a CSS link, JS source script, and an…

Sir Asks a Lot
- 19
- 1
- 7
1
vote
0 answers
Databinding in user control inside another user control
I have a DataBoundControl (Calendar.cs). It is a calendar that I can fill with events that are painted in it (The calendar shows the entire month and each day is divided in 24, showing different colours depending on the event that is on that…

popiandro
- 317
- 1
- 17
1
vote
0 answers
How to access the values of controls such as textbox and combo box from a user control of another user control on the same page
I would like to know how I could access the values of a textbox and/or dropdownlist in a user control from another user control that is on the same page. (VB.Net)

Sniffles
- 11
- 1
1
vote
2 answers
Dynamically adding a usercontrol to a page leaves controls inside the UC to null
I need to add a UserControl dynamicaaly to a Panel on a page. The UserControl has a Repeater with the ID of ARepeater. I load and add the UC on Page_Init. I examine the value of ARepeater in Init, Load, and PreRender events of UC but ARepeater is…

user1937093
- 13
- 4
1
vote
1 answer
Call method of user control once with multiple instances of user control on same page
I have a user control with a method to get data from a database. I'm using a tabbed main page and need to show the same info twice. Is there some way of having 2 user controls on the main page, but having the method called only once and fill the 2…

Karen
- 21
- 1