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 > march 2005

Filter by week: 1 2 3 4 5

Itemplate sample : Access controls on postback
Posted by Luhar Powell via .NET 247 at 3/31/2005 10:33:28 PM
How to access other controls values in ITemplate? Hi, I have simple Itemplate implementation with 2 textboxes and button. On postback I would like to access values entered by user in the textbox controls. The Itemplate sample below has two text boxes for first name and last name. There is...more >>

tips or example for webcontrols.
Posted by Arvind P Rangan at 3/31/2005 2:41:25 PM
Hi All, I have tried creating web controls with examples on the net. It works fine with c# but not with vb.net If anyone have a good website for vb.net webcontrols or if you have executed any kindly let me know. Thanks Arvind ...more >>

How to set Base Control for ALL Controls? (ASP.NET 1.1)
Posted by Jon B at 3/31/2005 1:00:21 PM
Hi All! Are there any ways to set Base control class for all the controls in an ASP.NET application? For example, Base Page can be set in the Web.Config file as follows... <pages pageBaseType="frmCustom,frmCustom" /> Is there a similar setting in web.config for all the ASCX controls to ...more >>

User control
Posted by Louis Yeung at 3/31/2005 12:37:12 PM
Hi, I created my very first code-behind user control (ascx) and tried to used it in the aspx within the same project. I have the following questions: 1. Can I select the user control and drag it into the aspx designer view? I dragged the ascx from the solution explorer view. VS2003 created...more >>

Images in DropDownList
Posted by Richard at 3/31/2005 11:37:04 AM
How would I display images in an asp.net dropdownlist using vb.net? I have a webform where the user can modify product info (cost, description, etc.). The info is in a ss2000 database. There is also an nvarchar field that points to an image on the server. I know how to display the images in a ...more >>

change a web control in jscript
Posted by jthornby at 3/31/2005 11:35:04 AM
Is there any way to manipulate the content of a web control in client side jscript that can propogate to the server? Specifically, I'm trying to increment or decrement the value in a text box when one of a set of check boxes are checked and I don't want the overhead of going back to the serve...more >>

CustomValidator
Posted by Louis Yeung at 3/31/2005 8:07:04 AM
Hi, I am playing with validators using VS2003 on a XP box. I have textboxes with regExp validators and a button. The validators work when I press the button. If any validator fails, error messages are displayed and button click event does not fire (i.e. not hitting my breakpoint). Everythin...more >>

Selectively displayed HTML in ItemTemplate of repeater control
Posted by msielski NO[at]SPAM gmail.com at 3/30/2005 10:23:30 PM
I apologize if I don't explain this clearly, or if the solution is an obvious one. I have been using ASP classic for a few years, but only recently started with ASP.net. I have been reading Stephen Walther's ASP.NET Unleashed 2nd Ed with much success, but have not been able to figure out this ...more >>



TextBox controls determining if text is highlighted or selected
Posted by studen771 at 3/30/2005 5:29:02 PM
is this possible? I know that I can derive a class from the windows.form namespace but then i Couldn't use it in an asp.net page. I want my user to be able to select speciifc text they've highlited in an asp.net textbox and change its formatting..is this possible?...more >>

DataGrid
Posted by voo at 3/30/2005 4:49:02 PM
I would like to group the rows of a datagrid so its value spans multiple rows. Data: A 1 12 A 2 24 A 3 11 B 1 14 B 2 12 B 3 11 I want to have A and B span 3 rows and display only once. How can I do this in OnItemBound Thanks. ...more >>

GridView column reordering
Posted by Shafia at 3/30/2005 4:11:53 PM
Hi, I dont find the GridView features described in the following artical e.g column reordering and FullRowSelect. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms12182003.asp Please let me know when and in which release these would be available? Reg...more >>

Dropdownlist Problem
Posted by Glenn L. at 3/30/2005 10:28:37 AM
I am using the VS 2005 beta1. I am trying to add a Dropdownlist control that gets its data from one table and when selected saves the ID into another table. I have 2 tables TBLSTAFF and TBLRACE. TBLSTAFF has an integer field called RACEID. TBLRACE has the foreign key RACEID and RACEDESC(Descr...more >>

SortCommand event does not fire when ViewState is disabled
Posted by ae at 3/30/2005 9:47:03 AM
i have a custom datagrid with the viewstate turned off. i plan on caching the datasource and handling this myself rather than using viewstate. when the viewstate is disabled my SortCommand event handler never gets fired....more >>

Render method?
Posted by Karl at 3/30/2005 9:45:02 AM
I'm using Lutz Reoder's .NET Reflector program to browse the source code for System.Web.UI.WebControls.TextBox. Looking at this class's Render() method, I had expected to see code that would actually draw a textbox. No such luck. 1) What code does draw the textbox? 2) What's a HtmlTex...more >>

HtmlInputFile during postback..
Posted by newmem at 3/29/2005 4:07:51 PM
Hi In the webform, if a use selects a file to upload and submits the form. But if page validation fails, the HtmlInputFile loses the filename string and the user has to re-select the file using the browse button. Is there any way to persist the postedFile.filename during postback? Apprec...more >>

Div tag to display/ hide a control ....please help
Posted by ~Maheshkumar.R at 3/29/2005 3:26:14 PM
Hello groups, i need small code snippet for implementaion of div tag. Let say, if i click a button, i have to hide a checkbox list. I have placed that control inside the Div tag, but not responding. Mahes. ----------------------in codebehind -------------- Button1.Attributes.Add("o...more >>

adding a new row to the repeater control
Posted by buran at 3/29/2005 3:01:26 PM
Dear ASP.NET Programmers, Here's my problem: I have a page (as usual :), in which I'm going to = display invoices in a repeater control. I am binding data to the = repeater control (ID: repHospCosts) without any problems. I have also a = button on the page, I am going to add a new datarow prog...more >>

Slidebar
Posted by Bernardo at 3/29/2005 2:58:25 PM
Hi, There are in .net some control that simule a SlideBar? Thanks ...more >>

Button click event not firing on production IIS server?
Posted by JohnH. at 3/29/2005 1:56:41 PM
I'm obviously not looking in the right place to find the source of this problem. Anybody got any ideas where to look? I have an ASP.NET c# application w/ several pages that have buttons. On my development IIS server everything works fine. When I publish my code to a pre-productions st...more >>

Stop my window from jumping
Posted by Randel Bjorkquist at 3/29/2005 1:05:58 PM
How do I stop my WebForm from jumping back up to the top of the window every time it's posted? What is happening is that I have a web-application that has a couple of ListBoxes that I allow the end-user to fill in. They are asked to fill in a TextBox which I then add to the ListBox. But aft...more >>

Table and controls
Posted by RyanW at 3/29/2005 11:39:02 AM
Is there a way to drop controls in the cells of a table at design time? I can do it with the HTML Table, but not the asp.net table. Thanks Ryan...more >>

Default behavor
Posted by Randel Bjorkquist at 3/29/2005 10:34:51 AM
I'm trying to figure out how to stop one of the Button on my WebForm, from activating its OnClick event when I press the "Enter" key while entering data in a TextBox. If I disable it, the control/focus goes to another Button and that Button then has the same thing happen. I know there must...more >>

RequiredFieldValidator Question
Posted by Randel Bjorkquist at 3/29/2005 9:43:34 AM
Hi all, I'm extremly new to building web-applications, C#, and the whole Microsoft Visual Studio 2003 .NET IDE, so please bare with me. What I have: I have a web-application that communicates to an SQL Server. My aspx file is on a Windows 2000 Server running IIS. The base of the program...more >>

Datalist Edit button created in ITemplate class
Posted by Charles at 3/29/2005 8:47:06 AM
Hello, I have found lots of examples and information on how to create an edit button in the datalist control, however the edit button is done with the edit template property. I have created the edit button in a class that Implements ITemplate in the InstantiateIn Sub. The information of...more >>

How do I get the SelectedValue from a RadioButtonList using javascript
Posted by pierre NO[at]SPAM globalkinetic.net at 3/29/2005 5:09:54 AM
Can anyone tell me how to get the SelectedValue from a ASP.net RadioButtonList, using javavscript. Here is my code: <ASP:RADIOBUTTONLIST id=3D"optOption" runat=3D"server" ONCLICK=3D"javascript:alert(docu=ADment.all.optOption.selectedIte=ADm);"></= ASP:RADIOBUTTONLIST> This is not worki...more >>

Compatibility problem of IEWebConrols
Posted by dweng NO[at]SPAM hronline at 3/28/2005 4:35:02 PM
We use IEWebControls (including TreeView and TabStrip) in our Dot Net application. It works fine in IE6.0. But the treeview does not work in IE5.0, Netscape and Firefox. When we click the item of treeview, the expected result is that the tree will be expanded and shows the sub tree. But in Net...more >>

Highlight the datalist row
Posted by Lubomir at 3/28/2005 1:29:03 PM
Hi, I have a datalist with 3 columns. First one contains an image. All of them are hyperlinks. Datalist is generated by using ExtractTemplateRows="True". My question is how to highlight the entire row by dragging mouse cursor over the row. I would like to use a script for onMouseOver, b...more >>

ASP.Net Tabs
Posted by SouthSpawn at 3/28/2005 9:52:17 AM
I am looking for a way to add tabs to my asp.net pages. I saw an application that had tabs on it. It seem as they did it with javascript, because when you click on each tab. It didn't post back to the server to load the tab information. Any Suggestions? Mark ...more >>

Trouble Filling DropDownList in Datagrid
Posted by David Londeck at 3/28/2005 9:40:51 AM
The following code will only populate every row for the DropDownList control column in the datagrid instead of every row where the DropDownList appears in the DataGrid for a particular column. Any ideas on why? Private Sub dgAssignSalesReptoIMEI_ItemDataBound(ByVal sender As Object, ByVal...more >>

Chart position
Posted by LB at 3/27/2005 11:37:28 PM
Hello trying to use the micorsoft.office.interop to create chart, i got stuck to position the chart on the page. everytime I try to use : ChartSpace1.Charts(0). top = 500, I get the following error : This is an inappropriate time to alter layout Any idea how to position the chart ? ...more >>

Labels
Posted by Przemek Orlik at 3/27/2005 3:49:02 PM
I have a small problem. While useing Internet Explorer I'm able to change size of text in labels on my web page (Ctrl+MouseScroll). Is there any way stop this, because while designig my page I have to know exactly what are the sizes of those labels. Maybe there is any othere control (other tha...more >>

RadioBNuttonList Problem
Posted by Wayne Wengert at 3/27/2005 6:55:06 AM
I have one aspx page that contains a radiobuttonlist control that does not fire the SelectedIndexChanged event? I have similar controls and processes on a dozen other pages that work fine but on this one page, the event code (see below) is never executed? I am totally stumped. Any thoughts on how...more >>

hosting app from pc
Posted by Jimmy at 3/26/2005 10:09:42 PM
Hi I am trying to let other people access my asp.net app through the internet. Besides from any security issues i have tried this but other people cannot reach my site. The url I want to be accessed is :http://myip/myaspnetapp.aspx ch Jim -XP pro -.net 1.1 -zonealarm 5.5.062.011 ...more >>

query database, create control, display on page
Posted by LU at 3/26/2005 2:43:02 PM
1)I query database: QuestionName | QuestionType AwardText1 | TextBox AwardMonth1 | DropDown AwardYear1 | DropDown AwardText2 | TextBox AwardMonth2 | DropDown AwardYear2 | DropDown What is the best way to 'look' at QuestionType, build the correct control, and...more >>

Formatting dropdownlist containing three fields
Posted by Chip Cooper via DotNetMonster.com at 3/25/2005 11:20:24 PM
The dropdown list contains three fields I want the end user to see, but I'd like to format how this dropdown is presented. I want to add spaces between each field so it's not just one long string. Thanks! -- Message posted via http://www.dotnetmonster.com...more >>

Setting dropdownlist.selectedindex when entire datagrid is dynamic
Posted by NancyA at 3/25/2005 10:37:04 AM
I have a dynamic datagrid that is created using records in a SQL table. The datagrid functions perfectly in both view and edit modes. The only thing left to do is to figure out how to set the SelectedIndex property of any DropDownLists in the grid to the correct value when the user clicks th...more >>

Validation on controls within a repeater
Posted by Octavie at 3/25/2005 2:35:02 AM
Hai there! I've build a web user control which contains a repeater control. This repeater control has several textboxes which need to be validated. The repeater is bound to a dataset that contains a datatable with empty rows. The validation I need is to check whether a value has been provi...more >>

Sorting a ListBox Control
Posted by Nathan Sokalski at 3/24/2005 10:47:58 PM
I have a ListBox Control for which I would like to sort the ListItems. What is the best way to do this? If possible, can someone show me a simple example? Any help would be appreciated. Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/ ...more >>

Checkbox Issue 1.0
Posted by Mathana g at 3/24/2005 7:28:39 PM
Hi, We found an issue with checkbox control of .Net version 1.0. Actually, checkbox controls is added with javascript as follows chkGroupALL.Attributes.Add ("onclick", "return ProcessGroupALLClick();"); The issue is when javascript function ProcessGroupALLClick() returns false as resu...more >>

stuck: I cant reach usercontrol's class ..
Posted by Support at 3/24/2005 8:16:00 AM
in asp.net If I have a web usercontrol WUC with code behind Class CLASSWUC and I have a web page that loads the control Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init MANAGEGENERAL = LoadControl("WUC.ascx") MyPlaceholder.Controls.Add(M...more >>

how to limit textbox can only input plus number using javascript?
Posted by yezanxiong at 3/24/2005 7:39:02 AM
Hi Everyone, I am new in asp.net, and i am not quite familar with javascipt. I know how to use javascript to force textbox's input turn to uppercase, here is the sample code. Dim oStrBuilder As System.Text.StringBuilder = New System.Text.StringBuilder oStrBuilder.Append("<script langua...more >>

High-level question about ASP.NET web controls..
Posted by RCS at 3/23/2005 4:21:01 PM
I'm a bit of a noob when it comes to web controls... What I want to do, is create web control that appears in the toolbox, that one could drag onto a web page - and you'd see the actual control (e.g. what it will look like on the resultant web page - much like how the datagrid looks). If I use...more >>

How to do a Combo box with Type Ahead
Posted by Paul D. Fox at 3/23/2005 11:58:10 AM
Has anyone added a "Type Ahead" functionality to a Combo Box Web Control? Paul ...more >>

How to populate a datagrid with multiple tables using dataset
Posted by jithin raj via DotNetMonster.com at 3/23/2005 10:31:42 AM
hi, first of all i'm new to dotnet.it'll sound simple,but please try to solve my problem. i have 4 tables with one field in all the same.how will we populate the values from all these tables to a data grid? thank you in advance -- Message posted via http://www.dotnetmonster.com...more >>

Datagrid Verticle Header is this possible? How?
Posted by Roger at 3/23/2005 10:17:32 AM
I would like to make my column header go verticle instead of horizontal. Is this an easy task in asp.net. (Actually using Visual Studio.net 2003). thanks, Rog ...more >>

downloading files
Posted by seal at 3/23/2005 8:11:02 AM
Can someone point me in the right direction to allow downloading from a website? I would like to give people the abilty to download files, .exe , etc. ...more >>

no permission to create directory
Posted by Jimmy at 3/22/2005 9:15:15 PM
Hi I am trying to create a new directory "newdir" but i get the error: Exception Details: System.UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\MakeLab4\newdir" is denied. I think i have to grant the necessary permissions. Where can i do that because in the explorer ...more >>

How Can I create webControls Dynamic ?
Posted by kylin at 3/22/2005 5:01:37 PM
Just the title ! any website or Document ? ...more >>

DropDown SelectValue always first entry
Posted by Stephen Davies at 3/22/2005 3:29:02 PM
I am sure you have all seen a post like this one but its not as easily solved as the others as you will see from the description below: Binding a DropDown to a database table (works well all present) cbCountry.DataSource = objDs; cbCountry.DataTextField = "CoName"; cbCountry.DataValueFiel...more >>

Cannot drag custom web control from toolbox
Posted by C Townhill at 3/22/2005 2:15:46 PM
Hi, I'm in the process of developing a custom web control, which is stored on my local drive. (not mapped or on a remote server) When I add the custom control to the toolbox, I get the 'no'entry' icon, and I can't drop the control on the web form. This happens when I'm logged on to our A...more >>


DevelopmentNow Blog