Questions tagged [asp.net-webcontrol]

asp.net WebControl is a control hosted on a webpage or in a UserControl. It consists of one or more classes, working in tandem, and is hosted on an aspx page or in a UserControl. WebControls don't have a UI "page" and must render their content directly. They can be reused in other applications by referencing their DLLs.

78 questions
13
votes
3 answers

Is there an ASP.NET WebControl for the

tag?

Simple question, difficult to search for (due to the main part of the question being the single letter p)! In ASP.NET, is rendered as a
block, is rendered as a block... is there one that renders as…
freefaller
  • 19,368
  • 7
  • 57
  • 87
5
votes
2 answers

using <%= %> or <%# %> with runat=server in ASP.NET

I have a web control that looks like this public class Foo : WebControl { [Bindable(true)] [Category("Default")] [DefaultValue("")] [Localizable(true)] public string Bar { get; set; } protected override void Render(HtmlTextWriter…
mhenry1384
  • 7,538
  • 5
  • 55
  • 74
4
votes
4 answers

MVC HtmlHelpers: can you write into the page header?

I'm a web forms programmer who's interested in learning a bit about MVC. I have created a whole suite of web controls which can access the page header directly and write stuff in there. For example, if I have a control to render a text box with…
David
  • 15,750
  • 22
  • 90
  • 150
4
votes
2 answers

How can I include additional markup within a 'Content' inner property of an ASP.Net WebControl?

I've searched the site and I cannot find a solution for my problem, so apologies if it's already been answered (I'm sure someone must have asked this before). I have written a jQuery Popup window that I've packaged up as a WebControl and…
djdd87
  • 67,346
  • 27
  • 156
  • 195
3
votes
2 answers

ASP.NET WebForms in an ASP.NET MVC 2 application

Is it possible to call normal ASPX pages with their normal life-cycle in an ASP.NET MVC 2 application? What about web controls and ajax.net toolkit? Thank you!
ab_732
  • 3,639
  • 6
  • 45
  • 61
3
votes
1 answer

Update button fires edit event handler

I have a gridview. Markup is like this...
El Ronnoco
  • 11,753
  • 5
  • 38
  • 65
2
votes
4 answers

Membership Provider ChangePassword Method Return Type Problem

We have implemented a Custom Membership provider and have a change password control on a webpage that uses this provider. The ChangePassword method in this membership provider class checks some business logic about password strength and validity by…
Punit Vora
  • 5,052
  • 4
  • 35
  • 44
2
votes
0 answers

Visual Studio 2010: create your own layout for listview - [Render Template]

Ok i need write less code. How i can create my own Layout in the ListView configuration wizard? I want add my custom Layout in "Select a Layout" box. It's possibile? How i can? Thanks
sintetico82
  • 483
  • 1
  • 9
  • 24
2
votes
2 answers

Convert string to to HtmlTableRow Control

I have a HTML row () generated on client side, I want to convert the string which contains the row-cells information in a HtmlTableRow control. That is what I have done so far using the example on Convert string to WebControls - asp.net. Thanks …
christiangobo
  • 520
  • 1
  • 7
  • 19
2
votes
2 answers

asp:HyperLink is not rendered on browser

Hello guys I'm stuck with this weird problem ,asp:HyperLink control is not being rendered inside browser,it does not even exists in the final HTML sent to the browser. Home.aspx Asp.net Markup
DayTimeCoder
  • 4,294
  • 5
  • 38
  • 61
2
votes
1 answer

The page Y.ascx cannot use the user control X.ascx

I recently got the following error in my web application. The page 'ControlName.ascx' cannot use the user control 'OtherControl.ascx', because it is registered in web.config and lives in the same directory as the page. Whilst I was able to fix…
benni_mac_b
  • 8,803
  • 5
  • 39
  • 59
1
vote
2 answers

Subclass DropdownList and get value of public attribute

I have a custom DropDownList control:
PhillyNJ
  • 3,859
  • 4
  • 38
  • 64
1
vote
1 answer

Why am I seeing 'type or namespace 'HtmlIframe' does not exist in the namespace 'System.Web.UI.HtmlControls' (are you missing an assembly reference?)'

Just resurrected an old website that I haven't worked on in several years. Created a new ASP Website project in Visual Studio and imported all the files. Everything works fine except for one page. It keeps giving me an error on an inline that the…
Geoff
  • 353
  • 3
  • 19
1
vote
1 answer

ASP.NET Custom Web control

I'm experiencing some problems and right now I don't know how to solve it. The web control simply updates a clock represented by a label every second. My issue is that the web control exposes a property called 'Formato' where the user can select to…
1
vote
2 answers

Can ASP.NET web controls take in anything in the constructor?

I want to have a secure control but also want to extend the existing button or textbox the asp.net framework provides. So my class dec would look something like: public class MyTextBox : System.Web.UI.WebControls.TextBox I was thinking something…
rball
  • 6,925
  • 7
  • 49
  • 77
1
2 3 4 5 6