Home All Groups Group Topic Archive Search About

ASP.NET web controls

microsoft.public.dotnet.framework.aspnet.webcontrols
Score Extracting values from child controls of a Repeater
Mark Jones - 21 Jan 2006 8:46 PM - 4 messages
I am building a multiple choice exam application and trying to extract values from child controls contained inside a Repeater. I am using a custom control (QuestionLabel) to display the question text and question ID and a RadioButtonList for the answers with a DataValueField property ...
Score Read underlying data in GridView row?
bernadou - 21 Jan 2006 7:11 PM - 6 messages
I have a simple ASP.NET 2.0 GridView that is bound to a simple query.  I’m getting the data and the GridView is binding and displaying great.  I’m stuck on something that would seem simple, but it is giving me fits. ...
Score Can't Create a multi page report
ME - 21 Jan 2006 3:40 PM - 3 messages
I need to know how to create a MULTI page report.  All I can seem to create is a report with only one page, even though the datasource it is bound to returns multiple records.  I have posted an example of my source code here: ...
Score Customise the SiteMapPath Control or use wild card URLs with a custom SiteMapProvider
Alexander Walker - 21 Jan 2006 3:03 AM - 2 messages
Hello I am using a custom site map provider to create a site map populated from a database. I am using the SiteMapPath control to display "bread  crumbs" on the pages of my site. The database is divided into categories, each category contains items, there are ...
Score Itemtemplace and many to one dropdown example wanted
TdarTdar - 21 Jan 2006 1:37 AM - 8 messages
Where can i find an expample of a item template that does the following example of detailsview name:  Jack City:   2342 State:  1 I want to change the city field I assume using Itemtemplate, and have ...
Score I need to convert the COM controls????
NATE - 20 Jan 2006 11:18 PM - 3 messages
I need a web control to browse a cube... I don't know how to use the OWC controls (COM controls in general), when I drag a COM control to my page I can't see all the properties and ...
Score Error: Multiple controls with the same ID '1' were found.
vibs - 20 Jan 2006 9:19 PM - 6 messages
I am getting the following error when dynamically adding RequiredFieldvalidator control to a Table. Multiple controls with the same ID '1' were found. FindControl requires that controls have unique IDs I get this error only on validator control and not on labels or textbox, so ...
Score RE: detailsview,
TdarTdar - 20 Jan 2006 6:27 PM - 2 messages
...
Score SelectedValue which is invalid
Bart - 20 Jan 2006 6:22 PM - 8 messages
What is the best way to handle null values in dropdownlists? Why is the dropdownlist generating the error "System.ArgumentOutOfRangeException: 'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items." on null values? ...
Score DrawEllipse gives inaccurate results for some radii
Nathan Sokalski - 20 Jan 2006 6:08 PM - 3 messages
I am trying to draw circles using GDI+ 's DrawEllipse method. I need the circles to be the same on all sides, because I will be writing code that detects what pixels are what color. I tested the DrawEllipse method for values of up to about 10 (I didn't bother with values above that, since I already found an inaccuracy at width/height of 5). Here is the code I used and the result I got: ...
Score Design Time referencing of Properties
Venkat - 20 Jan 2006 4:39 PM - 2 messages
Hi I am writing a webcontrol, that has two properties, both are strings. Based on the value of the first property, I want set the default values of the second property. I am trying to set the default values of the second property ...
Score GridView Data Binding at runtime
MoonWa - 20 Jan 2006 1:40 PM - 4 messages
I have added a GRidView to my page but have not bound the data yet.  How do I bind my GridView to a SqlDataSource when a user clicks a button.  Here is the code I have but it does not work. ...
Score Reports and the ReportViewer
ME - 20 Jan 2006 6:35 AM - 5 messages
I want to generate a simple report that will display information from my customer table in a report format.  I created a simple Customers.rdlc file that contains three text boxes bound to =First(Fields!Name.Value) =First(Fields!Address.Value) ...
Score CustomValidator in Mozilla
rajarameshvarma - 20 Jan 2006 4:39 AM - 2 messages
CustomValidator in my aspx page is not working in FireFox.It is working fine with IE. My client validation function is in JavaScript. Even the CV is not calling the client function also. Can anybody help me in this regard. ...
Score GUID and data controls
TdarTdar - 20 Jan 2006 12:35 AM - 3 messages
Hello,   I have a table with two GUID fields and one check box field simple enough.. (vs 2005, asp.net 2) I drag the table in from the connected database turn on the edit feature I run the page and edit the record and get ...
Score Caching - simple question!
Andrew Clancy - 20 Jan 2006 12:19 AM - 2 messages
Okay my question last night wasnt answered - here's a simpler one: I have a form user control, I want to cache the first page (with clientside validation) but turn caching off whenever anyone submits the form. I dont want cached version of user pages, they're only submitted once each with ...
Score DotNet & SDK install issue
Mark Sandfox - 19 Jan 2006 10:55 PM - 2 messages
I am running a 2003 webserver that has DotNet 1.1 installed.  I have tried several times to install DotNet FrameWork 2.0 and the SDK.  Although the programs are there they are not recognized by the FileUpload Control and I ...
Score Dataset from ObjectDataSource always null?
timpera2501 - 19 Jan 2006 9:19 PM - 4 messages
I've been working on this same problem for 2 full workdays now and I'm about ready to tear my hair out.  Please!  If anyone knows the answer, please respond. Very simply, I have a BusinessLayer bound to an ObjectDataSource called ...
Score Getting value from child control of formview
timpera2501 - 19 Jan 2006 9:05 PM - 7 messages
Hello, I'm a bit of a newb, so please forgive me if this is a stupid question. I have a simple formview that contains only one control (a label control called "COUNTLabel").  The formview is bound to an ObjectDataSournce that ...
Score Embedding CSS with inline code
Sean - 19 Jan 2006 5:02 PM - 5 messages
Is it possible to embed a css file and use it as webresource when it's having some code inside? An example would be: ..Container {   background-color : <% =BackgroundColor %>; } when "BackgroundColor" is  a property in my custom server control? ...
Score ITemplate - Dynamic ImageButton in BindLabelColumn for DataList
Erik - 19 Jan 2006 4:10 PM - 19 messages
Good Morning, I am trying to dynamically generate  an ImageButton in a datalist label column.  When I have a static reference to the image 'image/plus.gif', the image is displayed in the label column.  However, when I try to adapt the html code to be dynamically defined in the ...
Score SmartNavigation Problem/Bug
Doug Salomon - 19 Jan 2006 2:01 PM - 5 messages
I've come across a weird problem with the smart navigation directive. It seems that, in some (many? most?) cases using the asp.net 2.0 menu control with smartnavigation emabled is causing some trouble. I've found that (at least in my pages and those of a colleague), performing ...
Score web control library using visual studio .net 2005
M Nauman Ur Rehman - 19 Jan 2006 11:18 AM - 2 messages
Hi, How do I create a web control library using Visual Studio .NET 2005. I couldn't find a template for this. I'm using the Professional edition of VS.NET 2005. For now I've created a web control library project with VS.NET 2003 and then ...
Score Easy question: ASP.NET Label
maciu - 19 Jan 2006 8:53 AM - 3 messages
Hi all, I was wondering if the maximum text length of Label server control is bounded by any value? Thank You in advance for reply ...
Score Updating component attributes
Andrew Chalk - 19 Jan 2006 1:40 AM - 4 messages
If I update the background color of an asp.net control (e.g. a TableCell) from client-side javascript, how do I read that change from asp.net server-side code (e.gf. in C#)? Many thanks. ...
Score "Protect" or Disable Editing of A Webcontrol
Randy - 19 Jan 2006 1:28 AM - 8 messages
I hope somebody can make a hero out of me before tomorrow! Let's say I have a web page with a couple of textboxes, checkboxes, radio buttons, etc. User fills in some data, clicks submit, and off it goes. Tomorrow, ...
Score SelectedIndexChanged not firing
Andrew Chalk - 18 Jan 2006 8:38 PM - 3 messages
When I change the item displayed in a dropdownlist the delegate registered in the SelectedIndexChaged event is not fired. Does anyone have any idea what might cause this? Other controls' events on the form all fire, although those are all "click" events. ...
Score What is the code for file upload?
Mark Sandfox - 18 Jan 2006 8:17 PM - 3 messages
I have tried everyway i know both Input type=file and asp.net 2.0 asp:uploadfile and continue to run into road blocks at one point or another. The objective is as follows: Allow user to upload multiple files of a specific extension (i.e. .jpg).  In ...
Score 2.0 DatagridView and Buttons
Dave Bareham - 18 Jan 2006 6:47 PM - 2 messages
I'm fairly new to this so please bear with me! In an aspx page I have defined a datasource which connects to a SQL database. I then have defined a datagridview which connects to two fields in the required table - on is the ID field and the othen contains a caption. ...
Score Multiple onclick Events
Bahman - 18 Jan 2006 6:02 PM - 3 messages
Hello! I need an asp button to run multiple onclick events. First, it needs to run a piece of javascript. Next, it needs to run its own procedure (button_Click...). I may need to do other things. What is the best way to do this? ...
Score Custom TreeNode for asp.net 2.0 treeview control
Rickey Whitworth - 18 Jan 2006 4:48 PM - 2 messages
I want to display a treeview control that is tied to a sql database. The child nodes will be of different types, meaning they will have different attributes and different tables -Root --Service1 (select * from services) value = serviceID = 1 ---Database1 (select * from databases where serviceID = ?) ...
Score cache and detailsview, all data controls problem
TdarTdar - 18 Jan 2006 4:08 PM - 3 messages
Hello,   I enabed caching on my sql 2k database for the database and table as stated in the [link] article here, however since then I am no longer able to drag tables or add ...
Score Menu Control - Templates
Jay - 18 Jan 2006 3:56 PM - 2 messages
When I setup a StaticItemTemplate using a HTML table, for example, how do I implement the ability to select.  If I do something like the following I lose the ability to select. <table cellpadding=4 cellspacing=0 border=1> ...
Score How do I create a custom webcontrol that can have xml inside it's tag?
Allan Ebdrup - 18 Jan 2006 3:06 PM - 4 messages
How do I create a custom webcontrol that can have xml inside it's tag? I mean a control like the repeater control, where I can specify special tags that define the header body and footer of the control. I'm thinking of something like: ...
Score ViewState properties and mapped properties don't work well togethe
Christophe Peillet - 18 Jan 2006 2:46 PM - 2 messages
I have a CompositeControl with two types of properties: 1.) Mapped Properties that map directly to a child control's properties (ex.: this.TextboxText = m_txt.Text).  These properties are handled by their underlying classes (such as the TextBox control), and are not persisted by me. ...
Score Calendar control to display image on Mondays
David - 18 Jan 2006 2:01 PM - 2 messages
I am trying to get an image to appear on all Mondays within the calendar control.  I also want that image to be a link.  How can I do this? ...
Score ImageButton inside of a WebPart not firing Clicked Event
Brian McCarty - 17 Jan 2006 8:51 PM - 2 messages
If you create a blank WebPart control with just an imageButton in it and add a handler for the Clicked Event, it never gets fired.  Does anybody know of a work-around?  Thanks Brian ...
Score Help with GridView Update w/ Object Data Source needed
anyeone - 17 Jan 2006 8:49 PM - 9 messages
I've got a GridView bound to an Object Data Source and I'm having trouble figuring out just how to set it up to update properly. I have the object data source defined as so: <asp:ObjectDataSource ID="objBatchData" runat="server" ...
Score A bug? Transparent Dynamic Item!
enhung - 17 Jan 2006 8:46 PM - 2 messages
I try a Dynamic menu Item a transparent one like this <DynamicMenuItemStyle BackColor="Transparent" ForeColor="Transparent" />          <DynamicMenuStyle BackColor="Transparent" ForeColor="Transparent"/> and this wroks at design time.But at run time, it turns out not working. ...
Score how to get changed text from web control textbox
Eric W. Holzapfel - 17 Jan 2006 7:19 PM - 2 messages
Hello Visual Studio Group, I have created a webform with controls.  My idea is to load the text values from these controls as values for an insert stored procedure. The insert works.  I have one control that I preload (on the page_load ...
Score XHTML 1.1 and DIV 1 pixel in height
e_zverev - 17 Jan 2006 6:57 PM - 11 messages
The general question is: "Is it possible to achieve a DIV that is 1 pixel in height?" Keep in mind that I have to use XHTML 1.1 DOCTYPE. All I did in HTML 4 to make this does not help. I.e. even if I set the ...
Score Dropdownlist causes blank screen
RML - 17 Jan 2006 2:17 PM - 2 messages
Hi, I have a VS .Net 2003 webform that contains 2 dropdownlist controls.  One picks a month, and the second picks a year.  Both have their AutoPostBack propertie enabled.  When I run the form, and select a differnet month, and ...
Score Adding errors by hand to a validationsummary?
JohnnyGr - 17 Jan 2006 2:03 PM - 3 messages
How can i add my own errors to the validationsummary control`? I have a button that does some checking against an database and if something goes wrong i want to put a error in the validationsummary control, is this possible? if so, how do i do it... ...
Score Menu Control and Page Validation
Ken McBryde - 17 Jan 2006 12:50 PM - 3 messages
Is there a simple way in which I can get the Menu control to cause page validation to happen on the client side - thus causing client side validator components to execute before a postback is attempted? Reason: I have a web app that will always be accessed by the client group from IE ...
Score Dependent GridViews And CommandArguments
beaudetious - 17 Jan 2006 4:33 AM - 5 messages
I have two gridviews.  The first one has a column that contains an ImageButton with a commandargument that is set in the RowDataBound event for that gridview.  What I want to happen is that when a user clicks the ...
Score GridView "visible=False" data items not accessible? programattically
ohyeahgo - 16 Jan 2006 2:48 PM - 7 messages
this might be an easy one. So "everything" is working and this GridView and it is NOT used to update data. I'm attempting to get to the "invisible" data columns in a gridview.  I can easily access the shown data by ...
Score VS 2005 Validator controls
Arvind R - 16 Jan 2006 12:24 PM - 2 messages
Hello, Is it true that VS 2005 Validation control do support other browsers? like mozilla and opera? rather than only IE? someone please let me know on this. also let me know if theres some third party controls/components to achive in ...
Score Set visibility of label in itemtemplate of repeater control
Stan - 16 Jan 2006 11:36 AM - 3 messages
Hi all! I'm trying to set the visibilty of a label in the itemtemplate of a repeater control. The repeater is bound to a datatable. It is possible that a row of this datatable is empty, in that case I would ...
Score Label has not multiline property to set?
enhung - 16 Jan 2006 9:21 AM - 3 messages
I use a Formview to update my new database. In the itemlist, when it retrieve the news from database, it's rendered in a label. However, the label has no multiline property to set, so, it appears the news does not look like ...
Score Inheriting from the TreeNode class
Alexander Walker - 15 Jan 2006 5:07 AM - 7 messages
Hello I have a written a class that inherits from the TreeNode class I want to use the inherited TreeNode class to attach custom properties to the nodes in a TreeView web control I am trying to use the TreeNodePopulate event to read the custom property ...
Score strange question about DropDownList
Detective - 15 Jan 2006 3:20 AM - 2 messages
hi:   when i used code below and bind with access i could get the resoult what i want, but when i use sqlserver i got an exception about System.ArgumentOutOfRangeException which argument is lev.how can i solve this ...
Score Website on a website.
Shawn - 15 Jan 2006 1:40 AM - 6 messages
Does anyone know a way to run a webpage on a webpage like the WebBrowser control in vb.net? ...
Next »