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
all groups > asp.net webcontrols > february 2008

Filter by week: 1 2 3 4

WebControl adding files to project
Posted by Tim Parker-Nance at 2/29/2008 5:01:14 PM
Hi all I have a web control that generates some files in the folder of the page that holds the control when the control is designed. The control uses these files to render itself. This works fine at design time or run time on the local machine. As soon as I publish there is a problem becaus...more >>


TemplateField Buttons Ignoring OnClick Event
Posted by Harry Keck at 2/29/2008 6:30:05 AM
I had to turn off EnableViewState on my GridView, due to odd ViewState issues involved with adding dynamic columns. Because there is no ViewState, I have to rebind the grid on every postback. As long as I do the rebind during the page load, everything seems to work, but I would rather not do...more >>

image upload
Posted by nbs6@yahoo.com at 2/28/2008 9:28:03 PM
I am trying to upload images using fileupload in asp.net It uploads data but no images. can someone help I am going nuts Thanks in Advance...more >>

Problem with webcontrol state using PlaceHolder within ASCX file
Posted by benoitc@gmail.com at 2/28/2008 12:08:04 PM
Hello, I've been trying to solve this problem for a while now, I wonder if anyone can help. Here is the scenario. Forgive me if it seems a little convoluted, my organization uses MCMS templates and it means things can get more complicated in order to work with the templates. Form1.aspx -> co...more >>

Handling events triggered by dynamically created controls
Posted by Nathan Sokalski at 2/27/2008 5:52:28 PM
I have a series of LinkButtons that I need to be able to handle the postback events for. The controls are created dynamically, and how many there will be will vary. I was previously told to create them in the Page's Init event and to make sure the same ID is used. Here are the problems I am ha...more >>

GridView LinqDataSource Sorting
Posted by Chuck P at 2/27/2008 3:16:02 PM
I don't know how the GridView does automagic sorting when using the LinqDataSource. I would like to do two things. 1. Set the inital sort order (State ASC) 2. Modify the sort when someone clicks on a colum (e.g. someone clicks on state, set the sort to State DESC, Town ASC) ...more >>

Handling Events For Dynamically Created Buttons
Posted by Nathan Sokalski at 2/25/2008 12:38:45 AM
I have LinkButtons that are dynamically created in one of the PostBack events. They must be created in the PostBack event because one of the variables required to determine which ones to create comes from the event arguments. Because the LinkButtons are not created in the Init event, they wi...more >>

Graphics generation and website protection.
Posted by Henry Stock at 2/23/2008 12:54:31 PM
I do not know exactly where to post this because I don't know exactly what I am asking for. I have noticed that a number of websites, that allow readers to comment on articles, protect themselves from automated responders by generating a graphic image of random numbers and letters that would ...more >>



Can I merge adjacent cells in a .NET 2.0 Gridview control?
Posted by Andrew Shaw at 2/22/2008 9:49:00 AM
I have a gridview control that is returning rows where for 1 column the value is usually the same. Occasionally the last couple of rows will have a different value for this column. (2 unique values total). Instead of displaying the same value in this column for every row, I'd like to be able...more >>

WebGrid Replacement
Posted by Gunawan at 2/21/2008 1:43:09 PM
Hi All, Where can I get a free WebGrid component to replace the default WebGrid that can freeze the title? TIA, Gun ...more >>

DetailsView - Works in Firefox, not in IE7
Posted by Ricardo Costa at 2/20/2008 3:40:41 AM
Hello, I'm developing an ASP.NET website with Visual Studio 2008. One page displays a couple of DetailsView controls with some information from the data source. I want the column on the left to be 120 px wide. The right column should fill the available space, and the table has the width set ...more >>

handling whitespace in the asp.net menu
Posted by koldskaal at 2/20/2008 12:54:59 AM
I have a asp.net menu in my project. I want it to be possible to add menuitems with very long strings. At the same time I dont want the menu to be wider than 200px. Therefore the text in long strings must be displayed on multiple lines. This seems to be something that the creators of the aspne...more >>

Failed to enable constraints
Posted by cs_in_va at 2/18/2008 6:44:47 PM
I get the following error when trying to access a page (prodcuts.aspx) with a single drop down list box bound to a objectdata source linked to my categoryBLL,.vb file. Here is what I have. Table Categories with CategoryId and CategoryName. My DAL for this is very simple again: SELECT Ca...more >>

How to Reference Gridview child controls
Posted by Mike at 2/18/2008 12:15:03 PM
Hello, I have a gridview that I want to basically convert to behavior like Excel autofilter. I have created a dropdown list and put it into the header of the gridview, but I can't seem to reference it correctly. I have been trolling through the net and ms references for hours but I can't ge...more >>

storing images in filesystem
Posted by nbs6@yahoo.com at 2/15/2008 6:00:07 PM
I am convinced that I want to store images in filesystem as to database and store path into database Can someone point out an article as to how to do it or help me I am using fileupload method but I am getting nowhere...more >>

Emitting Client Script
Posted by Ed Courtenay at 2/15/2008 3:23:34 PM
I've got a very simple custom control that requires a small section of JavaScript to function at the client - nothing out of the ordinary. In the overridden RenderContents method of my custom control I check whether the required client script block has been registered with Page.ClientScri...more >>

No Isert, UPdate or Delete available
Posted by Lars at 2/14/2008 4:03:07 AM
Hi I have problem. For some reason the Configuration of the SQLSataSource doesn't allow me to select the commands Insert, Update and Delete. They are grayed. HOwever I seam to be able to make INsert by adding SQL commands (with parametrized values). It's when I try to make an edit form for th...more >>

How to prevent BulletedList control from encoding HTML?
Posted by John Doh at 2/13/2008 5:47:54 PM
Is it possible to prevent the ListItem that I add to a BulletedList control to be HTML encoded? I want to add text with <br> tags for example. Thanks. ...more >>

.Net 2 Web Panel Font Colour
Posted by Waldy at 2/13/2008 4:07:19 PM
Hi there, how do you set the colour of a Panels text via CSS. Neither Color, ForeColor nor Font-Color work in a CSS file. It is set to grey / blue colour. Is this fixed by the system? ...more >>

AddHandler and dynamically generated controls
Posted by Greg at 2/11/2008 12:17:11 PM
Hello, I have a form where, on a button's click event, I add some link buttons to the page. I have an event handler for these link buttons' click event, which I wire up to the buttons using AddHandler. The problem is, I can't get the event handler to fire. When I click on one of the li...more >>

white space question
Posted by Rob Eventine at 2/9/2008 5:26:59 PM
hi all, is there a way to eliminate a 'space character' (the space bar being pressed) from the beginning of a line? eg: hello as opposed to hello thanks in advance ...more >>

Automatic Sequential Paging
Posted by mg at 2/9/2008 1:14:11 AM
I am doing a sql select statement and using gridview I want to automatically page through and display data in a web browser with no user intervention. What is the best way to do this. I have read about setting up the automatic paging controls, but I just want the pages to sequence by themselv...more >>

Dynamic GridView Columns
Posted by Harry Keck at 2/8/2008 1:52:01 PM
According to the example given in the MSDN documentation, I can call GridView.Columns.Add during the postback phase of a page. This seems to work properly. However, if I call GridView.Columns.Insert during the postback phase, the grid does not render properly, particulary, nothing displays i...more >>

Can't visible property of DropDownList in FormView control
Posted by Hollywood at 2/7/2008 10:45:43 AM
I have a formview control that contains a dropdownlist (nested in a panel) and I want to set the visible property to False when the user is in a particular role. I'm using a modal popup button click event to fire the change, and I set the formview mode to Insert and that works great. Just aft...more >>

Casting a Custom Control
Posted by Bill at 2/7/2008 9:43:44 AM
Hello All, I have created a custom control that is supposed to add other custom controls on the fly to a web page. I understand the concept of using "controls.add" to cast that control to a page. The challenge here the 'main' control is the equivelent of a placeholder, so it will have no ...more >>

Textbox backgound color
Posted by Greg Smith at 2/7/2008 8:21:04 AM
I have a form with a lot of TextBoxes. All are WHITE background color and BLUE foreground color. When I run the application Some TextBoxes are as expected but some have changed their bacgound color to a yellowish color. How do I fix this? Any help is greatly appreciated....more >>

Identifying last item in a Repeater
Posted by JesperGJensen at 2/6/2008 5:25:11 AM
I am using a Repeater to build a Table. <asp:Repeater ID="rptComplaintReasons" runat="server"> <HeaderTemplate> <table style="border: solid 1px black;"> </HeaderTemplate> <ItemTemplate> <tr> <td style="border-right: dotte...more >>

Ajax file uploader
Posted by link45809@msn.com at 2/6/2008 12:42:59 AM
Hi, I'm looking for an ajax file uploader and wondering if such a control exists? Thanks Source: http://www.codeverge.net...more >>

Performance between user controls and custom controls
Posted by link45809@msn.com at 2/5/2008 11:55:47 PM
Hi, I have a question. Anyone know if there is a difference in performance between a user control and a custom control? Thanks. Source: http://www.codeverge.net...more >>

UpdatePanel is doing full postback when it should not
Posted by TomK at 2/5/2008 1:38:11 PM
I have a ASP.NET 2.0 web application that was written using traditional postbacks. I am in the process of Ajaxifying some pages. PROBLEM: Update panel is always causing postbacks I have 1 test page that does partial postbacks no problem. The second page is a legacy page that I have wrapp...more >>

test message number 1
Posted by terry@richard.geek.org.au at 2/5/2008 1:09:19 PM
This is a test message, please feel free to ignore it....more >>

ReportViewer With Page Breaks vs. Excel Without
Posted by Dave at 2/5/2008 8:19:02 AM
Using VS2008 web applicaiton with the ReportViewer. Have a report that has (and needs) page breaks. When this report is exported to Excel, we need the report to appear on one sheet instead of one sheet per page. Is there a way to accomplish this? On a slightly different topic, there ...more >>

How to access Labels inside Repeater
Posted by JesperGJensen at 2/5/2008 2:19:37 AM
I would like to access and alter a label serverside. This label is placed within a repeater. Currently Visual Studio does not allow me to access or alter this label. Am i doing something wrong? Example: <asp:Repeater ID="rptTransactions" runat="server"> <HeaderTemplate> ...more >>

Ajax CalendarExtender script error
Posted by Gary Dunne at 2/4/2008 8:29:37 PM
I have an ASP .Net 2.0 page using a calendar extender control. On my dev server everything works fine, however on the live server I receive the following script error. Line 1163: Object doesn't support this property or method. The calendar has it's format set to "dd MMMM yyyy" The targ...more >>

Which API or function calls IE when clicking on their context menu Item Save Image As..?
Posted by chandan at 2/4/2008 4:14:22 AM
Hi, I am in search of a control that can save image form my webpage. On that web page I am using my own context menu and I disabled the default context menu of IE. Now I want the same functionality as given by IE context menu item save Image as! So tell me how IE works in that case?? Whic...more >>

Attaching a value to RadioButtons in a Repeater
Posted by JesperGJensen at 2/4/2008 3:55:34 AM
I need to select a date from a list of possible dates. I do this through a Repeater <asp:Repeater> <ItemTemplate> <RadioButton OnCheckedChanged="rptSelect_Changed"> <asp:Label> a date </asp:Label> </ItemTemplate </asp:Repeater> In my current testcase there are 7 days to choos...more >>

Client side event *after* text is pasted in to ASP.NET textbox
Posted by Rob at 2/4/2008 12:48:27 AM
Is there a client side event that first after a paste has been carried out using the context menu? I'm implementing a word count on a text box and use onkeyup to trap key presses. That works a treat and works for Ctrl-V paste but I need to trap when the user pastes in text using right-click, p...more >>

Displaying an image within gridview
Posted by EdwardH at 2/2/2008 2:13:00 AM
I am storing images in a sub virtual directory and have the image file name as "picfile" as a field in a table that is bound to the Image Field column in gridview. I.e. the path is "Images/0000022336.jpg" with the value of picfile is "0000022336.jpg". How could I make the column include the pa...more >>

A test can be opened only within a test Project Error
Posted by Dave at 2/1/2008 6:56:00 PM
Having issues with a "Web Test" project. The project was created by Test => New Test => Web Test. Everything is fine until I exit the IDE and then re-open the solution. When I try to open the ..WebTest file, the following error is issued: --------------------------- Microsoft Visual S...more >>


DevelopmentNow Blog