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 > january 2006 > threads for january 8 - 14, 2006

Filter by week: 1 2 3 4 5

Website on a website.
Posted by Shawn at 1/14/2006 8:40:58 PM
Does anyone know a way to run a webpage on a webpage like the WebBrowser control in vb.net? ...more >>


strange question about DropDownList
Posted by Detective at 1/14/2006 7:20:02 PM
hi: when i used code below and bind with access i could get the resoult what i want, but when i use sqlserver i got an exception about System.ArgumentOutOfRangeException which argument is lev.how can i solve this problem ,thank you: /////////////////////////////////////////////////////////...more >>

Reading a public variable from a web user control
Posted by Vi at 1/14/2006 12:51:01 PM
Hi, I created a web user control that works fine to display some data. Now I want to be able to read a public int variable from the control, but I always get the value I'm innitilizing the variable with. Meaning I can't get the value that is set within the control. Here's the code I use: C...more >>

Enabling/diusabling child controls
Posted by Summit at 1/14/2006 12:00:02 PM
Hi, I have got a child control within a parent control. If i disable my child control but enable my parent control , does it cause the pchild control to stay enabled? Example:- I have got a checkboxlist web control within a table control and I have set the Enabled property to false but...more >>

Input fields are renamed with runat="server", how do I change it
Posted by jamessmb at 1/14/2006 11:48:02 AM
Hello, I have a webform which needs to post to PayPal. One of the elements is a hidden field which I am populating with a value from the URL. In order to do this, I have to use runat="server'. But when I do, ASP.NET will rename the field. The field needs to be named "custom" so PayPal will ...more >>

CreateChildControls() always returns default property values
Posted by Christophe Peillet at 1/14/2006 4:11:02 AM
I am trying to develop a composite control that renders in a specific layout, depending on the value of the custom LabelPosition property. The 'layout' of the rendered control will change depending on whether the value of LabelPosition is set to Left, Right, Top, or Bottom, as can be seen in ...more >>

Using RowCreated event in Gridview to update a template
Posted by louie at 1/14/2006 2:37:02 AM
I have created a Gridview both using an ObjectDataSource and an SQLDataSource. I amend attributes in a TemplateField, this works fine until I sort the data, by clicking on the column heading, then i get the error in the RowCreated Event Run-time exception thrown : System.NullReferenceException...more >>

button's OnClick event runs after page databinding...
Posted by Daves at 1/13/2006 9:05:15 PM
a GridView control iterates users in my database and below it there are search fields and Search button which applies filter expression to the SqlDataSource. The GridView is manually databound in the Page_Load event and I also persist this databinding since the GridView uses postback since ...more >>



detailsview,
Posted by TdarTdar at 1/13/2006 12:56:04 PM
Why would i get this error: Could not find a property named 'DBMANTransNumber' on the type specified by the DataObjectTypeName property in ObjectDataSource 'ObjectDataSource1'. Here what I am doing, I am using a dataset completly setup by the wizards under the app_code directory, I do a sim...more >>

Adding OnClick() to an asp:Table
Posted by Andrew Chalk at 1/12/2006 11:28:18 PM
I have an asp table to which I have added rows and cells. When the user clicks on one of the cells I want this to fire an event. OnClick() is not a standard event in a Table, TableRow or TableCell. How can I add support for it? Many thanks ...more >>

3-Tier Binding Problem ?????????
Posted by Dave Johnson at 1/12/2006 7:44:31 PM
In a 3-Tier application, once upon a while comes the need for binding objects or usercontrols from other objects, example binding a usercontrol in the Presentation layer from a Business Layer Object, My problem: I have a Dynamically Rendered WebUserControl that it needs some properties that...more >>

How can I close a DetailsView ?
Posted by Roberto Kohler at 1/12/2006 6:21:29 PM
I would like to add a cancel command to a DetailsView so that when the DetailsView is in ReadOnly Mode and a user clicks the Cancel button, the DetailsView closes. The DetailsView is linked to a GridView through an SQLDataSource that calls a stored procedure using as parameters the Selected...more >>

Where is the onclick event?
Posted by Daves at 1/12/2006 3:28:50 PM
where in the page cycle does a button's onclick event take place? How can I, in general, find out where control's events are situated in comparison with the standard init,load,databound... events in Page? ...more >>

Accessing Datagrid Cells on OnClick Postback
Posted by John Walker at 1/12/2006 1:22:02 PM
Hi, I have a datagrid which has a link button template column. In the 'on click' event of this link button - which does a postback - I need to reference the value of another control on the same row on which the link button was clicked. Is there an easy way to do that? Thanks, John...more >>

Problem Retrieving Values from CheckboxList nested inside Datalist Control
Posted by Mike at 1/12/2006 10:15:27 AM
I have a Datalist control on my page that I have binded to a table of available categories. In the Item Template I have a CheckboxList control bound to the products available in each Category. I need to pull out of the page which products the user has selected. I have bound the products t...more >>

DataGrid dynamic columns / firing events
Posted by Abelardo Vacca at 1/12/2006 6:42:01 AM
Hello, I have a DataGrid with columns build dynamically, the grid supports sorting. I create the columns OnInit so the sort event will fire when the headers are clicked. All this works fine. Now, one requirement is for the user to have the option of selecting predefined layouts for the...more >>

looking for a special kind of table control
Posted by Stephan Steiner at 1/11/2006 5:42:52 PM
Hi I'm wondering what you'd suggest on how to implement the following scenario: A table based date entry/editing having 5 columns. One is an SQL bound dropdown, another one a simple text item dropdown, the third one a numerical entry box with a limited number range, the 4th is a read only ...more >>

Listbox without vertical scrollbar?
Posted by SJ at 1/11/2006 5:00:34 PM
Is it possible to have a Listbox with no scrollbar? I have 3 items in my listbox, and I have the Rows property set to 3. It still shows me the scrollbar. Any way to get rid of the vertical scrollbar? Thanks. -SJ ...more >>

Menu Control
Posted by Jay at 1/11/2006 3:27:51 PM
I have been experimenting with the new Menu control. When you define sub menu items an arrow automatically appears to the right to indicate that there are sub menu items. The problem is what when you define a horizontal menu and you increase the width of your menu bar so that the top level m...more >>

ObjectDataSource
Posted by doug at 1/11/2006 3:23:58 PM
Hello, I wish to use declarative datasources as much as possible. Using an ObjectDataSource makes sense in a few situations. I see that the TypeName is used to instantiate an object and methods are called, and parameter can be identified, and feed to the method. My question is, if i hav...more >>

How can I prevent a GridView from opening when the page is firstentered ?
Posted by Roberto Kohler at 1/11/2006 3:01:50 PM
How can I prevent a GridView/SQLDataSource from opening when the page is firstentered ? I want to wait until the user clicks a button to open the sqlSataSource and the grid. I want to do something like: If Page.IsPostBack Then ' Open the sqlSataSource and the grid: ' - set th...more >>

Refreash DesignTime control.
Posted by Mike at 1/11/2006 11:01:04 AM
Hi. I want to refresh the design time control html when a property is changed. I've used NotifyParent(true) attribute but doesn't work. My control inherit from System.Web.UI.Control. How can i refresh DesignTime Control html? Thanks! :) ...more >>

Question on Submit all fields on a tabstrip that is using multipage
Posted by Keith McDonald at 1/11/2006 7:54:23 AM
I have a apsx page that contains three tabs. Each tab has several standard html fields for user input. On submission of the form, the fields are not being submitted.(Fields not on the tabstrip are submitted OK. Request.form("xxx") is blank for all of the fields on the tabstrip. Any ideas? ...more >>

Paging and Filtering in Gridview (.NET 2.0)
Posted by Bill Manring at 1/11/2006 7:31:05 AM
I am writing a very simple web application using VS 2005 and a SQL Server Database. I am just starting to experiment wth .NET 2.0 and I am trying out the supposedly improved databinding. I dragged a table from a datasource on to my web form and the GridView cpntrol was created. I turned on...more >>

XML Editor
Posted by Cosmin Spirescu at 1/10/2006 11:44:02 PM
Hi I have some XML files (created automatically from text files) and I need an XML in-browser editor to correct this files. This editor must do at least the following thinks: - it must be a plug-in or “something” to use in internet explorer ;) - show the XML files with tags (to be easil...more >>

Dynamically Add FilterExpression and FilterParameters
Posted by Mariela Donkova at 1/10/2006 3:27:08 PM
Hi everyone , How to add dynamically from code FilterExpression and FilterParameters. I have 5 dropdownlists and if some of them or all are enabled a would like to filter The ObjectDataSource. by SelectedValues of enabled ones. If all dropdownlists are disabled Filter is Ignored ...more >>

The mystery of passing form values
Posted by Joseph Bergevin at 1/10/2006 2:20:03 PM
I have a login form on page A which needs to post its values to page B on a diferent server. Both pages are ASP.NET 2.0. How do I get the values back from the Request object? I assumed that if I had an asp:TextBox with an ID "username" in form A that I would retrieve the value ala Request["u...more >>

Control-level security
Posted by carlor at 1/10/2006 6:21:07 AM
Hi there, We are working on an application that requires security (authorization) to be applied down to the control level. There will be certain controls on pages that will only be available to certain groups of users as well as specific users. For example, the sys admin will be given the a...more >>

Gridview and XML files
Posted by someone NO[at]SPAM nowhere.com at 1/10/2006 3:40:44 AM
I want to convert a project from .net 1.1 to .net 2. The old project stores data in XmlFiles with schema information. I can read and bind the dataview component to my datafiles. I can even add new rows BUT I cant update my xml files. I see the RowUpdating and RowUpdated events but cant do cust...more >>

Little green arrows
Posted by Ant at 1/10/2006 12:39:02 AM
Hello, Can anybody tell me what the little green arrows mean on the top left of controls? Thanks for your answers in advance. Ant...more >>

Gridview Column Length
Posted by VictorReinhart at 1/9/2006 9:42:25 PM
Hi, Is there a way to limit Gridview Column Length? It would be nice to limit the length to the length of the column in the database. Shouldn't that behaviour be built-in? For example, my "Comments" column is 30 characters long. But, once in "Edit Mode", the user can type in more than 30 ...more >>

Highlight row in a gridview after formview insert
Posted by Feege at 1/9/2006 2:46:59 PM
I am using a formview to insert a new record into a gridview. After the insert is done, I want to highlight the new record. I have written some code to do this which is called on the "OnItemInserted" event on the formview GridView1.DataBind() GridView1.PageIndex = 1 Dim Row As GridVie...more >>

PublicKeyToken, GAC registering, and multiple developers??
Posted by Michael Howes at 1/9/2006 11:33:08 AM
Because of web server security issues we need to register a 3rd party control in the GAC. From my understanding once this happens, any page that references the control gets something like the following added. <%@ Register TagPrefix="jwg" Namespace="MyControl" Assembly="MyControl, Version=1...more >>

Discovering what event was raised
Posted by Piotr at 1/9/2006 11:27:19 AM
How Can I discover in Page_Load() that some event was raised (i.e. EditButton was clicked) ? Piotr ...more >>

new menu control is very slow
Posted by lukerk at 1/9/2006 9:32:03 AM
I was wondering if anyone else found that the new ASP.NET Menu control had very slow responsivenes on complex pages. So I inserted this control in a WebControl, bound it to a siteMapDataSource, and applied a little logic (for roles...but of course we have in-house security, so I can't use R...more >>

ASP.Net 2 Two Way Binding and DateTime Format Problem
Posted by Ludovic DE FREITAS at 1/9/2006 8:11:01 AM
Hello, I have a ASP.Net page where I use the new two-way binding. Unfortunatly the Update have problem with DateTime format. I use a TextBox : <asp:TextBox runat="server" id="tbDate" Text='<%# Bind("MyDate","{0:dd/MM/yyyy}") %> The Binding (display) works, but the Update use another for...more >>

Use Enter as default key
Posted by Chris Zopers at 1/9/2006 6:25:06 AM
Hello, I've developed an ASP.NET page with some controls on it. One of the controls is an imagebutton. Can I assign the Enter-key to this button, so when a user presses the Enter key, the click-event will fire? I know there's a accesskey property, but this is for ALT plus the key that is ente...more >>

problems with referencing control from master page on content page
Posted by Michael Richter at 1/9/2006 2:16:04 AM
hi, all, I'm a desperately seeking (MS search, google ...) for a solution in referencing a menu control that is placed on a master page from a content page. Let me show you what I have got (VS 2005, VB.NET only): * MasterPage: 1 <asp:Menu ID="KostenMenu" Enabled="true" EnableViewState="tr...more >>

Blank page after selection
Posted by Chris Zopers at 1/9/2006 1:30:07 AM
Hello, I've developed an ASP.NET page with a dropdownlist and several textboxes. When the user selects an item from the dropdownlist, some data is retrieved from a database and displayed in the textboxes. The items that are in the dropdownlist are also retrieved from the database in the Pag...more >>

Changed property values not reflected in DesignMode
Posted by Christophe Peillet at 1/9/2006 1:10:03 AM
I am in the process of developing several custom controls that have validation and Ajax/Callback support built into them, and have finished most of the work, but have a stubborn problem when running in DesignMode. When I try to modify the value of certain properties, the Html code is modifi...more >>

Treeview
Posted by Reena at 1/8/2006 10:23:07 AM
Hi, I have treeview control in ASP.NET application on windows XP professional with VS 2005. Works fine. When I moved application to windows 2003 standard edition server, treeview doesn't display any images. + signs are missing. Any idea what's wrong. Thanks in advance. - Reena ...more >>


DevelopmentNow Blog