Groups | Blog | Home


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 > august 2003

Filter by week: 1 2 3 4 5

Handling the return key in a textbox
Posted by Nigel Findlater at 8/31/2003 11:43:29 PM
Hallo Everyone, I have an ASPX page with a textbox. If a user enters return I would like the form to be posted or a specific button to be activated. Any ideas? I was thinking about using the autopostback function but this would mean every keystroke in this textbox would cause a rou...more >>

Error trying to set focus
Posted by paul at 8/31/2003 5:36:56 PM
Hi, I'm trying to use Page_Load to set focus to a textbox1 and I get the following error: "Object Doesn't Support This Property or Method". Here is my VB code behind: Dim scriptString As New System.Text.StringBuilder() scriptString.Append("<script Language='javascript'>") scriptString.A...more >>

HTML ListBox and a .aspx page...
Posted by spai NO[at]SPAM immunetolerance.org at 8/30/2003 11:40:37 AM
Hello there, In a .aspx page I have a HTML Select Control... a listbox and a aspx server control a button. using javascript I add items into it the list box as follows: var myNewOption = new Option("test1","test1"); document.Form1.Select2.options[0] = myNewOption; var myNewOption = ne...more >>

Usercontrol In A Webform
Posted by Scott at 8/29/2003 2:28:39 PM
Ok....I'm really stumped on this one. I've got a webform with a usercontrol set in it. The usercontrol handles login and nav. things. In the UC(usercontrol) i have 3 textboxs and a label. The webform has some linkbuttons on it that I want to be able to "interact" with the label in the u...more >>

ASP.Net and client side control (SelectedIndexChanged)
Posted by geordie.teicher NO[at]SPAM abboptical.com at 8/29/2003 8:35:43 AM
I was wondering what capabilities ASP.Net has at the client level. I have been using a RadioButtonList. My control and additional textboxes look like this: o See item number [ ] o See items from Date [ ] to date [ ] I have the method defined for SelectedIndexChanged...more >>

passing a string array to another page?
Posted by agb at 8/28/2003 12:06:03 PM
How can I send a string array to another aspx page? ...more >>

Installing Internet Explorer WebControls
Posted by samuel at 8/28/2003 11:22:49 AM
I need to setup the "WebControls" on a server with the .NET Framework 1.1 For any reason, when I run the iewebcontrols.msi I get installed another version that's not compatible with the .NET 1.1 This is what I get when I go the the CMD prompt and execute: ------------------------------...more >>

maintaining scroll position of a scrollable panel control during postbacks
Posted by prasad srirambhatla at 8/28/2003 5:43:41 AM
Hi forum i have a panel control which is scrollable.I have few server controls on the panel.the proble i am facing is during post back i have to maintain the scroll position of that panel control. so please do suggest some soution on this for me thanking you prasad *** Sent via ...more >>



Why do I get an error when I put inline code in a web control custom atribute?
Posted by jahles at 8/27/2003 7:57:03 PM
I have a control that takes an ID (short). In the html where the control is placed, when I put the following: <td> <cc2:logocontrol id="Logocontrol1" <TiltleID="<%=_somec#variablethatisetearlier%> runat="server"> </cc2:logocontrol> </td> When I run the pa...more >>

Sending dropdownlist items?
Posted by agb at 8/27/2003 6:23:57 PM
How can I send dropdownlist items to an ascx file AND how can I get the dropdownlist items from outside of the ascx file :) thanksss... ...more >>

How to create a datagrid on the fly ?
Posted by chak at 8/27/2003 3:18:06 PM
Hi, Any examples / pointers on how to render a datagrid on the fly in a asp.net page, based on dynamic parameters ? Thanks. ...more >>

ambiguous match
Posted by Ryan Moore at 8/27/2003 11:50:11 AM
what's the reason for the Ambiguous match found error? I have created a custom control and added it to a web project, but keep getting this error.... what might my problem be? thanx ...more >>

Programmatically created web user control events
Posted by jop NO[at]SPAM consignit.se at 8/27/2003 8:53:55 AM
I'v made a web user control that I use in one of my .aspx pages. This user control is dynamically loaded a number of times depending on the content of a ArrayList(stored in the session) containing DataSets. Each DataSetscontains the necessary information required to fill the user control with da...more >>

web user control with grid having command handler
Posted by Michal Januszczyk at 8/27/2003 2:06:51 AM
Is it possible to create a control that would have a data grid embedded, that would have some button columns causing some action ? When my grid does not have a button column all works fine. But when having added it , the browser when loads the form with the embedded control displays some ...more >>

Listbox.SelectedIndex command doesn't update!
Posted by jeffdugger NO[at]SPAM hotmail.com at 8/27/2003 12:06:42 AM
I have a listbox control which is populated from a database via a handler of it's onload event. After (or before, I've tried both) I bind the dataset to the listbox, I attempt to use mylistbox.Items.FindByValue("myvalue").Selected = True to match a previously fetched database value. The co...more >>

writing two textbox's text in one textbox
Posted by agb at 8/26/2003 3:01:41 PM
Hi I want to write Textbox1.text and Textbox2.text with between spaces into textbox3.text in the HTML window I mean textbox3.text = textbox1.text " " textbox2.text My program = my + " " +program how? ...more >>

Panel Server Control...
Posted by spai NO[at]SPAM immunetolerance.org at 8/26/2003 2:22:32 PM
Hello there, I have a Panel and I have created checkboxes dynamically and added it to the panel. The code is as below: foreach (...) { My_Roles = new CheckBox(); My_Roles.ID = my_role.Name; My_Roles.Text = my_role.Name; My_Roles.AutoPostBack = true; Panel1.Controls.Add(My_Role...more >>

Custom Validators...
Posted by spai NO[at]SPAM immunetolerance.org at 8/26/2003 2:19:19 PM
I have a radio button server side control and a text box server side control and an a Custom validator control placed on a .apsx page. I have set the ControlToValidate Property of the Custom Validator Control to the textbox and set the OnServerValidate method of the Custom validator to CheckOt...more >>

Client Side Javascript
Posted by barnetj NO[at]SPAM pr.fraserpapers.com at 8/26/2003 7:22:42 AM
I just posted a question, but decided to make it clearer...sorry about the re-post. I am developing an asp.net page with 3 server side asp controls (dropdownlist, textbox, button). I would like to capture the tab from the dropdownlist to force a postback and then move focus to the textbox. ...more >>

Numbers or letters in a TextBox
Posted by PABLIN at 8/26/2003 7:06:42 AM
How I can have a TextBox that to only lets me enter letters or numbers? ...more >>

dynamic listItems - event NOT fired
Posted by preetith at 8/26/2003 12:44:51 AM
Hello, Though there are numerous posts on this issue , there are no answers at all to any of them !! My Situation is , I have a dropdownlist that gets populated on a button click event, this works fine but when I select an item on this dropdownlist , SelectedIndexChanged event does not...more >>

Render controls from ".txt" file into ASPX page
Posted by Ahmed M. El-Moghazy at 8/26/2003 12:27:09 AM
Hi, I have a text file "Controls_Page.txr" contains the following: <asp:Label id="Label1" style="Z-INDEX: 103; LEFT: 32px; POSITION: absolute; TOP: 28px" runat="server" Width="100px" Height="15px">Conn. String:</asp:Label> <asp:TextBox id="TextBox1" style="Z-INDEX: 100; LEFT: 133px; POS...more >>

htmlinput-checkbox
Posted by Anita C at 8/25/2003 2:48:55 PM
Hi, I have a htmlinput - checkbox on a webform, i want to use javascript to check if the checkbox is checked or not and depending on the checked value pop up specific alerts. What javascript code should I use to achieve the above and also which event of the htmlinput checkbox should I associate ...more >>

Creating ASP.NET Server Controls Dynamically....
Posted by spai NO[at]SPAM immunetolerance.org at 8/25/2003 9:15:51 AM
Hello there, I need to create a Check Box Dynamically, I have the following code in my page: Button my_btn = new Button() ; my_btn.Text = "hello"; this.Controls.Add(my_btn); The server gives an error Control '_ctl1' of type 'Button' must be placed inside a form tag with runat=ser...more >>

how we validate data in template column textboxes?
Posted by Hemant at 8/24/2003 6:52:18 AM
Hi Can anyone know how to validate data in textbox which is in template column? I have one textbox and one calendar control in template column. I want to add calendar control's date in textbox but It says control not found as Id's of control not matching as it is generated by ASP. net page...more >>

poor performance with treeview control
Posted by Anton Stadler at 8/23/2003 7:27:24 PM
hello folks, I impemented the treeview controll and it works correctly but it requires a lot of CPU time at the server. With aprox 50 nodes in the tree it takes about 2.5 seconds ( on a 2500MHz/512MByte machine ) to be built at the server. I tryed to databind an xml file as well as building up...more >>

Adding item/s to a dropdownlist
Posted by Anita C at 8/23/2003 3:48:06 PM
Hi, I have a dropdownlist on a webform amongst other controls. One of the items in the dropdownlist is 'New Value'. If the user selects 'New Value', I want a web form of a precise size and modal too, to help the user create a new value and when the new entry is accepted (in the modal webform) th...more >>

Htmlinputbutton
Posted by Anita C at 8/23/2003 2:09:19 PM
Hi, I have an htmlinputbutton on a webform, which i want to disable /enable using code in the code behind file. How do I access the said button in the code behind ? Thanks. ...more >>

VB -> C# event handler
Posted by Eric Levin at 8/23/2003 2:05:46 AM
How do I add a custom handler to a Web Page. In VB: Event LinkButtonClick(ByVal PageNo As Integer) In C#? Seems like I have to create an event class in order to do this. Am I right? Thanks, Eric Levin Sounddogs.com ...more >>

UI behavior
Posted by Arthur Yousif at 8/22/2003 12:37:08 PM
Hi, I have a situation and I cannot figure out why it's not working. I have a page (page1.aspx) with a LinkButton that calls another page (page2.aspx) to download a report in pdf format. In page1.aspx.cs, I trap for lnkSavePdf_Click(...) and when it's called, I then call page2.aspx by usin...more >>

RememberingTextBox
Posted by Eric B. at 8/22/2003 6:59:27 AM
Hi, I have made a RememberingTextBox. But the remembering part is a generic function that just puts all form elements in the session. Is it possible to have a component that sets it's value into the session after a form is posted? ...more >>

How To loop inside a HTML Table to find WebControls?
Posted by Andreas Klemt at 8/22/2003 2:11:19 AM
Hello, I have this: <table id="myTable" runat="server"> <tr> <td><asp:label id="lblText" runat="server"></asp:label> <asp:button id="btn1" runat="server"></asp:button> <asp:button id="btn2" runat="server"></asp:button> <asp:button id="btn3" runat="server"></asp:button> </td> </tr> </tabl...more >>

accessing control's members from aspx code.
Posted by Marko Rangel at 8/21/2003 4:23:22 PM
I am interested in accessing a property from a use defined web control from the codebehind of an aspx page. If my web control has a property, say Name, how would I reference the control in my aspx code so that I can access that instance of the control? I beleive (though I have not tried) to ...more >>

Min/Max date values for calendar control
Posted by Steve at 8/21/2003 12:21:31 PM
Hi all, Anyone have a idea what the min and max dates the calendar control can handle, we've seen nothing in the documentation. We have some instances where were setting effective dates to System.DateTime.MinValue and System.DateTime.MaxValue, were getting errors with this range and can s...more >>

Complie against different versions of .NET framework
Posted by Vijay at 8/21/2003 11:31:31 AM
Hope somebody here can give me some help here. I have a development environment with VS.NET 2003 (7.1), and Framework 1.1. My server is also running ASP.NET 1.1. I have downloaded the IEWebControls, which has the TreeView control to use in one of my pages. The TreeView control will not wor...more >>

onclick
Posted by jose at 8/21/2003 10:42:59 AM
Quisiera saber si es posible llamar un procedimiento, funcion que este definida en la clase que define la pagina desde un evento añadido dinamicamente a un objecto (ejemplo textbox). Se que el evento se dispara pues al momento de ejecutar el debuger se detiene en la definicion del evento dicien...more >>

Server.Transfer Second Parameter Set To True?
Posted by mathieu cupryk at 8/21/2003 5:53:43 AM
I have a form on step1.aspx and step2.aspx When I click the button I do a server.transfer (step2.aspx, true). If I use click the previous button I have in step2.aspx it calls a server.transfer (step1.aspx, true). I would like to see the form step1.aspx with all the values displays instea...more >>

How can i make a email mass sender with asp.net ?
Posted by Gil (Asp.net Developer) at 8/21/2003 12:59:25 AM

Looking for thumbnail function/control
Posted by Arjen at 8/20/2003 1:51:29 PM
Hello, I have some big-size images in al kind of filetypes (*.gif, *.jpg, *.png, etc. ) that I like to resize. And if posible I also like to compress these images. Do you know a good thumnail solution for me? Do you know where I can find some code/functions or controls? Thanks! ...more >>

Validators not working
Posted by Kirk Smithson at 8/20/2003 10:25:09 AM
I have developed an application on a local web server. The validation from the validators works as expected. I then place the code on the server that is will be used on and the validators in some cases stop working. I used vs.2002 to build it but have since upgraded to vs.2003. On both ser...more >>

ViewState
Posted by Jay at 8/20/2003 10:23:21 AM
How can I get client-side access to a view state variable I enter on the server using something like ViewState("MyVar") = 10. Thanks Jay ...more >>

Popup Calendar control
Posted by Paul Aspinall at 8/19/2003 11:17:17 PM
Hi I want to have a page, which the user can either: a). Enter a date, via the keyboard b). Click an icon, and have a 'popup' calendar appear from which they can select a date Is there any way of doing this, with the 'stock' controls?? I would prefer not to have postbacks when the user cli...more >>

data grid ques
Posted by netques at 8/19/2003 6:54:17 PM
Need help: I am loading the values to data grid's bound columns and Item Templates (Text boxes) Once the users changes the Data grid's textbox values, how to get the text box value. I can retrieve the bound column values but not the values which are in Item template columns To get ...more >>

Moving a DataGrid programmatically
Posted by Dylan Carney at 8/19/2003 4:56:32 PM
This might seem like a dumb question, but.... I have several DataGrid objects on an ASP.NET page, and I connot figure out how to move them around on the page programmatically. I want to move them relative to each other, based on how much/what data is displayed in them. Thanks in advance...more >>

ASP.NET Controls all on one HTML horizontal line
Posted by Alan Z. Scharf at 8/19/2003 11:39:55 AM
1. After a lot of moving controls around a page in VS.NET, all the ASP.NET HTML for the controls in on one horizontal line with no "Line wrap" for each control. 2. I tried breaking the lines with the ENTER key, but after I save and reload the page in designer, it goes back to all horizontal on...more >>

Server Error in '/' Application
Posted by Javier Cortés Cortés at 8/19/2003 10:06:37 AM
i am getting this error when i am trying to access any file(with the ext. aspx) from my remote server. the error is : Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Runtime Error Description: An application error occurred o...more >>

DataGrid Binding Problem : "Object does not match target type."
Posted by Karahan Celikel at 8/19/2003 10:00:48 AM
I have a datagrid in which I want to visualize objects of various type (they inherit from the same base class). I want to display common properties of the objects over the grid. At runtime I create an ArrayList that contains all the objects . When I make the binding I obtain the following err...more >>

Uploading Files
Posted by Michael Morse at 8/19/2003 7:33:04 AM
I have built a user control that works with a knowledge base system. This control looks in a directory related to the particular kb article and display related files. However since this control runs within the pages currently existing form tag what are the repercussions to nesting another ...more >>

Can someone comment my Custom control?
Posted by Flare at 8/18/2003 7:50:13 PM
Hi. I have now used ASP.NET for a couple of weeks and it _really_ looks good. I have made a custom control, wich has to act as my header on every site. Before i go any further with my control I would appreciate your comments on the design (wich problably is bad) Sorry for the long post... ...more >>

Virtual Paths
Posted by edx at 8/18/2003 6:29:36 PM
I have a template in the root directory of my application and I want to use it from an .aspx file inside some sub-folder of the root directory. The problem is the following command: this.Content = (Template) this.LoadControl ("/template.ascx"); I need to specify a virtual path to the .asc...more >>


DevelopmentNow Blog