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 > may 2004

Filter by week: 1 2 3 4 5

Urgent Q: 'correct' coding of a Webcontrol Designer driving me nuts...
Posted by Sky at 5/31/2004 8:05:22 PM
Hello: Have a problem that has been driving me nuts for a week. Should have reached out for help sooner ;-) If I edit the Text Property of an ASP:LABEL it immediately updates the IDE's view. But when I make a control, and a designer for it, give it a Text Property...it doesn't. The only w...more >>

Set a icon to a web application
Posted by ruca at 5/31/2004 10:57:57 AM
Hi, I would like to set an different icon, than explorer icon, to my web application. When we visit a web page, usually in address bar appears IE icon before the address. What I want is to substitute that icon to another, like happens when we visit, for example, http://www.codeproject.com . H...more >>

Open a new webpage On SelectedIndexChanged (Dropdown)
Posted by Brian Reaburn at 5/31/2004 9:19:26 AM
Hi, I'm looking for some help. I would like to know how to launch a new IE browser window when I select an item from a dropdown box. I know this is possible I've seen many examples of where people have done it, but I can't find any information on how. I'm using VB as my page language. Thank...more >>

upload file in asp.net
Posted by Sam at 5/30/2004 8:52:14 PM
hi, how to upload file in asp.net ?, i prefer something like file attachment as we can see in yahoo or hotmail. tks, ...more >>

Run validator when closing windows
Posted by Chris Leffer at 5/29/2004 4:54:23 PM
I have a Requiredfieldvalidator on a page. If the user clicks my submit button the validator works, but if the user closes the window the validator does not work. How can I force the user to click my submit button before he leaves my page? Best regards, Chris Leffer *** Sent via Develope...more >>

DataGrid Style
Posted by ruca at 5/28/2004 4:59:31 PM
Hi, I have a datagrid that I want to set different styles for header and normal items. The problem is that I setup right in properties of datagrid, but nothing happens in design. I can't say why!!! Can you help me??? For example: I want that all borders of datagrid can be lightblue, but th...more >>

client-side scripting interfacing with viewstate?
Posted by TR at 5/28/2004 12:20:18 PM
Is it possible to cause a server-side control to remember data that was inserted into it via a client-side script? Assuming this: <DIV id=outerpanel runat=server> <DIV id=innerpanel runat=server> </DIV> </DIV> Now, a client-side script injects HTML into 'innerpanel' and makes 'in...more >>

Styles - general question
Posted by JezB at 5/28/2004 11:30:33 AM
What's the generally accepted approach for using Styles and Stylesheets in a web application based on .aspx files, Web Controls, User Controls, and code-behind modules (c# in my case)? Most style and stylesheet guides on the internet seem to be based on web sites (rather than applications) based ...more >>



refresh cause insert to database :(
Posted by Krzysiek at 5/27/2004 11:15:08 PM
Hello All, I have really simple form that insert data from web controls to a DB after submit is called. This works fine but after submit when u refresh the page, this insert is fireed again.. i use ispostback clause however it doesn't prevent runnig a code after refresh... e.g sub pag...more >>

Please help with treeview (IE web controls)
Posted by progzz NO[at]SPAM hotmail.com at 5/27/2004 12:06:51 PM
Hi, Please help : ++ The second node level dotted are not shown ++ We are currently experiencing a pretty strange behavior with TreeView control that comes with IE webcontrols. Actually when used on OS other than XP, everything works fine but when it is use on XP, the line that links a ...more >>

Retrieve PostBack value of dynamic control
Posted by Nick at 5/27/2004 10:51:07 AM
Hi all I am hoping that someone would respond to what I am calling a puzzle: obtain the postback value of dynamic hidden control I am posting a short version of the code, thx for your help public class AccountSummaryInfo : System.Web.UI.WebControls.WebControl, IPostBackDataHandle { #region Con...more >>

A simple question about properties
Posted by Colin Robinson at 5/26/2004 7:56:27 PM
I have an asp user control that contains amonst other things a label and a Textbox Properties for each control work as expected for each control but I want the property to update the contents of the textbox and label on the web page containing the control but i cant get past an error stating ...more >>

Reg. HorizantalAlign="justify" in datagrid boundcolumn
Posted by Lakshmi Narayanan.R at 5/26/2004 6:51:02 PM
Hi Experts HorizantalAlign="justify" in datagrid boundcolumn is not affecting the content display. But the other values "left","right" are working fine Used sample code is here <Columns><asp:BoundColumn DataField="Description" HeaderText="Description"><ItemStyle HorizontalAlign="Justify"></Ite...more >>

choosing .NET mobile control for web application's report page
Posted by Brian at 5/26/2004 6:39:27 PM
RE: choosing .NET mobile control for web application's report page I would like to create a mobile web application having a report page displaying several fields per line. An additional requirement is that it should have an editable checkBox (preferable) or modifyable HTML Link (toggling disp...more >>

Collection Designer in Composite Controls
Posted by Alexander Popov at 5/26/2004 1:07:34 PM
i have following sample Control [ParseChildren(true)] [PersistChildren(true)] public class MyControl: System.Web.UI.Control { MyCollection values_ = new MyCollection (); [PersistenceMode(PersistenceMode.InnerProperty), DesignerSerializationVisibility(Desi...more >>

Set headertext in datagrid programatically
Posted by mg at 5/26/2004 12:06:05 PM
I create a datagrid using the Web Forms Toolbo The dataadapter,dataset and databind() code runs in a button eventhandler The headertext is determined by the column names of my SQL select statement there How can I change the headertext programatically in the codebehind? ... I don't want to cha...more >>

How to Bubble an event from a dynamically created user control.
Posted by atifjalal NO[at]SPAM gmail.com at 5/26/2004 9:25:23 AM
I have a usercontrol which I add to the page the aspx page at runtime. This control is dynamically created multiple times in the page and added to a placeholder. This user control also has some events which I would like to bubble it to the page on which the control is added. So how do i initia...more >>

Create server controls containing DataGrid
Posted by J Gopinath at 5/25/2004 8:48:41 PM
Hi, How to create server control which is containing DataGrid?. And how to implement the server control in .ascx file and in runtime how to display the records from Dataset?. Regards -Gopi Disclaimer Information contained in this E-MAIL being proprietary to Scape Velocity, Inc is 'pri...more >>

Ensuring a listbox has at least one value in it
Posted by Simon at 5/25/2004 8:17:36 PM
Hi Does anyone know how I can be sure that a listbox has a value in it without doing a post back? If I attach a required field validator it will only allow the page to submit if I actually highlight one of the items in the listbox to validate. I'm really hoping that this can be done someh...more >>

How to add items in toolbar after installing a component?
Posted by popman at 5/25/2004 6:36:56 PM
Hi all, I developed an asp.net controls and I'd like to add controls in vs.net's toolbar after intalling.So any points? Thanks all. Neo ...more >>

When to unload Session obejects
Posted by jorge at 5/25/2004 5:14:00 PM
Hi all, When should I remove objects that I have put in my session. The consumer of the control does not know anything about the control. I HAVE to put this guys in the session. Also, I need to know if a Button.Click event has been fired BEFORE a TextBox.TextChanged event gets fired. Which...more >>

Passing Parameters to User Controls that are Dynamically Loaded in Placeholders
Posted by josh NO[at]SPAM rb.com.au at 5/25/2004 4:43:52 PM
Hi Guys, I have been having a big problem with trying to pass parameters into a user control when the user control is dynamically loaded into a placholder. I am developing in c#. I have get and set methods on the user control "editButton.ascx" which work fine. How do i pass parameter into...more >>

Getting a node in the "IE Web Control" TreeView to display a tooltip with mouse over
Posted by Novice at 5/25/2004 1:41:08 PM
Hi all, I've actually written a fair amount of .NET code including the creation of my own web controls - however, I'm from an expert. I'm currently trying to determine how to set the tooltip for a node in a treeview webcontrol And by tooltip I mean the text that is displayed when you roll your mo...more >>

Detect Source of postback
Posted by Philip Ashworth at 5/25/2004 9:58:52 AM
Hi, Does anybody know how to detect the source of a postback. I've debuged the sender on the page load event and although I see a long list I can't see what control actually fired the postback. Regards Philip Ashworth ...more >>

dynamic meta refresh?
Posted by Matt Swift at 5/25/2004 8:52:09 AM
Does anyone know if a meta tag using refresh can be made into a dynamic control, given a 'runat' and 'id' ? -- Matt Swift ------------------------ Developer , S-Cool Ltd +447966670029 matt.swift@s-cool.co.uk matthewswift@hotmail.com ...more >>

Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl.
Posted by jorge at 5/25/2004 2:45:25 AM
Hello I have the following situation: (everything is dynamic (controls.add)) 1. Button.Init { WasButtonClickFired = true } 2. TextBox.TextChanged { WasButtonClickFired? } 3. ImageButton.Click { } I need a way to get the TextChanged event not to fire or at least to know ...more >>

Failed to load viewstate
Posted by Adam222 at 5/25/2004 12:51:04 AM
hey there all.. I have a page with a DataList in it on the DataList_ItemDataBound functio I add a few LiteralControl lit = new LiteralControl(html) the HTML contains only "<img src='photo/111.jpg'> the loading is fine but when I try to PostBack the page to the Server, I get this error "Fai...more >>

<table border="0">. Why?
Posted by Omid at 5/24/2004 8:48:10 PM
Hi all, I have a control derived from WebControls.Table, but the output result always is "<table border="0">". How can I change the border of my derived control? Thanks ...more >>

How To Write the external Iterator?
Posted by apex at 5/24/2004 4:24:49 PM
Hi all: I want to write an iterator class for GHashTable which belongs to GNU glib[ c library ] .Access function of GHashTable now only support internal iterator and define struct _GHashNode { gpointer key; gpointer value; GHashNode *next; }; and struct _GHashTable { gi...more >>

Add hyperlinks dynamically - newbie question
Posted by JezB at 5/24/2004 2:50:50 PM
I have a loop in which I'm adding hyperlinks to a page dynamically :- foreach (string x in ...) { HyperLink h = new HyperLink(); h.Text = x; h.NavigateUrl = x+".aspx"; this.Controls.Add(h); } This works fine but the controls are added one after each other in one long lin...more >>

CustomValidator, arguments.isvalid
Posted by rbscheer NO[at]SPAM my-deja.com at 5/24/2004 12:11:28 PM
Hi. When creating a custom validator, are the lines of code "arguments.IsValid = false" and "return false" different things on the client code? Or is "arguments.Isvalid = false" equivalent to "return false"? Thanks, Robert Scheer...more >>

Insert a blank row in excel
Posted by Andy at 5/24/2004 8:26:07 AM
I am inserting data in an excel spreadsheet using .net and need to insert a blank row. Can somebody please help me with the code to do so?...more >>

Do you make pages that have different 'modes' ?
Posted by Matt Swift at 5/24/2004 7:19:01 AM
I would like to know, how many people when designing asp.net apps, break down pages into components (user controls) and use them repeatedly in different panels etc. We tend to make parts of a page visible/invisible using a property or method in the codebehind and then make one page seem lik...more >>

Suggestions for hierarchical display of data
Posted by Rodrigo S. Novelli at 5/23/2004 10:01:36 PM
Hi, I am working in a project which I need to display hierarchical data. In a nutshel, I have a task list and each task may have sub tasks, which may have sub tasks, and so on. The DataGrid doesn't provide support for hierarchical data, so I am looking for solutions. I have tried the DataGri...more >>

LinkButton behaviour
Posted by Erik Cruz at 5/23/2004 1:29:28 PM
Hi. By an accident, I found a strange behaviour from Linkbuttons I could not understand. I put a Linkbutton inside a Repeater. For this Linkbutton I created an onClick event, this way: <asp:linkbutton id="lnkUpdate" onClick="RunUpdate"></asp:linkbutton> The RunUpdate routine is in my code...more >>

Showing HTML content
Posted by ganesh at 5/21/2004 12:36:15 PM
Hi, I want to show HTML content with some images. Can any body suggest me some control. I tried with HTML Text area, but couldn't do it. Please help me. Thanks in advance Regards. Ganesh ...more >>

Appending data to an excel cell using .NET
Posted by Andy at 5/21/2004 12:36:02 PM
I am creating an excel spreadsheet using .NET and I need to append some data to a cell. Using range("A1").value = "HELLO" will overwrite what is in the cell. Is there a way to append information Thanks...more >>

How to set the input focus?
Posted by Caspy at 5/21/2004 8:59:44 AM
How to set the input focus to a specific textBox in a form when browser a web page? thanks, --Caspy ...more >>

howto: Chg textbox visible on dropdown selection?
Posted by pjstreiff NO[at]SPAM yahoo.com at 5/21/2004 8:53:30 AM
I am trying to get a webform textbox control to show|hide based on a dropdownlist selection. The dropdownlist displays AccountType. The choices are Employee or Contractor. If the user selects Contractor then they also need to furnish their "Contract Number". Therefore, the txtContractNum textbox...more >>

Style attributes vs ServerControl properties
Posted by lance NO[at]SPAM parsecorp.com at 5/21/2004 8:19:55 AM
I am wondering why there is some overlap in the way some visual properties of server controls can be set. For example btn.Style("color") = "white" has the same effect as btn.Forecolor = Color.White. Is it simply because Microsoft decided to implement all of the style attributes for the server co...more >>

Insert Row in Excel
Posted by Andy at 5/21/2004 7:11:02 AM
I have a function that is populating an existing Excel spreadsheet with data, and as I go through the function I need to add a row. Can somebody help me out with code to insert a new row? I basically need to add a row, populate the row with data, and then move on to the next record in the dataset ...more >>

HTMLTable
Posted by Vikram at 5/21/2004 4:56:05 AM
have a .aspx page with a server side table...i am adding rows to this table on submit of some button...something like this Sub AddRow(Sender As Object, E As EventArgs) .. .. .. MyTable.Rows.Add(r) End Sub however between calls to this function, I am not able to maintain the state...my tab...more >>

RequiredFieldValidator: No message display.
Posted by norm NO[at]SPAM jenweb.net at 5/21/2004 2:26:36 AM
I have a RequiredFieldValidator that appears to validate correctly, but won't display it's associated message. Here's the relevent part of the .aspx code: -------------------------------------------------------- <form id="frmCreateAccount" runat="server"> <table> . . . ...more >>

Why are my HTML element ID's getting renamed?
Posted by DeepDiver at 5/20/2004 11:00:41 PM
If I add a DropDownList Web Control to my Web Form and set id="DropDownList1", then when I build and execute the page, the ID gets changed to id="_ctl1_DropDownList1". This breaks my CSS which is tied to the tag ID. Why does ASP.Net do this? The ID is required to be unique, so I see no advantage...more >>

Template columns in Datagrid
Posted by tjk at 5/20/2004 9:51:02 PM
I'm trying to use template columns in a datagrid for controls like checkbox, textbox and drop-down lists. The data I'll load into the datagrid comes from other parts of the ASP form. I load the data into a datatable and bind that to the datagrid using a dataview. In the code below, I expect to ...more >>

DataList Edit Item Scroll Position
Posted by Jason at 5/20/2004 3:32:12 PM
Hello All, I am having a little trouble with the position of my browser scrollbar when I edit an Item in a DataList. My dataList contains 50+ records, and when I click to edit one of the bottom records, my scrollbar is returned to the top on postback. I have managed to solve this issue using a...more >>

ms_positioning="GridLayout"
Posted by nova_jsh01 at 5/20/2004 1:27:31 PM
Anybody know what IDE editor option setting would prevent absolute positioning on the webform layout when inserting new User Controls? thx ...more >>

Prevent RadioButton Item word wrap
Posted by Eric at 5/20/2004 9:01:19 AM
How do I prevent word wrap of the items contained within a RadioButtonList? Thanks ...more >>

RequiredFieldValidator and Page.Response.Redirect
Posted by RobertTackett at 5/20/2004 5:01:04 AM
I have created a web page that has a textbox with a RequiredFieldValidator assigned to it, one button for posting the form and adding the value to a database and another button for redirecting the user to another page. The redirect button won't work unless I enter a value in the textbox or remove t...more >>

CustomControl.Page is undefined ?!?!?!
Posted by Robert Koritnik at 5/19/2004 7:31:51 PM
I ran into a strange problem. I created my own server control that inherits Control and INamingContainer. I override CreateChildControls() method. Within this method i try to register some client script block with methods, that the control container (the Page) provides (RegisterClientScriptBloc...more >>


DevelopmentNow Blog