Questions tagged [asp.net-controls]

ASP.NET Web server controls are objects on ASP.NET Web pages that run when the page is requested and that render markup to a browser. Many Web server controls resemble familiar HTML elements, such as buttons and text boxes. Other controls encompass complex behavior, such as a calendar controls, and controls that manage data connections.

174 questions
0
votes
0 answers

ASP.NET 4.0 Server Control: Handling server control propertyChanged in javascript

I am trying to build an ASP.NET custom server control. I am using .NET framework 4.0. All I want is to be notified in my javascript function, about the values being changed on the server. Or, even better, if I can get my javascript model in sync…
Prakhar Mishra
  • 1,586
  • 4
  • 28
  • 52
0
votes
2 answers

How to set session variable on a menu item's click in ASP.NET

ASP newbie here, in my website I need to set a session variable when I click the menu item( not on page load or pre init or init). How can I achieve this, I have a menu control in my master page which has a sitemap file attached to it? How to know…
Mr_Hmp
  • 2,474
  • 2
  • 35
  • 53
0
votes
2 answers

Retrieve SelectedValues of a dynamically generated control

I'm trying to get my head around generating dynamic controls. I have a Button1_Clickevent that creates a CheckBoxList (id=cblAnswers) or a RadioButtonList (id=rblAnswers) depending on the value of a field in a database. On Button3_Click event I…
Bhav
  • 1,957
  • 7
  • 33
  • 66
0
votes
1 answer

ASP.Net C# - Access dynamically generated List controls

Depending on the value of a field 'type' in a database, I want to generate either a CheckBoxList (if 'type' is C) or a RadioButtonList (if 'type' is R), and then populate them accordingly. I've managed to create the necessary control, however, in…
Bhav
  • 1,957
  • 7
  • 33
  • 66
0
votes
1 answer

Is there a simple way to call a method used to change display from a parent control?

I am trying to create a page using Ajax Tabs and user controls. The .aspx page contains a reference to a default control <%@ Register src="~/Controls/DefaultControl.ascx" tagname="DefaultControl" tagprefix="uc1" %>
0
votes
1 answer

Asp.net bug (Showing data during debugging in dataset but the data can not be assigned to Asp.net controls such as Gridview,TextBox,etc)

Asp.net Debug mode showing data in dataset but asp.net controls are not getting able to assigned the dataset's Value Asp.net bug (Showing data during debugging in dataset but the data can not be assigned to Asp.net controls such as…
user2902617
0
votes
1 answer

jQuery Validate rules wont apply

I am trying to use jQuery validate for a form. I have added My form:
At bottom of…
Zholen
  • 1,762
  • 2
  • 24
  • 53
0
votes
2 answers

Disable all controls and links on redirection

I need information and code. What I want to achieve is that when user click on a link or control, the rest of the controls and links will become disabled. So user can't click on any link or control while page is redirecting.
user2902617
0
votes
1 answer

Adding more controls to readymade ones

Hi I started new with asp.net Started building up a website but here's where I got stuck, Used the readymade theme which contains a register user control Which has a textbox for accepting username n password. I added 3 more controls by copy pasting…
user2866238
  • 47
  • 2
  • 6
0
votes
2 answers

Need help figuring out a way to input data into an asp:DataGrid

I have an asp:DataGrid I need to populate, and the original developer created a weird wrapper with very little flexibility, so I have decided to switch it over to a DataTable instead. The only issue is the event that it uses to populate my grid does…
Carson
  • 1,169
  • 13
  • 36
0
votes
1 answer

use ajax into repeater to update data

I've a repeater ASP.NET control that contain an image slider that display 3 images every 10 sec by random from DB.I used a UpdatePanel ASP.NET control to reload this repeater .every things is OK, but I've a problem, when passed 10 seconds page is…
Hamid Talebi
  • 1,298
  • 2
  • 24
  • 42
0
votes
0 answers

worked with datalist asp.net control

I have an HTML code, that want to bind to sql server DB and using the data list asp.net control.as well as we know data list can repeat the code to read all data from DB. but in my code there is a tag that i don't want to repeat.How can i do this…
Hamid Talebi
  • 1,298
  • 2
  • 24
  • 42
0
votes
3 answers

Button in templatefield won't fire up Click function

I have a gridview, which gets info by parametrized sqldatasource. I want to fire up a function by pressing a button, sending one of the fields (id). But function won't even fire up.. here's my aspx part:
Dvirski
  • 321
  • 4
  • 16
  • 36
0
votes
1 answer

Asp.net controls in Div tag are not visible when Div tag is visible?

I'm trying to show/hide a Div tag (which contains other asp.net controls) on a RadioButtonList OnSelectedIndexChanged event. Issue: When i show Div tag, the controls in the Div tag are not visible. See my code below .aspx page
0
votes
1 answer

Single Value Binding

The intent is to append the javascript code within the OnClientClick event to pass in the value of SearchIDTextbox as the ID parameter. If I hard code "22" for ???? the function runs properly. I thinK I need to make ???? a single value bind…