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
1
vote
1 answer

How can I toggle a css class automatically on mobile view?

I would like to automatically toggle an asp.net control (Textbox) class when a user opens the website on mobile. I tried the following code it works to get the screen size automatically. but now I want to change or add a new class to the textbox…
rebo lavo
  • 179
  • 1
  • 2
  • 13
1
vote
1 answer

how to hide & in edit mode

I have the following inside an aspx page layout inside SharePoint web application:-
John John
  • 1
  • 72
  • 238
  • 501
1
vote
1 answer

How to force ASP.NET ChangePassword And PasswordRecovery control to use enter key?

In my company I have a ASP.NET web page where there is a ChangePasswordControl and a RecoveryPassword control. The problem now is that, when user filling out the data hits enter key on the keyboard he get's logged out instead of validating the user.…
Rafal_Koscinski
  • 317
  • 5
  • 22
1
vote
2 answers

Additional html tags with dynamic radio button

I am creating some radio buttons dynamically by: Regions.ascx
In Regions.ascx.cs foreach (var region in Config.ConfigString("str_Regions").Split(',')) …
Ross Cooper
  • 245
  • 2
  • 10
  • 20
1
vote
1 answer

How do I access controls from the parent page from within an ASP.NET User Control?

I have an ASP.NET Web Forms page childPage.aspx with masterPage.aspx as the master page. The childPage.aspx has a user control (userControl.ascx) control defined on it. Now, I am trying to access the controls on childPage.aspx from within the user…
Rhushikesh
  • 3,630
  • 8
  • 45
  • 82
1
vote
5 answers

Redirect webpage to same tab in asp.net

I'm using a asp.net hyperlink control to open a web URL when a user click the hyperlink. What I want to do is, say user click the hyperlink, so it should open new tab (not a new window). if the user clicks the link again, it should not open a…
Aruna
  • 1,962
  • 4
  • 25
  • 50
1
vote
1 answer

Asp.NET: How to install CoolControls?

I cannot seem to install this control. I use Visual Studi 2012, I downloaded the dll. I put it in my project folder, I added a reference of it, and I added this line to my aspx site: <%@ Register Assembly="IdeaSparx.CoolControls.Web"…
czadam
  • 1,827
  • 1
  • 18
  • 31
1
vote
2 answers

show month in asp.net calendar control based on value of dropdownlist

what is the method to select the month name from dropdownlist and then show the month in asp.net calender control ive tried so much but no success picture is attached for better understanding
Mohsin
  • 902
  • 3
  • 23
  • 49
1
vote
4 answers

Increase the Width of a Dropdown List

How can I increase the width of a DropDownList in ASP.NET?
Jaison
1
vote
1 answer

Is it inefficient to use ASP web forms controls for every HTML tag on a web page?

Should I be using tags (or literal tags) for every piece of content on my page (h tags, p tags, etc.)? Even if it is not dynamic. Or is this considered to be inefficient having the server process all this content?
Neil
  • 2,509
  • 7
  • 32
  • 47
1
vote
3 answers

how to add menuItemClick event when menuItem is created programatically in asp.net?

In my asp.net web application, i have created a menu and menuItem programatically based on the Logged in user role.The Code is given below... Menu menu = new Menu(); menu.CssClass = "menu"; menu.IncludeStyleBlock = false; …
Saravanan
  • 11,372
  • 43
  • 143
  • 213
1
vote
1 answer

ASP.NET wrap an asp:HyperLink in
  • 's, from server-side
  • I have the next structure for a menu item: class MenuItem { public string Path, Title; } I want to be able to Iterate an object of MenuItem[], creating a new object of asp:HyperLink on each iteration, and to add it to a
      list. One thing…
    Novak
    • 2,760
    • 9
    • 42
    • 63
    1
    vote
    1 answer

    ExtenderControl not functioning as expected

    I am trying to make my own version of a repeater control. It is not a DataBoundControl; it won't be bound to a DataSource, DataSourceID, DataBind method etc etc. It has is a template nested inside it, and, a property called RepeatCount, and it will…
    deostroll
    • 11,661
    • 21
    • 90
    • 161
    1
    vote
    1 answer

    Umbraco 4.9.0 usercontrol error

    I'm getting the following error in my usercontrol properties: Error reading usercontrols/BrandHub/emintRegister.ascx The following list shows the Public Properties from the Control. By checking the Properties and click the "Save Properties" button…
    JV10
    • 891
    • 3
    • 17
    • 40
    1
    vote
    4 answers

    how to display html text inside the textarea control in asp.net[.net 4 framework]?

    I have added one submit button and one textArea control in asp.net(4 framework) page.Whenever user clicks submit button, then i will get some html text and needs to display it in the textArea control. for example: (i) some text then i…
    Saravanan
    • 11,372
    • 43
    • 143
    • 213