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 > january 2006 > threads for january 22 - 28, 2006

Filter by week: 1 2 3 4 5

How to Catch exception for GridView control?
Posted by kai at 1/28/2006 2:13:17 PM
Hi, I placed a Gridview control on a ASP.NET 2.0 page and enabled the "Delete", "Edit" . I want to do "Try Catch" on "Delete" and "Edit" button in the GridView but don't find the place to put the code. Please help. Thanks! Kai ...more >>


DropDownList resets selectedIndex on postback
Posted by Juan Puebla at 1/28/2006 3:24:26 AM
Hi, I have a dropdownlist (ddL). When I run the app and I try to select an item it alsways get selected the first item. I fill the ddl on pageload with: "if not ispostback" statement. Function that fills the ddl: For i = 0 To alAsigs.Count - 1 Dim c As New ListItem ...more >>

need help in web user control
Posted by yoshitha at 1/27/2006 6:09:15 PM
hi i've developed web user control using C#.net here is the code <%@ Control Language="c#" AutoEventWireup="false" Codebehind="TeachingStaff.ascx.cs" Inherits="SchoolAdmin.TeachingStaff" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%> <% strFtype= Session["Ftype"]...more >>

CheckboxList problem
Posted by Jeppe Jespersen at 1/27/2006 1:47:23 PM
Checkout a little 3-minuter video i made, illustrating my problem. http://www.netkoder.dk/cl/ Any ideas? Jeppe ...more >>

VS 2005 control with sql 2000
Posted by krebs44 NO[at]SPAM gmail.com at 1/27/2006 11:23:59 AM
Hey, I have created a web app that uses the new login controls with vs 2005 but on my web server i have sql2000 installed on it and i know the login control must use sql 2005 or the express edition. Does anyone know how i could use these controls with my existing sql server? Any help would ...more >>

Strange behavior with gridview and selectedindex
Posted by jordo at 1/27/2006 9:09:02 AM
Hello there, I have an asp.net 2.0 web app that uses gridview and formview. When a user selects an item in the gridview the formview appears to show the detail. This works quite well. However, I'd also like the formview to be displayed if a specific datakey for an item in the gridview is pas...more >>

Date masked textbox for user input
Posted by Erik at 1/27/2006 7:57:03 AM
Good Morning, I have some users which are having difficulty entering dates in the format MM/DD/YYYY. I validate the user's entry, but have been asked to research masking the textbox so the users entry will automatically display as MM/DD/YYYY in the textbox for the entered value. Thank you f...more >>

ASP.NET 2.0 Databind during Client Callback
Posted by jslaybaugh NO[at]SPAM gmail.com at 1/27/2006 7:17:36 AM
I am trying to bind to a GridView or DetailsView after a callback using the ClientCallback Manager in the new .NET 2.0 framework. See below for the HTML followed by the VB code: <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <script t...more >>



Listboxes display failing
Posted by Rob 19 at 1/27/2006 3:15:02 AM
Hi, I have a listbox within a DIV on an SSL page and when the page is refreshed the listbox jumps within the div. Also, sometimes the items within the list box ocerlap each other and the font style is not aplied. It is almost as if the listbox is displayed and then the style is applied, ...more >>

Absolute Positioning in Web User Controls
Posted by stefanjohansson_2005 NO[at]SPAM yahoo.se at 1/27/2006 1:14:35 AM
I used to place a GridLayoutPanel in the User Control to get an absolute position. How do I do this in Visual Studio 2005? Absolute position under Layout - Position - Auto Position Options in the meny does not work since the position should be relative to the User Control and not the Web Page. ...more >>

Master Detail Event Handling?
Posted by bernadou at 1/26/2006 6:09:01 PM
I’m trying to use the DataList and GridView to accomplish a Parent (or master), child type of display (I’ve got that part), but I can’t seem to figure out how to handle events for the child GridView. The display looks like this: Parent Record Child Record [button] Child Record [...more >>

Hide show asp table
Posted by Rod at 1/26/2006 4:08:18 PM
Hi! I have the following <table> in my webform.aspx : <table id="Tbllist" border="0" style="Display: none"></table> In the form there is a button called "btnlist". On the "btn_list_click" event I would to "show" the table above. Could anyone help me, please ? Antonio ...more >>

Problem with FindControl
Posted by Wayne Wengert at 1/26/2006 2:16:03 PM
I am attempting to check the status of a login (Login1) which is containted within a login view (lv1) using the following code but each of the 2 Dim statements get flagged with"End of Statement expected"? What is the correct way to do this? ============================= Protected Sub Login...more >>

How to turn off padding within a Web Part?
Posted by Terry Smith at 1/26/2006 9:03:03 AM
Web parts are automatically generated with 5px of padding within their container. This gets specified in the style attribute of one of the TD tags. There are no properties to turn this off that I have found, and since the padding gets generated into the style a CSS class will not override it. ...more >>

DropDown List
Posted by JD at 1/26/2006 8:16:34 AM
I am trying to see up a drop down list so that the key value is set up as follow(s) <option value="id|description">description</option> where id and description are values that are pulled back from the database, I know I have seen this done before, but for the life of me I cannot remember ...more >>

DataSourceID '<NewDataSource ...>' not working in composite contro
Posted by Christophe Peillet at 1/26/2006 2:34:02 AM
I am trying to add databinding support to some composite controls, and have everything working in the relevant properties (DataTextField, etc.), including that DataSourceID properly lists all valid datasources on the page. However, when I choose '<NewDataSource...>', the wizard doesn't fire, ...more >>

Global Themes Folder Missing
Posted by Phred Menyhert at 1/25/2006 10:42:09 PM
During the installation of Visual Studio 2005 and .NET Framework 2.0, apparently a Global Themes folder is supposed to be installed under WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles. This folder doesn't appear to have been installed during my installation of VS 2005 and .N...more >>

Gridview not updating database row
Posted by Eric at 1/25/2006 5:29:32 PM
I've meticulously set up gridview controls both with the wizard and programmatically, using a sqldatasource and can not get the update command to pass the new column value to the database, it always passes the original value, thus no update occurs. I've run traces with SQL profiler, and the ...more >>

Script edit server control
Posted by Bill Youngman at 1/25/2006 1:09:56 PM
Does anybody know where I can get my hands on a script editor server control? I have developed a web app that includes an "editor" (textarea control) in it and I have to use that term very loosely because all it does is display the source for any page that is loaded into it. If you want to ...more >>

menu webcontrol
Posted by Kaplan Dani at 1/25/2006 11:54:01 AM
I'm using this control in asp.net 2.0 (vs2005) after I change the "dir" of my page to : rtl (right to left) the menu moved alright to the other side, but, the subitems, apearse in there original position, in the middle of the screen now, not even close to the new location of their parent node... ...more >>

Viewstate and Master page with programmatically created content
Posted by timpera2501 at 1/25/2006 10:41:02 AM
I am considering designing a page where all the controls on the page are created programmatically. I read the MSDN Library article at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskAddingControlsToWebFormsPageProgrammatically.asp According to that article,...more >>

multiview
Posted by anat at 1/25/2006 9:19:44 AM
How do I change the size (width & hight) of the multiview and view controls? I want to use them as tabstrip. In their properties the size elements do not appear. --anat...more >>

TreeView Security error
Posted by djoledjole at 1/25/2006 8:28:02 AM
I have got one really simple website in which I use Treeview web control . I can not host that webSite on my Internet provider because of Security error. Server Error in '/' Application. -------------------------------------------------------------------------------- Security Exception Descripti...more >>

Catching event in Menu control when bound with sitemap
Posted by Shem at 1/25/2006 3:51:03 AM
Hi Folks, I am running 2005 c# and I have dynaically built a site map which is autobound to a menu control, but for whatever reasons, i now cannot catch the menu_click event. I think this is maybe due to the fact that the sitemap structure automatically posts it to the new distinct url. I d...more >>

.NET multi-column listbox for webpages?
Posted by Thomas Phaneuf at 1/25/2006 12:00:00 AM
To all: Does anyone know where/how I can get a multi-column listbox object for webpages in .NET. I have seen it implemented using Java -- so I am thinking that somewhere somehow someone clever has found a way to do it using .NET. Thanks in advance, -Tom ...more >>

These controls are a real mess
Posted by GaryDean at 1/24/2006 5:51:16 PM
After learning about these controls I go to the MSDN site that is supposed to provide download capability. The link to download is no longer a link so they can't be downloaded. I spend a few hours looking in all of the forums and find that other people can't find a link either but eventually...more >>

Menu Control building via code
Posted by Shem at 1/24/2006 10:26:24 AM
Has anybody built a menu control via a hierarchical structure in a database. If so could you please help me out. I want to get a structure from a db then build the menu up on the fly. Any examples would be great. Thanks in advance ...more >>

Other browsers
Posted by Tina at 1/24/2006 9:42:13 AM
Do these webconrols only work with I.E. browsers? Thanks, T ...more >>

Unable to find control id referenced by the 'ControlToValidate' Pr
Posted by vibs at 1/24/2006 8:28:03 AM
I am adding a textbox and a requiredvalidator control dynamically to a usercontrol, and I get this error on the validator control. I have tried changing to ClientID and UniqueID with no success. What am I missing? I am adding the control to the same TableCell so the container should be the sam...more >>

Wiring up events...
Posted by Zamdrist at 1/24/2006 7:37:43 AM
html: ....OnSelectedIndexChanged="ddlSearchBy_SelectedIndexChanged"> vb: Public Sub ddlSearchBy_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddlSearchBy.SelectedIndexChanged 'Some simple code here End Sub Why won't this event fire when I c...more >>

javascript within TEMPLATECOLUMNS
Posted by Brian Lorraine at 1/23/2006 5:58:01 PM
I've learned how to add javascript to a web control in .NET using the ".Attributes.Add" method. example: MYBUTTON.Attributes.add("onClick", "blablafunction") I'm having a problem adding javascript to a control that is inside a TEMPLATE COLUMN of a datagrid. The name of my button is "butto...more >>

Persisting ListItemCollection values across postback, using ViewSt
Posted by Christophe Peillet at 1/23/2006 8:36:02 AM
I have a series of composite controls to replace most common form controls (adding Ajax support and a built in validator), and have all of the simple controls working (textbox, checkbox, button, etc.), but have an issue with Viewstate and Postback when it comes to ListItem based controls (Ch...more >>

edit single record in formview
Posted by Phil at 1/23/2006 8:03:03 AM
i want to return a selected record through output parameters in a stored proc and bind them to a formview; is this possible and how should it be done? currently i'm using a stored proced that essentially returns a set of data containing only one row for the selected record. it is my understa...more >>

Format telephone number??
Posted by bernadou at 1/22/2006 10:01:02 AM
Ok, this is yet again one of those things that is driving me crazy. How do I use a formatting expression to format a number? Here's what I'm trying, but, it isn't working. Text='<%# Eval("fldPhone", "(###)-###-####") %>' What I'm trying to see happen is the value "3335551212" output as ...more >>

Force multi line field value to output with line breaks?
Posted by bernadou at 1/22/2006 8:48:02 AM
I have a field value that might look like this in the db First Line Second Line Third Line When I query the data and output that data to a label in my gridveiw it looks like this: First Line Second Line Third Line How to I insert HTML formatting into the label text so it will render in t...more >>


DevelopmentNow Blog