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 > april 2006

Filter by week: 1 2 3 4 5

"Unable to open the physical file" error
Posted by phil at 4/30/2006 6:56:30 PM
Hi, I use aspnet 2.0 and i'm learning about data-bound controls. Sometimes, i get this error below, but the code of the aspx page is ok because i ran it several times. I use indeed a .mdf file located at that place. What's the problem and how to solve it? Thanks Phil Unable to open the...more >>

paging using repeater control
Posted by aspnetdir at 4/30/2006 12:58:17 AM
im building a much nicer interface for paging (with page number links, next, previous etc) commands using a repeater control to put on my site http://www.aspnetdir.com right now im using an embedded code/control approach -- im not very comfortable with it so i need suggestions... id appreci...more >>

Using hyperlink control for downloading
Posted by dave at 4/29/2006 3:28:21 PM
Hi, Is there a way to use a hyperlink control for downling a file from the server to the client? Currently, it works if I run the web app from the server. However, when I run the app from a client and right-click the hyperlink, it shows a popup menu including 'Save Link As' but when I selec...more >>

Failed to load viewstate
Posted by Jed at 4/29/2006 2:29:01 PM
I am getting the old "Failed to load viewstate." error and I can't figure out why. ERROR: "Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding con...more >>

Disabling certain url's in a menu?
Posted by kfrost at 4/29/2006 10:56:01 AM
Hello, I have a menu bound to a SiteMapDataSource which reads from my web.sitemap. I'm using the menu in a master page and everything works fine but I need to some of the menu items to be disabled depending on the user who is accessing the web page. For example I have a menu as with the...more >>

Automatic <%@Register of Web User Controls in a Project?
Posted by Alex Maghen at 4/29/2006 7:05:01 AM
Hi. In the shiny new ASP.NET 2.0, if you have a web project and you create a set of User WebControls, is there a way to set those controls so that I don't have to insert the whole <%@ Register tagprefix="XYZ" Tagname="MyControl" Src="~/BlahBlah/MyControl.ascx" %> at the top ...more >>

Is there a way to suppress the underline on the day link in a Calendar Control
Posted by JimO at 4/29/2006 12:00:00 AM
I don't want the user to see any links on the previous or next month days. Is there a way to supress the underline on the days in a calendar control. Maybe something like a text-decoration: none; Thanks, Jim ...more >>

could not load assemly
Posted by weijunyu NO[at]SPAM gmail.com at 4/28/2006 4:01:04 PM
I am getting this error message when I compile and run my application: "Could not load file or assembly 'Microsoft.Web.UI.WebControls' or one of its dependencies. Access is denied." Please help. ...more >>



How do I create a Drop Down List with Hyperlinks as List Items in ASP.NET
Posted by Tony Tone at 4/28/2006 11:46:17 AM
Hey Guys, I am trying to create a DropDownList with Hyperlinks as ListItem. I am creating a web page with ASP.NET and VB Any suggestions or Solutions to my problem? ...more >>

Listbox Flicker
Posted by Mark Roberts at 4/28/2006 10:34:53 AM
Hello Everyone, A co-worker and I came across something strange when a listbox is placed on a page with a menu (these are the standard 2.0 controls, of course). The menu is set to horizontal orientation and contains a few submenu items. It seems that if the height is set on the listbox (a...more >>

detailsView DeleteCommand
Posted by savvas.ioannides NO[at]SPAM gmail.com at 4/28/2006 2:55:00 AM
Hi, Im not really experienced with web applications. I am using vb.net 2005. I have a gridview where, when i press the select button, the information is shown in detailsView. I chose that because gridview does not support delete capabilities. Everything works fine :). What I need is simple ...more >>

Webcontrols.menu with multiple root items bound to a sitemap
Posted by abrown at 4/28/2006 2:11:02 AM
I have a menu on a webform that is bound to a SiteMapDataSource which is linked to a web.sitemap file. When I have more than one sitemapnode in the sitemap element of the web.sitemap file I get the following error "Exactly one <siteMapNode> element is required directly inside the <siteMap> e...more >>

System.Web.HttpException FindContol exception
Posted by Jim Butler at 4/27/2006 4:23:22 PM
We have a set of web server controls that inherit directly from their parent web server control and implement INamingContainer. We need our code to be 508 compliant but are having trouble with the FindControl method in AddAttributesToRender does not find the AssociatedControlID. Our test lab...more >>

Setting control focus on roundtrip
Posted by Inge Larsson at 4/27/2006 1:30:01 PM
Hi, I have a number of TextBox'es and do AutoPostBack of the form for every text box that the user leave (to handle data along the way). However, the tab order is broken for every postback, and the tab order starts from the beginning on every load of the page. Is there a way in ASP.NET 1.1 ...more >>

datagrid button selectivly enabled
Posted by kpg at 4/27/2006 12:31:43 PM
Hi all, Simple (?) question. I have a webcontrols.datagrid with a button column. Depending on the data in the row I want the button to be enabled or disabled. Optionally, I want the button to be visible or not visible. I'm building the datatable record soruce from scratch, so I'm visi...more >>

Custom Server Control Design Best Practices?
Posted by Kenneth Baltrinic at 4/27/2006 9:12:46 AM
Anybody seen any good documentation, paterns or best practices on how to design and develop custom ASP.Net server controls? I am looking for good examples and discussions on the following topics, among others: How to best use CopyBaseAttributes and Apply Styles? And just how to best render...more >>

framed
Posted by barret bonden at 4/27/2006 9:11:03 AM
A client of mine has a young man who has written a web app (a CRM in dot.net 1.1) using many frames .it looks good , but is hard to maintain, passing, as it does, parameters from one frame to the next. These parameters allow the synchronization of datagirds, leading to my technically naive que...more >>

asp.net 2.0 webparts
Posted by delebash at 4/27/2006 6:55:02 AM
How do you change the minimize,close,restore function of a webpartzone. What I want to do is only allow minimize and put the link on the webpart zone instead of in the arrow drop down list. Minimize Instead of >Minimize ...more >>

Webpartzone as DIV
Posted by Prashant Majhwar at 4/27/2006 12:00:00 AM
The webpartzone is rendered as <table cellspacing="0" cellpadding="0" border="0" id="ctl00_ContentPlaceHolder1_WebPartZone1"> <tr> <td style="height:100%;"><table cellspacing="0" cellpadding="0" border="0" style="width:100%;height:100%;"> I want to use DIV instead of TABLE to render ...more >>

How to Display an image, from a DB, into the Gridview (ASP.NET 2.0)
Posted by Auto at 4/27/2006 12:00:00 AM
Hello, I would like to know how do display an image into a Gridview (ASP.NET 2.0) taken directly from a DataBase, NOT using an URL, like described in this article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/GridViewEx06.asp I have NO URL, i have the binar...more >>

Welcome to Gridview Hell
Posted by C. David Johnson at 4/26/2006 11:40:13 PM
Ok I am working on the simplest thing ever that is turning in to the biggest train wreck ever. I have a database with a series of photo albums and the image path & name for each image. I pass the info to the gridview via the Query string. The thumbnails load with no problems as long as I use ...more >>

SelectedIndexChanged Event of Dropdownlist on a DLL..
Posted by den 2005 at 4/26/2006 11:03:02 PM
Hi Everybody, I like to know how to make the SelectedIndexChanged event of dropdownlist inside a DLL class works? Please provide actual codes? The DLL is like DateTimePicker. This dll is used for selecting date but I need to filter the days for specific month selected. For example, March...more >>

Open htm and asp pagen inside an .NET aspx project
Posted by Erik at 4/26/2006 8:01:22 PM
Hi guys, someone know how could be possible open an htm page or asp page (created for example using frontpage) inside an aspx page (created using ..NET 2005)? I have a populated list box on the left of my aspx page and any time that the user chose an item on it I have to change the htm/asp pa...more >>

Deriving from built-in DataGrid control
Posted by Axel Dahmen at 4/26/2006 7:01:04 PM
I've created a class in a .NET 1.1 C# class library project deriving from System.Web.UI.WebControls.DataGrid. When I try to use this class in my .aspx page, I get loads of parser warnings in the Task pane telling me that e.g. <HeaderStyle> is not supported by the active schema. This is true for a...more >>

controls recommendation
Posted by YC at 4/26/2006 12:21:02 AM
Hi everyone, I'm currently investigating some controls for a web + win application. Can anyone recommend on a company he knows and worked with? Thanks Yoav...more >>

User Control question
Posted by Brian Cesafsky at 4/25/2006 2:55:56 PM
I am using framework 1.1 I have a user control and a web page. I want to set up properties on the user control, so I can access the text boxes on the user control when I am in the code behind page of the 'main' web page. I have done this so far... 1) On the user control... in the #R...more >>

Scroll a node into view -- ASPNET 2.0 Treeview
Posted by William Sullivan at 4/25/2006 6:33:02 AM
Anybody figure this out? I can't figure out how to get the node's client side control ID in order to grab aholt of it. I've seen a post that says that the node's ID is: TreeView.ID + (index of the TreeNode in TreeView.Nodes collection). The problem is that, even after a postback, you ca...more >>

Determining which control has the focus on my web page
Posted by deane_gavin NO[at]SPAM hotmail.com at 4/25/2006 3:33:08 AM
I'm developing a simple ASP.Net web page in Visual Web Developer 2005 Express. I know in my VB.Net code I can call the SetFocus method of my page to set the focus to any control. But is there a way of determining which web control currently has the focus? GetFocus would seem a nice choice for th...more >>

Surprise with Textbox1.Text
Posted by Rakesh Parekh at 4/25/2006 3:33:01 AM
To my great surprise the following code is not working. I expect TextBox1.Text to be changed each time the dropdownlist selected index changes. It works in Windows application but surprisingly not not WebApplication web form. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As ...more >>

Calendar control question
Posted by Paul at 4/24/2006 3:16:02 PM
Hi I have a vs2003 .net calendar control and what I need to do is when the user makes any selection for the entire month I need to get the year and month of the selection but then also need to get just the last day of that month and year. I looked at the calendar class but did not see anyway ...more >>

Get cached value returned from Select()
Posted by David Thielen at 4/22/2006 10:23:02 AM
Hi; In my code-behind, is there a way to get the data returned from the Select() call from an ObjectDataSource? I know I can call it again, but when the page is first created ASP has already called it to populate controls and I would prefer to not call it twice. Also, is there a way to f...more >>

How to make button which has a underline character for shortcut key?
Posted by ABC at 4/22/2006 12:00:00 AM
How to make button which has a underline character for shortcut key? ...more >>

FileSystemWatcher does not seem to be working
Posted by Nathan Sokalski at 4/21/2006 7:15:50 PM
I have a directory on my site that I keep a bunch of text files in (this directory is "/poetry/poems/"). The Application keeps the first line of each of these files in an HttpApplicationState variable as a SortedList. When I add or modify a file in this directory, I want to delete this HttpA...more >>

LinkButton field and FindControl
Posted by Roberto Kohler at 4/21/2006 12:50:45 PM
Hi, I have a LinkButton in a TemplateField inside my GridView How do I access this control in the RowDataBound handler? I've tried this: Dim LinkEdit As LinkButton If e.Row.RowType = DataControlRowType.DataRow Then LinkEdit = e.Row.FindControl("LinkEdit") LinkEdit.CausesValid...more >>

DataSourceControl and declarative SelectParameters
Posted by WT at 4/21/2006 12:30:14 PM
Hello, I am trying to implement a DataSourceControl and I need to simulate the same functionality as the SqlDataSourceControl : being able to set declaratively the select parameters to use when binding a DetailView to the Selected Row in a GridView, but I have difficulties with the sample in ...more >>

FormView events
Posted by TheDeacon at 4/21/2006 9:45:35 AM
Is there a way to use the FormView for Selects, but let it post back for Inserts and Updates? The problem I am running up against is that, if you use an SQL DataSource for the Formview, and you only speicify a SELECT command in the SQLDataSource, you get an error when you click the "Insert" lin...more >>

SmartNavigation/MaintainScrollPositionOnPostback & Datagrids
Posted by Zamdrist at 4/21/2006 8:36:51 AM
Use of SmartNaviagtion appear to cause a serious perfomance hit, I'm not working with ASP.Net 2.0 yet so MaintainScrollPositionOnPostback=True isn't an option either. Is there a way I can persist the user's scroll position in a datagrid, are there any other options? Thanks ...more >>

Javascript with Webcontrols
Posted by Peter Afonin at 4/20/2006 8:01:29 PM
Hello, I'd used before methods like RegisterStartupScript with ASP.NET, but this problem I was unable to solve yet using this method. I have a web form with a few web controls - textbox, dropdown lists, calendar control. If the textbox has a value- I need to disable all other controls when ...more >>

Edit, Update, Cancel
Posted by Zamdrist at 4/20/2006 4:49:06 PM
I have a datagrid that shows approximately 1000 rows of data. I haven't used paging yet, but I may need to yet. When you click on Edit to subsequently Update or Cancel, the page 'reloads' and brings you back to the top of the page. So, if you were trying to edit something half way down the g...more >>

best practive with dropdown list controls in user controls
Posted by dma at 4/20/2006 2:08:02 PM
Hi all I have a situation where I have a composite web user control which centralizes a db lookup. I am having a problem where it seems viewstate is being voided and it always loses it's selected index. I have properly wrapped the ispostback, so I am sure it is not getting overwritten tha...more >>

Print version use CSS or similar ?
Posted by JDP NO[at]SPAM Work at 4/20/2006 8:22:56 AM
I've seen info regarding using CSS to control browser verses printer output, however I'm not sure I'm on the right track. The goal is to have a printable version w/out having to code a duplicate page that is printer friendly. 1. I don't get how to use the CSS method, perhaps I havent' read e...more >>

Sorting Datagrid
Posted by Zamdrist at 4/20/2006 6:53:18 AM
It's my understanding, in order to sort a datagrid you have to create a new DataTable, correct? So, if on the load of the page, you do something like this: 'adosDS & AdoConn are global in this instance Dim adoSelect As New SqlCommand Dim adoDa As New SqlDataAdapter adoSelect.CommandType ...more >>

2.0 TreeNode
Posted by William Sullivan at 4/19/2006 4:38:02 PM
I've got a treeview that i'm filling using PopulateOnDemand (ajax calls). The TreeNode isn't sealed, so I thought I could extend it (call the new one SuperTreeNode) and add a bunch of data to the new node that I need to keep track of. But when the TreeNodePopulate event fires and I get the n...more >>

How to get dynamic control's value after postback?
Posted by YesGoGoGo NO[at]SPAM gmail.com at 4/19/2006 9:49:09 AM
hello! I have a question about getting dynamic control's value after postback(or submit). I've read a lot of article and have some idea. It's seems that if I want to keep the dynamic control's layout and value, I have to make some *extra work" to keep control's hiararchy,such as using arrayli...more >>

MyGridView cause "Columes" lose the intellisense in VS2005 IDE!
Posted by walter at 4/19/2006 8:52:02 AM
Hi there, I guess it maybe easy for you-- I create a custome control inherited from GridView, But when I start to use in the page , in vs2005 , I lose the intellisense for anthing in <columns> tag. It's not a big deal, but it's relatively painful when you know you can do it in GridView. I ...more >>

Can i Make a Month Column Display May instead of 5
Posted by Vear at 4/18/2006 8:10:02 PM
Hi, I have a month column that is stored in SQL as an Int field. I would like to change it after the stored procedure which means when it loads into the DataGrid. I've tried several different things but none seem to work. I've made the column a Template field but I can't figure out the Synt...more >>

CompositeControl and Toolbox
Posted by CMM at 4/18/2006 6:24:36 PM
This has been asked repeatedly many times and no one has been able to answer it. Now, I have the problem too..... why are CompositeControls so hard to make show up in the Toolbox? Why do they show up sometimes and then disappear? What's magic combination of tricks need to happen in order for ...more >>

A socket operation was attempted to an unreachable network
Posted by manual tester at 4/18/2006 12:21:21 PM
I am new to ASP.NET. I am getting the following errror, when i tried to run a website that has 'Password Recovey' control in it. I think the error has something to do with the SMTP mail settings. Can anyone tell me how to set up email settings for the password recovery control to work properly. ...more >>

SqlSiteMapProvider - extending
Posted by PhatT at 4/18/2006 10:38:02 AM
Working off of the Wicked Code article by Jeff Prosise... http://msdn.microsoft.com/msdnmag/issues/06/02/WickedCode/default.aspx I am trying to build my sitemap on multiple tables. I have tried this many different ways with not the ideal results. When building the sitemap with a storedproc...more >>

ID of web control changed
Posted by Adam Plocher at 4/18/2006 9:46:50 AM
Hello, I have been developing a website locally for quite some time now in ASP.NET 2.0/C# and all of the web controls (locally) have IDs like this: ctl00_ContentPlaceHolder1_ddSearchType I just uploaded it to our live site today, for the first time, and now all of my IDs look like this: _ctl0...more >>


DevelopmentNow Blog