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
2
votes
4 answers

Asp.Net Dropdownlist Set Item View limit

I have a country DropDownList in Asp.Net Page.I Bind DropDownList from Database. it gives me 239 item. and it is very large scroll in page. so, my Question how to set 10 item in Dropdown and then scroll in List.
Kuldip Rana
  • 131
  • 1
  • 7
  • 21
2
votes
2 answers

Can you nest asp.net controls?

I want to create control which would contain other controls. For these other controls I want to create "base" control with some default look and background logic and then derive all other controls from this "base" control. Is this possible, and…
Primoz
  • 4,079
  • 17
  • 56
  • 67
2
votes
1 answer

How to get argument in Page_Load method?

I have this control: Here how I bind the data on server side to the control above: …
Michael
  • 13,950
  • 57
  • 145
  • 288
2
votes
1 answer

How to iterate over the controls inside an asp.net page?

This might be a noob question but I couldn't understand why it didn't work. I want to clear all the forms inside the page after the user has entered a new record. I call it right before my OnClick method finishes. My page also does not have a parent…
ardatosun
  • 457
  • 4
  • 22
2
votes
1 answer

Adding a GridViewRowCollection to the asp.net GridView

i have a record of a gridviewrowcollection. and i'm having issues with adding them to the grid. GridViewRowCollection dr = new GridViewRowCollection(list); StatisticsGrid.DataSource = dr; doesnt work. StatisticsGrid.Rows does have an add method,…
CoffeeCode
  • 4,296
  • 9
  • 40
  • 55
2
votes
1 answer

ASP.NET custom templates, still ASP.NET controls possible?

Hello: we currently do not use asp.net controls (no web forms). The way we do is: 1> Read HTML file from disk 2> lookup database, parse tags and populate data finally, Response.Write(page.ToString()); here there is no possibility of using asp.net…
Sha Le
  • 21
  • 1
2
votes
1 answer

ASP.NET how to create container control which will have exactly two containers?

How to create a web control which will contain exactly two containers in ASP.NET 3.5. Like always exactly two columns (divs). I know default way allows you to have ControlCollection by overriding CreateControlCollection() method, but whis allows you…
Artem
  • 7,275
  • 15
  • 57
  • 97
2
votes
2 answers

Add the Umbraco "siteName" textstring to my .net usercontrol

I have a text string property type that I use to display the "siteName" in the page title: <umbraco:Item runat="server" field="siteName" recursive="true" /> What code do I need in my .net usercontrol to add the "siteName"?
JV10
  • 891
  • 3
  • 17
  • 40
2
votes
2 answers

Cannot access asp.net changepassword controls in codebehind

I cannot access any of my asp controls in my codebehind. The .aspx page is as follows <%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="ChangePassword"…
tuckerjt07
  • 902
  • 1
  • 12
  • 31
2
votes
3 answers

Positioning .NET Controls

I want my label "The Top Row" to be positioned near the top row of my gridview as I indicated with yellow below, I tried absolute positioning the lable but when displayed, there are problems with it. What is the best way to do this ? (float right…
HOY
  • 1,067
  • 10
  • 42
  • 85
1
vote
2 answers

Does having an invisible ASP.NET control secure?

For example, Lets say that I have a gridview column which has important controls, Does it secure if I make them invisible on regular users, and visible for admin users? If (Requst.Servervariables.Get("LOGON_USER").Split('\\')[1] == "MyAdminUser") { …
HOY
  • 1,067
  • 10
  • 42
  • 85
1
vote
1 answer

Gridview sorting doesn't fire in first click

I have the following two controls in my code gridview (for data display) sqldatasource (source of my gridview) I want to change the gridview, but when I change the sqlcommandstring in my sqldatasource, in new view of my datagrid table sorting…
HOY
  • 1,067
  • 10
  • 42
  • 85
1
vote
1 answer

Which control supports templates?

I've got a user control which can be rendered in several different ways depending on the value of one of the properties. For example: The markup could be:

higgsy
  • 1,991
  • 8
  • 30
  • 47
1
vote
2 answers

.NET Button Control, OnClick Event: (Try, Catch statement?)

I have a button on a web page that I just need a little help with some extra code. I think I need a TRY, CATCH statement?, this is what I have so far: I have a simple web page that has a button which at the moment when pressed enables the user…
Betty
  • 621
  • 1
  • 12
  • 24
1
vote
3 answers

ASP.NET Design Issue: what is the best asp.net control for creating a table with 15 properties?

I am a new ASP.NET developer and now I need to develop a data entry system with 15 fields that allow the admin of the system to enter some data under each one of these 15 properties. From what I learned in ASP.NET tutorial, I think the best control…
Mohammed Al-Ali
  • 75
  • 2
  • 10
1 2
3
11 12