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 > november 2004 > threads for november 1 - 7, 2004

Filter by week: 1 2 3 4 5

Passing variables from datagrid to codebehind... help needed!!!!
Posted by Wolffang at 11/7/2004 1:36:10 PM
I have a column in a datagrid which is OrderID. I am trying to pass its values when rows are clicked to code in my codebehind that will update my database via the database... i have tried to convert the value to a label in my aspx page, so i can read its value... maybe this is wrong... any one...more >>

asp.net, linkbutton __doPostBack in "href" element is treated like a link, not a server event
Posted by alsu50 NO[at]SPAM gmail.com at 11/7/2004 3:38:02 AM
Hi All, I was moving an asp.net application from IIS 5 to IIS 6 and ran into a weird kind of trouble. Also, the OS of the server changed to Windows Server 2003. Any LinkButton click event is treated not like an actual server event, but the __doPostBack... is being put in the address bar of th...more >>

html checkboxes in datagrid
Posted by a developer at 11/7/2004 3:19:03 AM
i have a datagrid.i add a template column having checkboxes(html ) in it instead of webserver checkboxcontrol...now i have developed sucessfully a model like hotmail, where user checks one chekbox in header and all r checked in item template . and if any one of them is unchecked then header's ...more >>

row data from repeater
Posted by Tommy at 11/6/2004 10:15:33 PM
Is it possible to access the rowdata that the repeater is binding? Possibly in the ItemDataBound event? Thanks Tommy ...more >>

Crystal Reports Viewer reprompts for parameters after several page
Posted by Karen Grube at 11/6/2004 9:53:03 PM
Hi! Sorry, but I can't seem to get any help with this on the Crystal Reports web site, so I'm hoping someone here can help. I have a Web Page which gathers parameters for a Crystal Report, stores them in the web session, and then does a redirect to a page that has on it two objects...more >>

maintain viewstate in listboxes
Posted by DC Gringo at 11/6/2004 7:49:56 PM
I have an asp.net vb page with two web user controls on it. The first user control, uc1.ascx has a series of list boxes that are populated in series by each other with ONSELECTEDINDEXCHANGED. In the second control, uc2.ascx, lower down on the page, there is an imagebutton. When the imagebutt...more >>

How to access values entered in User control in the main page.
Posted by vineetbatta at 11/6/2004 3:33:01 PM
Hi Guys, i have a user control which allows the user to enter Name& Address in text boxes. I use the same user control in the main page... Is there a simple way of accessing the Name & address entered in the text boxes of the user control in the main page(Page hosting the user control ...more >>

How to make a UserControl Invisible dynamically
Posted by Richard Chen at 11/6/2004 2:19:51 PM
Hi all, I found setting Visible property to be false does not make a user control invisible. For ASP.NET, it doesn't provide property like InvisibleAtRuntime. I tried to remove that user control when it is set to be invisible but ended up having the ControlCollection range violated... ...more >>



Imagebuttons on mozilla and MAC
Posted by Fabrizio at 11/6/2004 12:58:01 AM
Hi, I'm using a datalist with imagebuttons showing pictures, on IE for Windows everything is ok, but when i open the page with mozilla or on a mac, the images won't appear. Can anybody help me? Thank you Fabrizio ...more >>

Netscape and IE
Posted by Jim Little at 11/5/2004 7:00:44 PM
I wrote a server control that inherits (is based on) ImageButton. Oddly, the control works fine under IE, but when I try Netscape 4.7, the HTML generated for the Image Button control lacks the ImageUrl attribute, as well as other attributes. The result is that the buttons on Netscape do not sh...more >>

How to put an executable file on the site build with asp.net?
Posted by RickDee at 11/5/2004 4:00:28 PM
Hi. I have a simple exe build using C#. For simplicity sake, it is just a simple "Hello World" exe program which has a form, a button and when pressed, pop up a message say "Hello World". Everyone see that b4, right? ok. Now I create a page using ASP.NET 2.0. I would like to "host" ( is this th...more >>

Something more advance... I think.
Posted by RickDee at 11/5/2004 1:39:32 PM
Hi. I am developing an application where I need to have employee id ( example 802233 ), employee name ( for example Alphonsus Teo ) and log on username ( for example abcxxx ). Understand that when we create a project in Visual Web Developement, a whole complete set of databases will be there whi...more >>

Changing Font of button in EditCommandColumn on Datagrid
Posted by jdp at 11/5/2004 10:38:03 AM
I'd like to reduce the font size of the buttons in the EditCommandColumn of the datagrid. I haven't found an easier way to do it other than looping through the controls collection in the ItemCreated Event, changing the font size when I come across a button control. Is there an easier way??...more >>

Opening a new window from aspx page.
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/5/2004 9:53:26 AM
I have a datagrid with several rows of data. One of the columns is a button that opens an edit window. When I click the button, I need to open a new edit window for the record. That means the new window need to know the record of the row that was clicked in the datagrid. Being new to a...more >>

binding to a dropdownlist in a datalist
Posted by Dufus at 11/4/2004 8:47:48 PM
Hi, Is it possible to bind to a dropdownlist programmatically when it is inside a datalist? How? ...more >>

UserControls (Web/Win)
Posted by Ole Hanson at 11/4/2004 7:54:33 PM
Hi I have been wondering what did happen to the "universal" solution of being able to use the exact same controls in both web and win? These guys are called ActiveX controls and could in the old world (COM) be developed once and then applied in both scenarios! What is the .NET alternativ...more >>

Opening a Page in a New browser
Posted by sumaira.ahmad NO[at]SPAM gmail.com at 11/4/2004 12:29:39 PM
Hi, I would like to know if this is possible and how?? Please help.. I have an ASP.NET Web application.. In an aspx page within the application I have a hyperlink whose NavigateUrl property is set to some other aspx page such as NewPage.aspx.. When i click on that hyperlink it takes me to the...more >>

Set properties of an unknown type in a loaded control
Posted by AC at 11/4/2004 8:00:14 AM
I am loading a user control specified by the user using this.Page.LoadControl([path]). This control will have multiple public properties. If it has a public property, I need to get the name of it, and the current value of it so I can present dynamically generated textboxes and allow the th...more >>

HowTo: Dynamically Add Custom Controls?
Posted by David Freeman at 11/4/2004 12:54:41 AM
Hi There! I'm having trouble dynamically adding custom controls. My custom controls does not use code-behind but only <script /> block for programming. So as a result, I don't need to compile my custom controls to dll for them to work. But I wonder, if I don't compile to dll, can I still d...more >>

How to validate numeric string
Posted by Peter Afonin at 11/3/2004 4:25:33 PM
Hello, Should be a pretty simple question: I need to validate a string. It must be numeric and contain exactly 12 characters. I know how to do it in code, but I'd like to use a validation control. Should I use a Regular expression validator? What expression should I use? I checked http://ww...more >>

WebUIValidation.js
Posted by Haz at 11/3/2004 4:14:13 PM
I am building a web custom control and I need to make sure that the file /aspnet_client/system_web/{framework version'/WebUIValidation.js' is included in the page. Is there any way to force the page to make sure that it is included? Thanks in advance.... ...more >>

Password text problem
Posted by radhakrishnan at 11/3/2004 12:12:40 PM
Hello, I Have a webform with one textbox and submit button The TextBox is of the type Password(i.e TextBox1.TextMode=TextMode.Password) OnPageLoad of that form the following code is written TextBox1.Text="Test" After execution t...more >>

composite control child control event handling
Posted by Martin at 11/3/2004 11:01:33 AM
Hi, I have a composite control containing a dropdownlist control. I want to handle the SelectedIndexChanged event of the ddl control in my composite contol, and then raise the event SelectedIndexChanged event for the container of my composite control. What I am finding is that when I'm in...more >>

How to group CheckboxList?
Posted by Egbert at 11/3/2004 10:14:26 AM
I use a System.Web.UI.WebControls.CheckBoxList object to fill a list. I need to label groups of checkboxes in the list by Category (Determined dynamically from the database) at runtime. Is it possible to group checkboxes in 1 CheckboxList? Something like this: *************************...more >>

Adding control at run time
Posted by Andrea Moro at 11/3/2004 9:32:04 AM
I must to be honest. It's many years that I don't develop with ASP, but the basic are the same, and VB.NET programming isn't so much different from ASP.NET ... so the hardest thing is understand why something that should work ... it doesn't. For instance I'm looking for a solution that let me ...more >>

bind columns to dropdownlist
Posted by Andy Sutorius at 11/2/2004 9:44:16 PM
How do you tell the dropdownlist datatextfield and datavaluefield to be bound to specific columns using the following code? private void Page_Load(object sender, System.EventArgs e) { if (!IsPostBack) { SqlConnection conn = new SqlConnection("server=localhost;trusted_connection=yes;databa...more >>

Field validation
Posted by John at 11/2/2004 7:53:27 PM
Hi On my webform I need users to enter info in two fields in the format dd/mm/yyyy and 99-99-99 respectively. How do I achieve this? Thanks Regards ...more >>

how to set a form's "action" property
Posted by François Ligouy at 11/2/2004 6:58:01 PM
Although on page WebForm1.aspx I set the action property of the form to WebForm2.aspx, strangely enough, at runtime, when one navigates to WebForm1.aspx, its action property proves to be Webform1.aspx instead. Is this a normal ASP.NET behavior? ...more >>

Filltiring data in a dropdown2 with a value of dropdown1
Posted by aboomar10 at 11/2/2004 3:41:03 PM
i have two ddlist that will be bounded to datasources on page load, but i want the second ddlist to be filtered by the selected value in the frist ddlist with out going back to the server -- aboomar10...more >>

Editing Multiple Rows At Once in datagrid -- Please help
Posted by Reetu at 11/2/2004 3:24:54 PM
Hi all, I am referring to one of the msdn articles which explains how to edit multiple rows at once in datagrid. Query: In pageload the datagrid is displayed with data in it. In the textbox(contained in the datagrid) I change the data and click on the save button located on the web form...more >>

Database with million records and dataset
Posted by Rujuta Gandhi at 11/2/2004 12:55:19 PM
Hi all, I have one problem with my database as it is having millions of records and i dont want indexing. I m using dataset to fetch the records. Can any one tell me When all millions will be loaded in dataset will it cause any problem on server side. After loading in dataset i m loading it i...more >>

CreateChildControls before LoadViewState = Bug for DataGrid and Repeater
Posted by Ferret at 11/2/2004 12:54:37 PM
I've found what seems to be a nasty bug in the DataGrid and Repeater classes. If CreateChildControls gets called before LoadViewState, ViewState fails to map and you end up with nothing on a Postback. Please try the following test, and let me know if you can reproduce this: - Create a custom...more >>

help on field length validation using RangeValidator
Posted by François Ligouy at 11/2/2004 12:48:54 PM
On page 17 of module 7 ("Validating user input") of the document called "Developping Microsoft ASP.NET web applications using Visual Studio.NET" which is given to students who attend official training sessions on the subject, I've read subsequent characteristics concerning the Range Validator ...more >>

DIV tag
Posted by seep at 11/2/2004 11:52:39 AM
Hi, How to I write a value to a DIV tag at runtime?...more >>

Can someone reccomend a Spell Checker?
Posted by Scott Townsend at 11/2/2004 10:10:21 AM
I'm looking for a Spell Checker for my ASP.Net Applications... Any Recommendations?? Scott<- ...more >>

How to change DataList height
Posted by Angel at 11/2/2004 10:04:35 AM
How can I change the number of items that are seen without scrolling in DataList. I tried with changing DataList.Height but it does not seems to work. Thanks Angel ...more >>

populate page 2.aspx labels with values from page1
Posted by seep at 11/2/2004 7:38:33 AM
Hi, How do I populate page2.aspx labelname.text value by passing values from page1.aspx? ...more >>

inserting html dropdownlist 's text into blank table on server sid
Posted by deepak kumar at 11/2/2004 12:28:01 AM
i have populated html dropdownlst at cleint side using javascript (by putting run as server control property =true)..........now i want to insert the selected text(which user select at cleint side) into a blacnk table in sql server 2000databases.. e.g if he select 3 then 3 shpuld be inserted b...more >>

Persisting an object
Posted by Stuart Hemming (via DFN-CIS NetNews Service) at 11/1/2004 5:04:04 PM
I'm having (very) limited success with this. I've posted the code that I'm playing with ATM at http://www.cix.co.uk/~shemminga/code.htm. If I run this my collection (Sheets) is properly persisted through a postback cycle as are it's children. The thing is I can only get it to work by serializi...more >>

How do I show a countdown on character length in a TextBox?
Posted by richard.gadsden NO[at]SPAM cobbetts.co.uk at 11/1/2004 4:06:00 PM
I've got a text box called txtMessage and a label called lblSize. I've set txtMessage.MaxLength to 160 (yes, this is an SMS application) and I want lblSize to show a countdown as the user types so they know how much space they have left. I've put a TextChanged event on txtMessage with: ...more >>

Please Help me- Returning DataSet from a Web Service
Posted by sumaira.ahmad NO[at]SPAM gmail.com at 11/1/2004 1:26:56 PM
Hi All My Web Service is returning a DataSet. I realized that we cannot return a DataReader.. Normally we can use a DataReader( when not using Web services) and access it as below to assign values of columns of returned rows to Labels in the client aplication such as: while (dtrJobDetails....more >>

dynamic server control
Posted by angus at 11/1/2004 11:34:45 AM
Hi All, i have an aspx form for the user to input, and those data will be stored into the database. I would like to build up the form dynamically by using the data in the a database table, named question for example, i have a question table and the data in the question table is as follow...more >>

txtBox.SelectAll() equivalent
Posted by Ken at 11/1/2004 10:44:05 AM
Hi I have a client VB App and I'm usign this useful function to select the text on the Textbox txtNum.SelectAll() I Also have a Web C# App and I want to use a similar function , but I can't find anything in C#, should I think about JScript? Any Sug Ken...more >>

Weird Bug with Redirects
Posted by nospam NO[at]SPAM onesplace.com at 11/1/2004 9:21:25 AM
I have a very simple page. On load, it populates a drop down list. Once something is selected and a continue button is pressed, the data value of the selection is appended to a url as a query string and then the user is redirected to the new URL. Here is my problem.. Suspect code Private Sub ...more >>


DevelopmentNow Blog