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 > march 2004 > threads for march 15 - 21, 2004

Filter by week: 1 2 3 4 5

Treeview Help
Posted by james3782004 NO[at]SPAM yahoo.com at 3/21/2004 9:50:47 PM
Hi I am using Treeview control from Microsoft. If treeview contents running more than one page, the printing and print preview shows only the contents of the first page. If I change the client target property to down level, I can get the print and preview perfectly. But every click on + ...more >>


DataGrid Scroll Behavior
Posted by paul reed at 3/21/2004 9:09:12 AM
Hello, How do I make my data grid "stay put". I have a read-only data grid where I return back a DataTable that may be sourced from a different physical result set at each invocation...thus I don't know what the columns are going to be. However, since the grid will show the column names that i...more >>

Datalist remove span and br tags
Posted by Arjen at 3/20/2004 12:20:06 PM
Hello, I want to create a list with ul and li tags and I want to use the selected item template. I can do this with the datalist but this also generates span and br tags. How can I remove these tags or how can I get my result? Thanks! ...more >>

Help http post
Posted by Sivla at 3/20/2004 11:16:25 AM
How can I perform the equivalent in asp.net I just want to post to this site then read the response. Dim oXML = CreateObject("Microsoft.XMLHTTP") oXML.Open("POST", "http://stg1.experian.com/lookupServlet1?lookupServiceName=AccessPoint&looku pServiceVersion=1.0&serviceName=NetConne...more >>

Datagrid and only one row to display....?
Posted by P Dietz at 3/20/2004 3:16:06 AM
Hello NG when i use datagrid for displaying data, it looks terrible when only 1 or two rows are returned from db - the header grows I've tried something with using the header-rowheigth(?), but this seems to have no effect Where is the correct way to make it nice looking? Thanks Peter...more >>

Post aspx page to another frame.
Posted by slam at 3/19/2004 11:07:54 PM
I have an aspx page with 2 frames - the left is the navigation frame with the TreeView Web Control, and the right is the content frame. What I want to do is when the user select/click on the treeview node, I would like to update the content frame with appropriate aspx page in the treeview...more >>

progress bar while file uploading
Posted by MrBug at 3/19/2004 8:26:57 PM
Hi I have seen few components which show progress bar while file uploading to web server . Just want to know what is the logic behind this is. Mr.Bug ...more >>

How to capture button click on Page_load
Posted by Roberto Lopez at 3/19/2004 2:56:39 PM
Hi, I am new to ASP.NET. What I am trying to do is a menu made up of link buttons so that on the page_load event I can dynamically create certain controls. I create the link buttons dynamically and assign the onClick handler, however I noticed that the Page_Load event is processed first so I...more >>



Checkboxlist and Prerender
Posted by JSherman at 3/19/2004 1:51:06 PM
Does anyone know anything about possible "bug" with the PreRender event for the checkboxlist In the simplest of tests, I can not get this event to fire. ex private void cblWeekDays_PreRender(object sender, System.EventArgs e cblWeekDays.Attributes.Add("onclick","Alert('Blah');") Thanks ...more >>

TextChanged Event
Posted by Karen A Hodge at 3/19/2004 1:38:03 PM
I have a form with several textboxes with autopostback = true. When data is entered in the textboxes from the form, the textchanged event fires as expected. When the form loads, I execute a stored procedure which gives me initial values for the textboxes. I programmatically set the text proper...more >>

Dynamic Controls and ViewState
Posted by josh at 3/19/2004 12:11:09 PM
Anybody ever dynamically add controls to an aspx page, save it to th StateBag and load the dynamically created objects from the statebag o postback I dynamically create and add controls to a placeholder, add it to th ViewState. On postback, I'm trying to set the placeholder from viewstat back...more >>

DataGrid Master/Details
Posted by ruca at 3/19/2004 12:09:20 PM
I have two DataGrids, one Master and other Details. I let user choose the number of records that want to see by datagrid page (in Master). I have Details grid below of Master. My problem is that when I (or user) choose big number (or all) records to see in Master, this overlaps Details. Ho...more >>

DropDown List Events
Posted by klj_mcsd NO[at]SPAM hotmail.com at 3/19/2004 11:02:18 AM
I added a drop down list to an ASP table in my code behind. Now my selected index change event is not firing. I tried to put autoback = true but still no event fired. I have the drop down list declared Dim withevents ddl as dropdownlist. But still it will not fire the event. It has the handles k...more >>

Extend the CheckBoxControl
Posted by bredal Jensen at 3/19/2004 10:10:12 AM
Hello everyone, I need to build a check box list so it can have tree like branches that are also check box. The labels of the boxed will be pooled from an sql server . This means that i need to extend the ChecknoxList so it can have this functionality. Can anyone help me get started? ...more >>

change DataGrid columns' order
Posted by Imran at 3/18/2004 11:36:06 PM
How can I change the order of the DataGrid columns at run time on my web form. I am defining the Datagrid columns at design time in DataGrid Property builder. I can build it dynamically with my own order but that way, I am unable to sort the data if columns are build dynamically Thanks...more >>

IEWebControl
Posted by kaushik at 3/18/2004 9:10:14 PM
hi Do you have any idea how to use tabstrip control in .net framework 1.1.Microsoft doesnot support in 1.1 framework. regards kaushik...more >>

Cell Space problem in Datagrid
Posted by Chan at 3/18/2004 5:01:06 PM
I have problem with datagrid cell space I set the page size to 20 The height of the grid is 408px The problem goes like this If there are 20 rows to display then the datagrid looks just fine But If datagrid contains less columns say 3 Then each row takes 1/3 of the datagrid size around 100p...more >>

How does a user control get a reference to an instance of parent page?
Posted by Brent at 3/18/2004 4:31:24 PM
Sorry for the double post. I just realized i should've put this here. This is one of those issues where I'm wondering if i'm going about this the right way... In a user control, I need a reference to an instance of the parent page's class. How do you get it? -------- Why do i need it? ...more >>

how do I allow literal control in a webcontrol c#?
Posted by Nigil LaVey at 3/18/2004 3:23:14 PM
hi guys.. I am getting this error Literal content ('<cc1:Session Name="') is not allowed within a 'cc1:SessionCollection'. is there any workaround? <cc1:loginctrl id="Ctrl4" runat="server"> <cc1:Session Name="<%=Request.Form["User"]%>"></cc1:Session> </cc1:loginctrl> Pls advise, LaVey...more >>

OnCheckChanged does not work in DataGrid ! Why?
Posted by KingBEE at 3/18/2004 12:28:44 AM
I insert checkbox into datagrid's template. I add onCheckChanged=updateStatus as attribute. For example: <ItemTemplate> <asp:CheckBox id="match" runat="server" onCheckedChanged="updateStatus"></asp:CheckBox> </ItemTemplate> Does anyone can help to solve this problem? thank you ! ...more >>

Open menu Link
Posted by ruca at 3/17/2004 11:01:03 PM
Language: ASP.NET with VB.NET How can I open a little window with a menu when I pass over with mouse on a link? I have links and when I pass over I want to open only the choices that belongs. I think that I have to use JavaScript and it's not my strongest... I have this, but opens a bi...more >>

How do I determine DesignMode for webcontrol in visual studio.net 2003 ? is there a method for this?
Posted by Nigil LaVey at 3/17/2004 7:10:26 PM
hi all, how do I determine webcontrol DesignMode, is there a method for this? pls advise, Nigil Chua ...more >>

CreateChildControls(...) or Render(...)?
Posted by nobody at 3/17/2004 5:07:07 PM
Should I create controls for a composite WebControl in the CreateChildControl or the Render method? It seems like CreateChildControl is not called at design time when the control is on a page being designed. Here's my situation. I'm making a composite WebControl that has a label and a RadioB...more >>

Custom Control Design Time Issue
Posted by bryce NO[at]SPAM icinium.com at 3/17/2004 3:55:29 PM
Hi, I have written a custom address control and placed it within an asp.net page. This control uses a Template (ITemplate) to bring in custom content. The issue I'm running into is displaying the control during designtime. If the template contains a full table (with table tags) it displays fi...more >>

HELP - dynamically create events and getting the value
Posted by mrwoopey NO[at]SPAM yahoo.com at 3/17/2004 3:49:22 PM
Hi, I am dynamically creating controls on my asp.net page and dynamically create an event but don't know how to access which button was pressed (with the ID - see objDelete_Click): '---------------------------------------- Private CreateControls() Dim objDelete As LinkButton Dim i as in...more >>

DateTimePicker control
Posted by simon at 3/17/2004 1:10:03 PM
Does anywhere exists exactly the same DateTimePicker control like that one in windows forms? I found just a lot of similar controls, but not the same one. Thank you, Simon ...more >>

Checkbox in Repeaters
Posted by Beginner at 3/17/2004 11:59:46 AM
I have the following aspx and code behind to put a checkbox in repeater. There are several problems: - CheckBox2_CheckedChanged works well. But I want to know who is being checked, i.e. how can I pass userid back as an argument? (I can get checkbox client ID or checkbox text, but they do not ...more >>

Dynamic Controls and Event firing order
Posted by spam NO[at]SPAM inferis.org at 3/17/2004 6:54:12 AM
I've got a small problem regarding dynamic user controls and handling their events. On my page, the user can create a list of items to fill in: at first, there's only one item but the user can add more to his liking. It is also possible to remove existing items. I coded this using an array ...more >>

How to display an image on web datagrid header?
Posted by FD at 3/17/2004 6:41:05 AM
The web datagrid control header has only a property "HeaderText" for setting the column name, is there a way to put an image on a header field Thanks FD...more >>

Create WebControl Dynamically
Posted by Chris at 3/17/2004 1:14:57 AM
Dear All: What's wrong with these code? (I've drag a panel on WebForm) Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim loAssembly As System.Reflection.Assembly = _ System.Reflection.Assembly.LoadFrom ("C:\WINN...more >>

WebControl as design time
Posted by nobody at 3/17/2004 12:42:42 AM
Is it possible to make a custom WebControl reder itself at design time? I've made a WebControl that contains a Label and a RadioButtonList. It works fine at run time, but at design time it just draws a solid while box. Neither the Label nor the RadioButtonList render themself. Am I doing someth...more >>

Button in .aspx form in Visual Basic .net
Posted by anoop at 3/16/2004 9:06:07 PM
Hi I have placed a table in .Aspx form of the visual basic .net Web application. now what should I do so that at design time any component such as button from "Web forms" toolbox can be placed at the convenient location inside the table by dragging it. I have tried with the button from "web for...more >>

How to show different layout in a Repeater?
Posted by Quentin Huo at 3/16/2004 6:36:28 PM
Hi, I used a Repeater to render a list, like the following: <asp:Repeater ...> <ItemTemplate> <%# ((IDataRecord)Container.DataItem)["authorName"]%> <%# ((IDataRecord)Container.DataItem)["publisher"]%> </ItemTemplate> </asp:Repeater> But if an item in the list...more >>

Add confirmation to a LinkButton
Posted by Brett Robichaud at 3/16/2004 5:03:38 PM
I have a LinkButton that performs a permananet operation, so I want to get confirmation when the user clicks it. How do I add a client side confirmation? I want to run this javascript: return confirm('Are you sure you want to delete all?'); But I can't figure out the syntax to make it wor...more >>

Target Frames
Posted by ruca at 3/16/2004 5:00:35 PM
Do I have anyway to choose my page targets in frames? Example I have a page that have 3 frames frame 1 - header (contains only an image and stay static) frame 2 - contents (contains a menu and change by menu) frame 3 - main (show the result "command" of click in contents frame) What I ...more >>

change button.text given button ID as string
Posted by chris NO[at]SPAM ctlsoft.com at 3/16/2004 4:43:47 PM
Hi ,I need to change a button text given the ID as a string. eg: strButton ID as String = "Button1" strButton.Text = "change" Clearly this won't work, someone mentioned I may need the Eval() function ? Anyone know how to do this ? Thanks...more >>

Perplexing and critical error - please help!
Posted by Jim at 3/16/2004 4:02:27 PM
Hi, We are having a big problem with one of our clients and are hoping that somebody out there might have some suggestions. We have developed an ASP.NET (C#) 2002 site with a SQL2K backend which our client uses to enter conference information. The site uses Forms authentication w/ anonymous ...more >>

Single Record in multiple rows in datagrid
Posted by Chris at 3/16/2004 3:54:28 PM
I have a datagrid in which I would like to add another column. I want this column to span all the columns in the datagrid, but on a second row. I would also like to be able to click a button in the first row of this single record which would show this new column, almost like an expand/collapse ...more >>

Use DataGrid To Add New Records
Posted by PatLaf at 3/16/2004 12:16:14 PM
Hello to all, I've seen examples of how to do this and none of them apply to my situation. I have a datagrid that remains hidden until the user selects the add new button. I then hide all the controls on the page, make the datagrid visible and here is where I'm stuck. What I want to do is make the d...more >>

client script in user control
Posted by nonospam NO[at]SPAM wowway.com at 3/16/2004 10:25:27 AM
I have web pages with common header. So I considering make it a web user control. But I have the following problems: The original pages have javascripts so it switch images when mouse is over it. like this: <html> <head> <script LANGUAGE="JavaScript"> <!-- f...more >>

Checkboxes on a datagrid
Posted by Keri at 3/16/2004 10:06:05 AM
I have a datagrid with 3 checkbox columns and a few other text columns. What I'm trying to figure out is, (for instance) when the third checkbox in the first column is checked, how do I uncheck the second and third checkboxes in the same row? I'm attempting to write some javascript in the OnCheckCha...more >>

How to Iterate through WebControls And Build Dynamic Query
Posted by Mona Syed at 3/16/2004 7:11:23 AM
Hello, I have a Web Form with Labels, Textboxes etc. where the user enters information to specify which fields to include in a sql search query. The questions I have are: Q1. How do I iterate through all the controls on my form (Textboxes only) to pick out the search arguments the user pr...more >>

hoiw to disable enter key in textbox ?
Posted by pc at 3/15/2004 10:28:17 PM
I try create two textbox and one button on web form enter the text in textbox and press the enter key. The form has been submit. How to disable the entry to submit the form. Thank ! ...more >>

WebControl TagPrefix?
Posted by Nigil LaVey at 3/15/2004 9:29:46 PM
greetings all, I am trying to get the WebControl OuterHTML TagName before rendering the control from Render Method.. what I really need is the TagPrefix value "mycontrol" ... have tried reflection on this.. but no luck.. all thoughts welcome. <mycontrol:myclassid="LoginCtrl1" runat="server"...more >>

How to expose collections on a usercontrol
Posted by j_a5 at 3/15/2004 11:29:06 AM
Hi, I have a custom user control. In that custom control MyControl. I am exposing a property called MyItems. The MyItems is a strongly typed collection of MyItem. I am exposing a MyItems in the user control as a public property. I want to be able to add items to the MyItems collection at design...more >>

TreeView control doesn't maintain state
Posted by e_hyper NO[at]SPAM hotmail.com at 3/15/2004 7:34:16 AM
Hi All, I'm using Microsoft's TreeView WebControl, and have a problem when using it with check-boxes (on each TreeNode I added a checkbox). After postback, the TreeView maintains its graphical state (i.e, the branches that were expanded before the postback, remain expanded after the postback), ...more >>


DevelopmentNow Blog