Home All Groups Group Topic Archive Search About

ASP.NET web controls

microsoft.public.dotnet.framework.aspnet.webcontrols
Score How to add a dropdownlist to the column header in a GridView?
Felix_WafyTech - 18 Mar 2006 11:16 AM - 3 messages
Hello, I would like to add a dropdownlist to the column header in a grid view to facilitate filtering the records based on the selected value in the dropdownlist. Is this possible? If yes, how do I accomplish that. Any help ...
Score Custom Web control question
Jduv - 18 Mar 2006 12:29 AM - 3 messages
When is the constructor called when a custom web control is added to an ASP.NET page?  Here's some context so you can get a better idea of why I am asking this question: I am creating a custom treeview with the following attributes: ...
Score How to access control in FormView
David Thielen - 17 Mar 2006 9:23 PM - 18 messages
Hi; I have: ....     <asp:FormView ID="DataSourceItemView" runat="server" DataKeyNames="ID" DataSourceID="DatasourceItemSource">         <InsertItemTemplate>             <table> ...
Score Overriding Calendar.CreateChildControls
krassimir - 17 Mar 2006 8:38 PM - 2 messages
Hi All, I am trying to subclass the Calendar Web Control to achieve the following. I need to split each Calendar Cell in two parts - AM & PM parts. AM & PM parts are populated by a List<TimeEntryDetail> custom collection. An user can click ...
Score FormView/ItemTemplate - MultiView, Radio, & checkbox
David Thielen - 17 Mar 2006 6:43 PM - 2 messages
Hi; I am trying to set up my ItemView inside a FormView. I have a couple of questions. 1) How should I display a radio button value. This is a view so they can't change it, but I'd like to display it that way. ...
Score Exporting Datagrid to Excel
Kenny M. - 17 Mar 2006 5:40 PM - 3 messages
Hi I'm using the code shown here to export only my DataGrid to Excel. This is the simplest way to export data to excel (changing the content type) the code is very short but unfortunately it not work well in every case. I ...
Score paging control?
David Thielen - 16 Mar 2006 11:36 PM - 5 messages
Hi; I have one case where I generate the entire content of the page except I need a paging control to go to first/last/next/prev page. And on each click, I then provide that page with the control. ...
Score GridView and DetailsView/FormView in seperate pages
David Thielen - 16 Mar 2006 10:55 PM - 4 messages
Hi; Can I use the CommandField ShowSelectButton='True' to go to a DetailsView or FormView on a sperate page. Or do I need to use a HyperLinkField? ...
Score FormView sample that includes edit/delete?
David Thielen - 16 Mar 2006 10:36 PM - 4 messages
Hi; The quickstart samples show using the FormView to display a record. And it sort-of has edit for the photo one, but that brings up another page and that page's source is not listed. Is there a way to have it show all fields and then on the same page kick ...
Score DataView, DataTable, or DataSet?
David Thielen - 16 Mar 2006 10:29 PM - 4 messages
Hi; If I want paging for a GridView I can't return a collection, I have to return a DataView, DataTable, or DataSet (at least that is what the error message I got says). Any suggestions as to what is best if it is just rows ...
Score Are you sure? for delete in GridView
David Thielen - 16 Mar 2006 9:56 PM - 4 messages
Hi; When a user clicks on the delete link for a row in a GridView, how can I have it popup an alert asking them if they are sure? thanks - dave ...
Score Need help in connecting to SQL database...
Satish Anand - 16 Mar 2006 9:47 PM - 2 messages
I am creating my first web form with vb.net and having this error in line # 63: ---------------------------------------------------------- Login failed for user 'TSP_USER'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information ...
Score GridView and XmlDataSource not refreshing.
Scott Kelley - 16 Mar 2006 9:22 PM - 2 messages
I am populating a GridView with and XmlDataSource.  when I first load the grid, everything is OK.  If the data changes and I refresh the page, the old data continues to be there.  If I stop the project, recompile the web, and ...
Score FormView vs create
David Thielen - 16 Mar 2006 9:11 PM - 5 messages
Hi; I have two pages, one for creating a record which is just a bunch of controls and one for editing a record which is a FormView. The two pages have all the same controls and look the same. Is there any way to use the FormView for creating a record? It appears that ...
Score Disable CommandField for some rows of data
David Thielen - 16 Mar 2006 9:08 PM - 3 messages
Hi; Based on a column value in each row of data, I only want the CommandField to be enabled if that column's value for that row is a specific value. For any other value I want the control to still be there, but disabled. ...
Score How to get CommandField and ButtonField in the toolbox?
David Thielen - 16 Mar 2006 9:08 PM - 7 messages
Hi; I went to add CommandField and ButtonField to the toolbox, but they are not in the list of controls to add. How can I add them? ...
Score Searching a list box using a text box
Leyla - 16 Mar 2006 7:19 PM - 3 messages
Hi, I am trying to use a text box, to do a search on in a list box, without clicking on a button. the Idea is as you type in the text box the list box will show the names that start with the letters.  is there any way to this. ...
Score Binding TextBox
Michael Mach - 16 Mar 2006 7:11 PM - 7 messages
I'm creating an application using Visual Web Developer Express (2.0) and a SQL 2000 database.  The database has one table with the following columns: CaseloadKey, EmployeeFTCount, EmployeePTCount I've already created a FormView that connects to the datasource and allows ...
Score Creating Dynamic controls
sameer - 16 Mar 2006 3:50 PM - 5 messages
Guys , this is an easy one for you pros out their, i am trying to creating dynamic controls in asp.net, i use a placeholder control and create all the text boxes and label in it and it does it pretty ...
Score Detecting if client-side validation javascript is registered?
Ben Fidge - 16 Mar 2006 3:09 PM - 3 messages
What is the correct way to determine if javascript for client-side validation has been registered in ASP.NET 2.0? I'm trying to debug a control that uses the following to detect: bool bIsRegistered = Page.IsStartupScriptRegistered("ValidatorIncludeScript"); This works fine for ASP.NET 1.x, but not for 2.0. Can anyone tell me the ...
Score Mirrored text
shiretu - 16 Mar 2006 1:48 PM - 2 messages
Hi, I must design and code an application with arabic support. At some point in the development, I must create a custom owner draw control. So far so good. The control renders itself fine except that the text gets mirrored too. What should I use to "escape" the mirored DC and draw ...
Score DropDownlist problem
cyrus - 16 Mar 2006 12:46 PM - 3 messages
Hi, I have been working with my project for 2 weeks but i have failed everytime, The problem is i want to catch the selecteditem in my dropdownlist but it is just the first item everytime, here is my code: ...
Score Perform insert to gridview/table
Bernie Niblets - 15 Mar 2006 10:51 PM - 4 messages
Hello Group, I am working with VS2005 and asp.net 2.0. I would like to perform an insert to a table/gridview by clicking a button on a web form (not part of the gridView rendering).  I can do ...
Score Gridview custom sort - works but always sorts ascending
David Adams - 15 Mar 2006 10:09 PM - 4 messages
Hi, I have a gridview in which I am doing a custom sort for the lastname of a person.  When that column is clicked, I would like to additionally sort the firstname ascending as such: protected void gvClients_Sorting(object sender, GridViewSortEventArgs e) ...
Score Adding client side code to RadioButtonList control item???
Dave - 15 Mar 2006 8:50 PM - 2 messages
I'm trying to add some javascript to my RadioButtonList control below but it never seems to render in the browser?  Is there an MS suggested work-around? I eventually want to hide/show sections of the page using DHTML with this ...
Score GridView custom control and post back issues
Gopi - 15 Mar 2006 7:43 PM - 3 messages
I created a custom control inherited from the gridview and bound it to the sql datasource.  I made the gridview control properties visible from the asp.net page where it is created. Here is the code which is working fine ...
Score Datalist formatting questions
Dave - 15 Mar 2006 3:25 PM - 2 messages
Is there a way to: 1.) Set the backcolor of so the first cell in each column is same and then alternate from there? such as the example of repeatColumns = "3" below. Otherwise, checking the alternatingitem won't work. blue blue blue ...
Score Web UserControl (ascx) and UrlProperty attribute
Mirek Endys - 15 Mar 2006 1:44 PM - 4 messages
Hello gurus, i have the problem with web user control. I have there my own property ImageUrl and want to use standard Url picker in design time. I tried set UrlProperty attribute there, but it looks like the property in ...
Score GridView w/ ObjectDataSource w/ Business object layer
Rachel - 15 Mar 2006 9:00 AM - 7 messages
Hi, Current situation: -------------------- 1- layered architecture: presentation / Business Object / Providers 2- Business Object binding class feature create, delete, update, select methods to be consummed by the ObjectDataSource IMPORTANT: these methods expect a Business object instance, NOT parameters  i.e. ...
Score GridView, ObjectDataSOurce, and enum parameter for select
David Thielen - 15 Mar 2006 12:00 AM - 5 messages
Hi; I want to create an ObjectDataSource that calls a method of mine that then does a select on the database. I want to pass an enum to the method that calls the select. This enum is in my database access code. ...
Score Treeview SelectedNodeChanged event not firing
Brad Law - 14 Mar 2006 9:43 PM - 3 messages
...
Score DataGrid1.DataSource = ds.Tables(2)
Xavier - 14 Mar 2006 2:56 PM - 2 messages
hello, i get in a dataset returned 3 Tables I want to display in a templated column the values of the table nr 3. DataGrid1.DataSource = ds.Tables(2) In a datagrid if i let AutoGenerateColumns=True all works ok. ...
Score Scrolling DG w/a Fixed Header
JDP@Work - 14 Mar 2006 6:59 AM - 3 messages
I'm looking for VB.Net snipits/links to managing scrolling datagrids with a fixed header where I don't know the number or column labels, these may be generated dynamically, I can set the widths at design time. For some columns, I may be using ItemTemplate and setting the label value at ...
Score Cant get user-entered values in GridView
Arthur Dent - 13 Mar 2006 7:41 PM - 4 messages
Okay, this should be really simple, and maybe im just missing something totally obvious, but i cannot figure this out. I did this all the time in ASP.NET 1.1 with no problems. I have a GridView which has a column that is a template column, and has a ...
Score GridView Multiple Select Buttons
Terry - 13 Mar 2006 4:10 PM - 2 messages
Good morning! How do I determine which SELECT button was clicked in a GridView? The select buttons are for our internal approvals by respective personnel. Thank you in advance for your support in this matter. ...
Score How can I create a new excel file in webbrowser?
zhangyl - 13 Mar 2006 6:38 AM - 2 messages
I know we can use webbrowser to open an excel file. but if I want to create new file and I don't want to save at first, how can I do? ...
Score Fitting a character on a small button
Nathan Sokalski - 12 Mar 2006 8:09 AM - 3 messages
I have been trying to make a (supposedly) simple control. The control is nothing more than a control used to select integers, I was planning on making it a UserControl composed of a TextBox and 2 Buttons (basically like those controls you sometimes see in Windows applications). The functionality ...
Score it's really important thing to solve
uto - 12 Mar 2006 7:08 AM - 2 messages
it's really important thing to solve please give me some advice i made some usercontrol included some fuctions this fuction require some parameters liike currentpage , pageCount, and pageSize and then it attached into default.aspx like this           <uc1:uc_pager ID="Uc_pager1" runat="server" ...
Score ASP.NET, CSS, and Netscape 7.1
Nathan Sokalski - 12 Mar 2006 3:39 AM - 5 messages
I was testing out a page of mine that displays the information from Page.Request.Browser. It works exactly as I expected in Internet Explorer and Netscape 4.75 (I didn't expect much in Netscape 4.75, but I got some ...
Next »