Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008


all groups > asp.net webcontrols > october 2006 > threads for october 15 - 21, 2006

Filter by week: 1 2 3 4 5

Can't duplicate ID in subclassed GridView
Posted by David Thielen at 10/21/2006 8:51:01 PM
Hi; I switched two controls from GridView to EmptyGridView. When it was GridVIew both controls (on the same page) had a <Columns><TemplateField><ItemTemplate><LinkButton ID="DeleteButton"... and it was ok that both had the same ID name. Once I switched to EmptyGridView that is now an err...more >>

My own control - exception in Design view
Posted by David Thielen at 10/21/2006 4:18:01 PM
Hi; When I switch to design view the control I created (inherits from HyperLink) displays: Error Rendering Control - HelpLink1 An undandled exception has occured. Object reference not set to an instance of an object Any ideas why this happens? -- thanks - dave david_at_windward_dot_...more >>

Anyone have APP_LocalResources resx files for the MS controls...
Posted by David Thielen at 10/21/2006 3:32:01 PM
Does anyone have APP_LocalResources resx files for the MS controls that they will share? Obviously we can get VS 2005 to auto-generate them for English. But if anyone has them in other languages and will share, we would really appreciate it. (It also would be good if all websites used the same...more >>

Need button control that...
Posted by David Thielen at 10/21/2006 11:18:02 AM
I need a button control that does the following: 1) Has 3 bitmaps for button, OnHover, and OnClick. 2) Is placed in a grid and has a url that includes a {0} in the url that is set with a property from the data for that row of the grid. 3) Preferably has a text (for when the cursor is over it)...more >>

menu question
Posted by David Thielen at 10/20/2006 4:45:02 PM
Hi; A couple of menu questions: 1) I would like to have a menu that is horizontal with graphic tabs for background images. How do I set this? 2) For some of the main menu items, I want to have 2 or 3 sub menus. I would prefer that they appear horizontially. How do I set this? 3) When...more >>

all bitmap button in grid?
Posted by David Thielen at 10/20/2006 4:23:02 PM
Hi; I want to have a button in a cell of a grid (in each row) where the button is just a bitmap - no text. Which control should I use? Just a plain old asp:ImageButton? -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreport...more >>

how to validate input of a detailsview?
Posted by Cas at 10/20/2006 12:00:00 AM
Hi, I use a detailsview control for inputtng data. I want to check the user input before it is sent to the database (min. /max value, not empty, only some values allowed ...). When clicking on the insertbutton, i want a warning if one or more inputs are not correct and the user must have th...more >>

auto-size textbox
Posted by Jerry C at 10/19/2006 9:08:02 AM
I have a text box on a asp.net web page. The text is from a dataset field. The length of the text can be anywhere from 0 to 2000 chars. what is the best way to resize the textbox to fit the text. I find some information about using the graphics library. Is this the best way. -- Jerry ...more >>



Textbox - inserted enters
Posted by RBM at 10/19/2006 4:31:56 AM
Hello, On my ASP.NET 2.0 page I have a textbox with edit type multiline. I have the following question: Is it possible to show manualy typed enters in the Gridview inserted from such a textbox? Please anser this question, thanks in advantage. Greetings, Ren=E9 Beltman ...more >>

Datagrid template column
Posted by chandu at 10/19/2006 12:00:00 AM
Hai, i put template column in datagrid. then if i want to display date in that column (only date with out default time).can u tell me that option to display only date with out tme. if it is datagrid bounded column then it will come. i want for template column. thank u .. ...more >>

GridView RowComand event Issue
Posted by J Li at 10/18/2006 3:33:02 PM
In the footer of the gridview, I have a dropdown and a "Add" button set up, so I can add new rows to the gridview. The "Add" button has CommandName of "ADD", so I use that in the GridView1_RowCommand to check if (e.CommandName == "ADD") before I add the row. Everything works fine except, a...more >>

Display an empty grid
Posted by David Thielen at 10/17/2006 9:07:02 PM
I would swear I asked this yesterday - but I can't find my post (or any answers). So here goes again. In a GridView, when it is empty, instead of a message, I would like the grid to display, preferably with a single empty row but having just the header and no rows would be ok. How can I do ...more >>

good sample of creating my own web control?
Posted by David Thielen at 10/17/2006 8:59:01 PM
Hi; Does anyone know of a url that shows the "right" way to create my own web control? I need to inherit from asp:HyperLink and add some minor additional functionality. -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreport...more >>

changing rows in a multiline textbox
Posted by carlor at 10/17/2006 12:44:02 PM
Hi there, I have a situation where I have a textbox that by default only displays 2 rows of text at a time (textbox.rows = 2). On a link button click, I am supposed to expand the textbox to show all the data it contains but there are a number of problems to work through: - the text box i...more >>

localization for all MS web controls
Posted by David Thielen at 10/17/2006 10:11:02 AM
Hi; Does anyone know of a set of localization files that localizes all the MS web controls for various languages? I'ld much prefer that to localizing them ourselves, both because it saves us time/money and because then we will be using the exact same words that other sites use so it's a sta...more >>

implicit vs explicit localization
Posted by David Thielen at 10/17/2006 9:58:02 AM
Hi; Any comments on which is the better approach? And why? -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm ...more >>

email sending twice
Posted by Janet at 10/17/2006 7:05:54 AM
With the code below, every email is sent twice. Anybody tell me why? Dim txtBody as string txtBody = "testing 2.0 email" Dim MailObj As New System.Net.Mail.SmtpClient MailObj.Host = "localhost" MailObj.Send("webmaster@email.net", "donkey@email.net", "Online Search Request", txtBody) MailO...more >>

Adding Web Control
Posted by Duncan Dimech at 10/17/2006 1:40:42 AM
Dear All I am writing a tool which requires to have controls added to it dynamically. To make the task more complex, the addition of the control cannot happen anywhere but it has to be instead of a token example <p> this is a test <textbox /> and a text box should be entered </P> the ...more >>

Request for the permission of type System.Web.AspNetHostingPermission failed
Posted by Allan Ebdrup at 10/17/2006 12:00:00 AM
I'm using dotNet 2.0 and VS2005. I've got a class library where I've created a webcontrol (Inherits from GridView). The dll for the class library resides on a different server (development server) Now I have a website ASP.Net 2.0. When I add a reference to the dll I don't get my control in ...more >>

AccessDataSource - how to get access to the retrieved data?
Posted by Martin at 10/16/2006 11:08:01 PM
I am using the new AccessDataSource control and it works as expected (query result bound to a GridView). Very nice about this control is that it keeps the data in memory. (a Dataset). But how can I get that data, and use it elsewhere in my code? I have read that a method exists (GetView) ...more >>

Trigger an Insert on a FormView control
Posted by namewitheldbyrequest NO[at]SPAM gmail.com at 10/16/2006 5:31:20 PM
Hello, Using a FormView control and I want to programmatically invoke the Insert operation. Instead of the user clicking "Insert" I need to have the web page load and automagically go into insert mode on the FormView control. What method do I call? Thanks, Delmer ...more >>

How can I find the datakey of currently selected row?
Posted by needin4mation NO[at]SPAM gmail.com at 10/16/2006 2:32:26 PM
I searched for this and found an answer, but it did not help. In my GridView there is a fileupload and a button click event to save the file upload. I am naming the file uploaded after the primary key field of my table, so, if I have employeeid 4, then my file name is 4.jpg. What I cannot do...more >>

Help! Menu control not rendering properly on production
Posted by Kevin at 10/16/2006 8:29:02 AM
Hi, I am using a standard ASP.NET 2.0 menu control on a master page. On my development box it works fine, but when I deploy it to my production box it renders on standard links. The only difference I can find is in the naming convention of the inline stylesheet created on the fly by the con...more >>

Gridview: Edit row validation
Posted by carlor at 10/16/2006 7:54:01 AM
Hi, I have a grid view that, when the row is in edit mode, contains a pair of radio buttons (Yes/No) and 3 edit fields (2 text boxes and a drop down list). I have business rule that states that if Yes is selected, the 3 edit fields are required but if No is selected the 3 edit fields are no...more >>

sqldatasource and connection exception handling
Posted by Loic Transler at 10/16/2006 6:11:02 AM
Hi, In my page, I'm using a gridview and a sqldatasource. I don't know how to handle the exception that occurs when the database server is unavailable. I've read that I should use the execption property of the selected event. But for this exception, the property is null. How can I handl...more >>

Hyperlink in a treenode label
Posted by John Bankhead at 10/15/2006 10:14:02 PM
I have a simple treeview (four levels deep) that I am building manually when the page is loaded. I am trying to figure out how to take the treeview out of navigation mode. That is to say that the text for a node should NOT be a hyperlink. According to all of the docs I have found, setting t...more >>

Turning URL Navigation off on a Treeview
Posted by John Bankhead at 10/15/2006 10:13:02 PM
I have a simple treeview (four levels deep) that I am building manually when the page is loaded. I am trying to figure out how to take the treeview out of navigation mode. That is to say that the text for a node should NOT be a hyperlink. According to all of the docs I have found, setting t...more >>


DevelopmentNow Blog