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 > october 2007

Filter by week: 1 2 3 4 5

Intercepting DropDownList Selected Value when not in list of Items
Posted by WJB at 10/30/2007 5:22:04 PM
I'm using a FormView with a number of DropDownList controls that are bound to SqlDataSources. Sometimes, the current contents of the bound fields are invalid (i.e. not in the list of items retrieved from the data source used as the DataSourceID for the dropdown list). Trapping the OnDataBindin...more >>

localized asp:label w/nested control bug?
Posted by Anson Goldade at 10/30/2007 9:08:02 AM
I think I may have run into an issue with the asp.net lable control. Take the following code <asp:label runat="server" id="txtTextLabel" associatedcontrolid="txtText" meta:resourcekey="txtTextLabel"> <asp:textbox runat="server" id="txtText"></asp:textbox> </asp:label> ...more >>

StaticItemTemplate is not applied on postback Options
Posted by John123 at 10/30/2007 6:27:05 AM
Hi all, I am having a strange problem when using the ASP.NET (2.0) menu control. I have a menu control that gets populated in the page load. I do not check the PostBack value because I want to rebuild the Menu Control each page visit. The first time the Menu is built exactly as specified...more >>

Ajax ModalPopupExtender with FormView
Posted by john at 10/27/2007 6:53:37 PM
Button invoking FormView: It opens the FormView as expected, but when I Click New it Disappears during postback and remains Invisible. When I Click the Original Button again that invoked it, it Shows again in the "New" Mode (or Edit Mode if I Clicked that Choice). How do I get it to show i...more >>

Webcontrols added inside a Gridview are not accessible from code behind.
Posted by cclements1384 NO[at]SPAM gmail.com at 10/26/2007 2:21:02 PM
Gurus, I am trying to add a Drop Down List web control to the footer template of a grid view. The problem is that once the control is created (using markup) the name of the control is not accessible from the page's code behind. References to ddlmyControl in code fail to compile because the...more >>

Bind images to a data list
Posted by mherrera78 at 10/26/2007 1:01:02 PM
I have been presented with this challenge. I need to build a image viewer type of control. Basically, a specific part has different views, and when one part is selected, I need to display an image on a medium size and all the different views of the same part right below in some sort of thumbn...more >>

OnServerValidate handler - how to know which CustomValidator is using it ?
Posted by northof40 at 10/26/2007 12:01:45 AM
Hi - I have set up a number of CustomValidators all of which specify the same method as on their 'OnServerValidate' property. Within the method handling the custom validation how can I determine which CustomValidator is calling ? I would like to modify the error message dynamically but witho...more >>

use index on dropdownlist
Posted by Sam at 10/25/2007 10:53:06 AM
I got a drop down list, but when i try to selected an index it dose not work. can someone give me some help? here the code: Dim dsCountry As New DataSet dsCountry = GetCountries() With dpdnCountry Dim lstItem As System.Web.UI.WebControls.ListItem ...more >>



Help with vb.net Maths syntax in asp.net
Posted by Jamie Sutherland at 10/25/2007 12:00:00 AM
Hi, I am trying to get my web app to do some maths... The user enters a number in a textbox, then i want the app to deduct 2 from every multiple of 12. ie 12 =10 24 =20 36 =30 48 =40 and so on Any one got any ideas on how i can do this? Thanks in advance Jamie ...more >>

Menu Control used on a MasterPage
Posted by Matt at 10/24/2007 12:00:00 AM
Hello, I am using an ASP Menu Control as a user control (.ascx file) on a Master Page. I am having problems with the drop down menus rendering properly in IE 7. I found multiple articles describing this problem and how to fix it (http://weblogs.asp.net/dannychen/archive/2005/12/16/433332.as...more >>

RequiredFieldvalidator displays error too early
Posted by Preben Zacho at 10/23/2007 11:47:54 PM
Hi there I have a RequiredFieldValidator that displays the text "Required field" for a textbox. The problem is, that the text "Required field" is displayed BEFORE the user presses the button to accept the form. Why does this occure? Must be some setting I've missed, cause in other forms it wor...more >>

VWD2005: SQLCommand can't be added to page, why?
Posted by Vadim Rapp at 10/23/2007 12:36:41 PM
Hello, in Visual Studio 2005/Visual Web Developer, if I add SQLCommand, SQLCommandBuilder,SQLConnection, SQLDataAdapter to the toolbox, they don't show up until I check "show all items"; then they appear disabled, and can't be added to the page. Still, I see that I can create those objects ...more >>

PostBackTrigger for Ajax cannot find FormView Button
Posted by john at 10/23/2007 12:00:00 AM
This Error on page load attempt: A control with ID 'AttachButton' could not be found for the trigger in UpdatePanel 'UpdatePanel1'. Condition: File Upload Control inside of and Ajax UpdatePanel, which is inside of a FormView Insert Template. File Upload Control needs this Trigger according d...more >>

DropDownList in a GridView
Posted by BrassicaNigra at 10/22/2007 2:40:02 PM
I have a datagrid that has a dropdownlist in each row. When a user changes one of these drop down values, the autopostback allows me to handle the event using the OnSelectedIndexChanged event for the drop down. This works fine, but I cannot find a way to retrieve which row the drop down ...more >>

Refresh Page
Posted by blanic via DotNetMonster.com at 10/22/2007 2:28:10 PM
I have a webpage (aspx) in .net using visual basic as my code behind it. I have a gridview that when I push a button it adds a comment box to the gridview, which works, but the page does not refresh to show the data unless I back out and go back in. How do I refresh my page to show the data I j...more >>

unhandled exception in custom web control (PS:PSGridView)
Posted by R.A.M. at 10/20/2007 12:00:00 AM
Hello, I am writing ASP.NET application with will use custom web control PS:PSGridView (insertable grid view) downloaded from http://www.codeproject.com/aspnet/PSGridView.asp. My problem is that when user inserts/edits/deletes row in the control, an error in occurs my application: Message: ...more >>

Position of a dynamic table
Posted by KSO at 10/18/2007 9:28:15 PM
By C#-code I want to place a table UNDER my last WEB control - witch I placed with the designer. My problem is that the table is inserted in the topleft of the IE window - on top of my other WEB controls. I think the controls must have a position-property but I can't find it....more >>

BulletedList Control
Posted by KSO at 10/17/2007 11:47:03 AM
I can't get my BulletedList control to work properly ! I wish to change it's displaymode by clicking on a "bulleted list of choices" and her is the click-event: protected void BulletedList1_Click(object sender, BulletedListEventArgs e) {label1.Text = "Now it should bel " + BulletedList1.It...more >>

Re : GridView Error
Posted by BB206 at 10/17/2007 2:42:50 AM
I got the below error when click the Page No. when paging : Microsoft JScript °õ¦æ¶¥¬q¿ù»~: Sys.WebForms.PageRequestManagerServerErrorException: ¥Ñ GridView 'GridBooking' ¤Þµo¦ý©|¥¼³B²zªº¨Æ¥ó PageIndexChanging¡C Anyone can help! ...more >>

How to make to RadioButtonList on the same group
Posted by John Dow at 10/17/2007 12:05:40 AM
I have two RadioButtonList that binding two seperate lists. However, I would like to make them in the same group, which means when one RadioButtonList has any selected item, the other RadioButtonList will have no selected item. Is there any way to do that easily? Thanks ...more >>

Display a Web Form then Do Something
Posted by Larry Rebich at 10/16/2007 9:33:08 AM
Is there a way to display a web page then do something else - similar to the DoEvents in VB6? I have a rather long running process and I'd like to display the web form but during PageLoad I'd like to go off and do the process. Or is there a better way to do this? Thanks and Cheers, Lar...more >>

ReportViewer for Visual Web Developer 2008
Posted by zous at 10/16/2007 9:01:00 AM
I downloaded and installed VWD 2008 Express, but can not find ReportViewer webcontrol for VWD 2008. I used to use ReportViewer 2005 in VWD 2005. It does not work in VWD 2008. Where can I find the ReportViewer that will work in VWD 2008? Any one knows? ...more >>

Is there a 3rd party text editor control that is approx as scripable as Word?
Posted by sandal at 10/15/2007 8:55:29 AM
Does anyone have exposure to a programmable asp.net editor control that can approximate basic aspects of Word's programability? I have an existing system that utilizes Word and vba to build a customized document out of text snippets and then let the user complete the editing. The kinds of...more >>

Griview cells Text Special Characters
Posted by john at 10/12/2007 12:00:00 AM
When I get a Gridview Cell contents that has a Special Character in its data such as an & or " it returns it constant &amp; or &quot; instead of the actual Character. Any way to modify this code to get the actual Character as it is displayed in the cell? Sample cell actual text: ...more >>

FileUpload control question
Posted by JoeP at 10/11/2007 1:28:51 PM
Hi All, I am using the FileUpload control for the ASPX page. How do you disable the text box portion of that control, so I can force the user only to pick up a file via the Browser button, and not to type any file name that does not exists. Appreciate any feedback or any other suggestions. ...more >>

FileUpload Control PostedFile.FileName is ReadOnly
Posted by Larry Rebich at 10/11/2007 1:13:41 PM
I would like to use the FileUpload Control on an Asp.Net form. And I'd like to save and restore the FileName between sessions. It seems the property is read only. Is there a way to browse for a local file from an Asp.Net page and retain the file name from session to session? I've not bee...more >>

My page is not triggering the RaisePostBackEvent() method
Posted by Nathan Sokalski at 10/11/2007 1:07:49 PM
In my *.aspx.vb file, I override the RaisePostBackEvent() method so that I can run code during any postback. I know that a postback is occurring because IsPostBack() returns True, but none of the code in the following is executed: Protected Overrides Sub RaisePostBackEvent(ByVal sourceC...more >>

Problem with DataList within DataList
Posted by Will at 10/10/2007 2:16:18 PM
Hi Guys - I am having a problem with one my datalist dlProjectCustomFields that is 2 layers deep from my primary dlAccounts datalist. All my datalists populate with the correct values withou any issues except for the dlProjectCustomFields. All the data within the dlProjectCustomFields is id...more >>

Web Part INterfaces SSRS Deep INtegration and Sharepoint
Posted by ezeget.com at 10/9/2007 8:58:02 AM
Have posted this onto SSRS and Sharepoint groups but maybe will get quicker answer here from you guys. I am looking for the actual interface that will allow me to interface with the SSRS Web Part from the Sharepoint Deep Integration suite. It appears that it needs a doclib interface, I gue...more >>

Conditional Control / Nested Tags
Posted by Sam via DotNetMonster.com at 10/9/2007 12:00:00 AM
I need to create a control that contains two child collections and renders one of them depending on a condition. How can I make it parse "true" and "false" nested tags? I cannot use the standard MultiView control as I do need these "true" and "false" tags. <MyControl runat="server"> <true...more >>

Display Parameter Results in Report
Posted by john at 10/6/2007 9:26:24 AM
Conditions: Web Control: Report Viewer The Report.rdlc Dataset query has 2 Date Parameters @Start & @End. In the Report viewers ObjectDataSource: Configuration, I have them set them to 2 Textbox controls. Report works as expected. What I would like is to have those two Enter Dates Display...more >>

Riich Text Control
Posted by Jack at 10/5/2007 4:18:42 PM
Does anyone have a good recommendation for an end user friendly rich text control? The objective is to have the page creation experience much like creating a document in Word with a very simple implementation of inserting images and formatting text. Jack ...more >>

Reportviewer Local Mode
Posted by Madison at 10/5/2007 8:39:01 AM
Hi there, I'm working with web site project using vs 2005. I wonder should I use reportviewer local mode to write all my reports. What is advanced / disadvanced of it? I have 3-4 books about asp.net but nothing mention about the reportviewer control. If any of you can point me to some web s...more >>

Login control doesn't function
Posted by Pasquale at 10/5/2007 7:03:02 AM
My development team has built a web site in ASP.NET 2.0 with a login page to access to a reserved area. His has used the login control, but the flag to store the data for the next time doesn't function. My team has tried it several times unsuccessfully! How can I solve this issue? Many tha...more >>

BorderWidth of the control asp:ImageButton does not work in firefox
Posted by Christophe Sauvage at 10/5/2007 12:00:00 AM
Hello, Apparently the property BorderWidth of the control asp:ImageButton does not work in firefox there is a solution ? Thank you. Server code : <%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ import Namespace="System" %> <script language="C#" runa...more >>

Passing Parameters to user control within another user control
Posted by hmikki at 10/4/2007 5:06:22 PM
Hello - I am dynamically loading a user control (Ctrl2) within another user control (Ctrl1). Now, I need to pass parameters from Ctrl1 to Ctrl2. How do I do this? Thanks much. ...more >>

DropDownList: Accesing the columns values
Posted by WhiskeyRomeo at 10/3/2007 4:27:00 PM
I have a ddl bound to a sqldatasource which returns 4 columns. It is easy to access two of them since one serves as the datavaluefield and the other as the datatextfield. But how do I access the other columns' values in the selecteditem of the ddl? I was expecting to see something like th...more >>

Menu control - width and valign
Posted by Leslie at 10/3/2007 1:31:02 PM
I have a customer that is very concerned with having all web sites present standards compliant html. When using the Menu control I have found a couple of problems regarding the width and the valign attributes. When I specify a StaticMenuStyle.Width of 188 the resulting html is generated wi...more >>

validation expression for date
Posted by Amir Steta at 10/3/2007 7:38:04 AM
I need regular validation expression in order to check entry of date in "european" format i.e. 24.09.2007 . Anybody could help? So far I have simple expression like this (\d{2}\.)(\d{2}\.)(\d{4}) This expression does not prevent entry of 45.23.2006 for example ...more >>

Dynamic calculations in a GridView
Posted by C at 10/3/2007 3:28:01 AM
Hi, I am posting this on the aspnet.webcontrols board as someone may have done something similar. I have a series of Database tables which hold various fields and details of how they are calculated. I take these details and bind them to a Gridview with a Description of each item and a...more >>

Escaping the & in Attributes.Add()
Posted by Nathan Sokalski at 10/2/2007 4:10:00 PM
I am adding an onmouseover attribute using the Attributes.Add() method, and the String I am using for the value contains the & character. However, when rendered the & is converted to the HTML representation of &amp; which causes my JavaScript not to work. What can I do to prevent the Add() met...more >>

AddHandler not working
Posted by Nathan Sokalski at 10/1/2007 9:38:34 PM
I have a section of my code that dynamically creates LinkButtons to allow the user to go to the page containing a question they have not answered. The code that creates the LinkButton is called, as well as the AddHandler line (I ran a Debug and saw that it executes this code, and the links are...more >>


DevelopmentNow Blog