webcontrols

How to align columns in multiple GridViews

How can I get several GridViews on a single page to share the same Column widths? I have four GridViews with (essentially) the same columns in each. They have unique headers and represent data from different queries. I want to maximize readability by allowing the columns to be dynamically sized based on the data but I don't want each ...

Control acessing event handler in web form class

I have a Custom WebControl. Inside this control I add a button and I want it to access an EventHandler that is on the WebForm where the control is included. The handler handles with controls from the WebForm, so it has to be there. I could probably manage to take the button out of the control, but it would be better to keep it on the con...

Why don't all System.Web.UI.WebControl classes with Text properties implement ITextControl?

I'm curious why only some System.Web.UI.WebControl controls implement certain interfaces when they have the same properties of an interface. For instance, there are plenty of controls that have a Text property but only the following implement ITextControl: Label Literal DataBoundLiteral TextBox ListControl (TextBox and ListControl ...

looping through Page Controls - using same logic for multiple control types

I'm looping through the page controls like so foreach (Control ctrl in control.Controls) { if (ctrl is System.Web.UI.WebControls.TextBox || ctrl is System.Web.UI.WebControls.Label) { } } I want to be able to declare a variable inside this if statements that is the same type as 'ctrl' in ...

Web Data Controls Additional Functions

Hi, I am in need of proper way of representing my data. What I want is Grouping Sorting Collapsable I shouldn't use third party tools. From last 2 days I was searching net, but dint got the solution. Plz help me in getting these functionalities using any kind of web data control(grid view, repeater, ..) Thank You ...

Web Data controls

Hi, I need to implement Grouping, Sorting, Collapsable for a sql datasource. I shouldn't use third party tools. From last 2 days I was searching net, but dint got the solution. Plz help me in getting these functionalities using any kind of web data control(grid view, repeater, ..) Thank You ...

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 IScriptControl. The last step is to be able to write the markup within the tags of my control. I've...

why can't asp.net find my textbox?

Hello, I'm trying to add more fields to the CreateUserWizardStep, here is what I added: <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server"> <ContentTemplate> <table border="0"> <tr> <td align="right"> <asp:Label ID="NickNameLabel" runat="server" AssociatedCont...

Setting absolute position in prerender()

Hi, Im completely new to Java web stuff, but here goes my question: 1) How can I add new controls to a JSF page (webuijsf) in the prerender() function? 2) How can I change the position of elements already added using the visual designer? Also in prerender(). I have a number of input fields + labels to show, coming from a database. So...

Please suggest ASP.Net source editor

Can someone suggest an ASP.NET source code editor control that I can integrate into my web site? Expected features: Highlight ASP.NET source code, including server-side code, JavaScript, html, CSS Intelligent suggesting when typing the code (a la intellisense). Design View is not required. ...

Wherewith replace Dictionary.Where(p => p.Key is T)

I have a System.Collections.Generic.Dictionary<System.Web.UI.Control, object> where all keys can be either type of System.Web.UI.WebControls.HyperLink or type of System.Web.UI.WebControls.Label. I want to change Text property of each control. Because HyperLink doesn't implement (why??) ITextControl, I need to cast Label or HyperLink exp...

Architecting a generic search result web control

In a project I'm currently working for we've stumbled upon the need for several kinds of search results presentation controls. The search result are similar, but not identical. For example, in the "office search" result we might want to present the office name and location, while in the "document search" could contain document name, auth...

How do you programmatically create a default template for a templated control?

I'm creating a custom templated composite control. If there is no 'ItemTemplate' specified in the mark-up, how do I create a default template programmatically? ...

Is it possible to dynamically add webcontrols via jQuery???

Currently I have a webform that has a series of links. What I'd like to be able to do is add a webcontrol's content when one of the links is clicked. Is this kind of thing even possible? If not, what's the best strategy for loading a set of controls (one textbox and one dropdown with values from one link, two textboxes and a checkbox fr...

Saving data in time ASP.NET (Visual Basic) ?

Hey, I'm developing a web application that provide a service of online reservation, and I need to save the data (for example in a specific day and access to them). How can I do that. Is it possible using : System.Web.UI.WebControls.Calendar ...

Most performant ASP.NET web controls suite

Personally I've been working for years with Telerik's RadControls and DevExpress ASP.NET controls. IMHO they both produce quite an impressive HTML overhead on the client side thus for that I've never been highly pleased with them. Of course I also know about Infragistics, ComponentOne, ComponentArt, etc. I'd assume they are not much dif...

asp.net free webcontrol to display crosstab or pivot reports with column and row grouping, subtotals and totals or different approach

Hello, I want to develop some crosstab also know as pivot reports in Asp.net with x-axis and y-axis being dynamics, allowing grouping by row and column, for example: have products in y-axis and date in x-axis having in body number of sells of a given product in a given date, if date in x-axis are years, i want subtotals for each month ...

Dynamic Button in Repeater Postback

I have a nested Repeater control in the ItemTemplate of another Repeater. I want to dynamically add a delete and update button to certain items in the nested Repeater depending on their data value, in this case whether they're associated with the current user. A click to either button should handled server-side based so the data source...

Recreating "Font" Property Behavior

Controls that inherit off of System.Web.UI.WebControls.WebControl have a property called Font. The type is System.Web.Ui.WebControls.FontInfo. When working with these controls in the designer, it breaks out the Font property into multiple properties like Font-Bold, Font-Italic, etc. When working with these same WebControls in the codeb...

System.Web.UI.WebControls.FontInfo proper usage

I want to create a property on my class of type System.Web.UI.WebControls.FontInfo. However System.web.UI.WebControls.FontInfo does not have a public constructor of any kind. I'm not sure how to create an instance of System.Web.UI.WebControls.FontInfo. Expectedly, I'm getting an "Object reference null" error when trying to use the prope...