Questions tagged [aspx-user-control]
94 questions
0
votes
0 answers
c# Chart Label font / Position
I made a chart in an .aspx page in Visual Studio using C#.
I have been unable to costumize the Axis Labels, They are way too small to be seen.
here's how they look like in the "final" product
https://i.stack.imgur.com/rk7UO.jpg
As you can see the…

Gustavo Jose
- 45
- 1
- 2
- 12
0
votes
1 answer
Saving values from User Control
I have an aspx page. On pageLoad a call a method that loads a user control
protected void Page_Load(object sender, EventArgs e)
{
LoadUC();
}
This loads the user control onto the page (into a placeholder) passing a few generic values.
private…

FatimahM
- 105
- 1
- 10
0
votes
1 answer
How to bypass Asp.net control validation only for few control on button click?
I have an ASP.NET form that takes input from a user. There is a Save & Add button on the form to perform different functionalities.
The problem I'm having is that on the form I have a set of validators and when the Add button is pressed the form…

Tech Learner
- 1,227
- 6
- 24
- 59
0
votes
0 answers
Send email with a resized picture with asp.net
It seems I need to get "g" into the attachment in place of fileUpload1.PostedFile. I just can't seem to figure it out. Any help is appreciated. I tried to use g.save(@"c:\Temp\test.jpg"), but it won't save either :(
var bmp = new…

Jason
- 57
- 8
0
votes
0 answers
How to apply boostrap style to .aspx view?
a need apply boostrap style in mi DropDownList only in the view, not my model
<% using (Html.BeginForm(FormMethod.Post))
{ %>
<%: Html.ValidationSummary(true) %>

rodrigo.rodriguez
- 299
- 2
- 16
0
votes
3 answers
How to pass parameter value In .aspx page to Sql Query?
I am working in ASP.NET C# source, in that I have a process to pass parameter value from an ASPX page.
In the below code I need to pass a.cYear and AssignedDate through ASP.NET controls.
Note : I'm not using .aspx.cs page, I am creating this code in…

Surya
- 157
- 2
- 7
- 25
0
votes
1 answer
Using c# in Web Forms to passing parameter to user control
From an aspx page, I am trying to display a user control for each item in a collection, but the C# seems to be ignored when tryign to set the UserControl parameter:
<%foreach (Fetus item in this.pregnancy.Fetus) {%>
//this returns a GUID:
…

user6788933
- 285
- 2
- 10
0
votes
0 answers
How to reference UserControl?
I work on an application that has a particular design flaw, where some content should be accessible in multiple areas of the application depending on what role(s) a user may have. In the past this has led developers to copy and paste pages into…

Chris
- 679
- 1
- 11
- 26
0
votes
0 answers
How to load ascx from WebMethod
I've been struggling to load an .ascx (User Control) after a WebMethod has completed the SQL task.
The WebMethod is triggered by an Ajax Function
$(document).ready(function () {
var prm = Sys.WebForms.PageRequestManager.getInstance();
…

cyberac75
- 3
- 5
0
votes
0 answers
How to use same user control multiple times in aspx page
How to use same user control multiple times in aspx page and load the user control on tab click.
I've defined an user control(UDTControl.ascx) and declared it in each tab panel. On tab click, based on tab index I'm passing the tabname to ascx…

Prashant Hurakadli
- 11
- 5
0
votes
0 answers
Rewrite the .aspx to .html
I want to rewrite it to Html. can any one help me with that?
Rachel
0
votes
1 answer
ASPX validation controllers not displaying messages
So this is what i have
protected void submitEmail_Click(object sender, EventArgs e)
{
try
{
if (!Page.IsValid)
{
validationMsg.Visible = true;
validationMsg.Text = "Please insert a valid email…
user6015054
0
votes
0 answers
Doing Inversion Of Control with webforms aspx user control
WebForms 4.61
IoC is done using Castle Windsor
I have a legacy WebForms application that I am working on adding IoC to. I implemented constructor and property injection for Page controls as described here which basically uses a HttpModule to…

TheEdge
- 9,291
- 15
- 67
- 135
0
votes
0 answers
Where should I initialize a web form user control in it's container page?
I have a web form called addresspage.aspx which contains a user control called addresscontrol.ascx. There are properties exposed by addresscontrol.ascx like ZipCode.
I have to achieve two things.
Read the ZipCode query string from the URL…

wonderful world
- 10,969
- 20
- 97
- 194
0
votes
0 answers
How to handle numerous web forms that vary with the same basic controls?
I have three ascx web forms user controls to gather the customer credit card information similar to the following. The first form web user control has two basic textbox controls, the second one has four and the last one has one. For brevity, the…

wonderful world
- 10,969
- 20
- 97
- 194