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 1 - 7, 2006

Filter by week: 1 2 3 4 5

Hide Menu Items Based On Roles
Posted by beaudetious at 1/7/2006 10:36:02 PM
I'm using a Menu web control in an ASP.NET 2.0 web page and I'd populating it declaratively (sp?) in the web form itself. One of my menuitem's is only for admin users to use. I'd like to learn how to hide this menu item when an admin user is not logged in. Or better yet, display it when an ...more >>


Size of Calender inside table
Posted by Robert at 1/7/2006 5:44:01 AM
Hi! I have a problem controlling the size of WebControls.Calendar when I put it inside of a table. The size of the control is larger than of that I disire. I have tried to set the width and hight properties and it looks fine in Design-mode in VS, but when I execute the page it becomes much ...more >>

ASP.NET 2.0 sort DataList without query again
Posted by hohans NO[at]SPAM yahoo.com at 1/6/2006 4:57:32 PM
Hi All, In 2.0, how do you sort DataList without executing the query again? So far what I found in the Web all show examples where you need to re-execute the query against DB with passed in field name and sort direction. The data source has been bound to the control. Can we somehow just r...more >>

Dynamically changing LinkButton properties
Posted by treilly via DotNetMonster.com at 1/6/2006 4:02:11 PM
I currently have several LinkButton controls contained inside a placeholder in my asp.net form. When a user clicks on any one of these, I need to change the clicked LinkButton's CssClass. I am trying to do this inside of the command event handler for the LinkButtons. However, I cant gain acces...more >>

ButtonColumn and EditCommandColumn don't work together as expected in DataGrid
Posted by Piotr at 1/6/2006 3:38:28 PM
Hi, I have a DataGrid with standard EditCommandColumn with PageIndex enabled. Everything works fine. When I add ButtonColumn <asp:ButtonColumn Text="Delete" HeaderText="" CommandName="Delete"/> and modify DataGrid with OnItemCommand="datagrid_Delete" str...more >>

Making a CheckBox Read-Only
Posted by Andrew Chalk at 1/6/2006 2:52:18 PM
In ASP.NET v1.1, the checkbox does not have a "ReadOnly" property. How do I prevent a click on it changing the visual clicked state? Set enabled to false? Many thanks. ...more >>

multiple itemtemplates datalist
Posted by krallabandi NO[at]SPAM gmail.com at 1/6/2006 1:27:10 PM
Hi, Can a datalist supports multiple itemtemplates? I want to have 2 itemtemplates in a single datalist. In 1st template I will display the data from one dataset and in another I will display data from 2nd dataset. Is it possible? any knowledge base article for this? Thanks. ...more >>

Invisible button
Posted by EP - Web guy at 1/6/2006 1:09:04 PM
Hello, I have a .Net 2003 web app that has been developed and built into an install. When the application is installed the button for login on the main start up form does not show up. The button is a plane old web button control. The strange part is that the button does show up on some mach...more >>



TypeConverter Question
Posted by Jamie Nordmeyer at 1/6/2006 11:00:04 AM
Hi all. I have a WebControl that has a collection class of objects who have a property whose type is Control. I've written a custom TypeConverter for it that is supposed to present the ID's of all the sited controls on the page. It works, too, until you try to run the project, or until you ...more >>

Panel Syntax
Posted by TC at 1/5/2006 7:01:01 PM
In the below example of code, What is the syntax to access the contents of TextBox1? Also, what is the syntax to iterate all occurrences of the TextBoxes? Thanks, TC <%@ Page Language="C#" AutoEventWireup="True" %> <html> <head> <script runat="server"> void ...more >>

Dynamically show different web controls
Posted by Seok Bee at 1/5/2006 6:20:03 PM
Hi Experts, I am trying to create a web form insert a record into Microsoft Access database. In my web form I'll have a dropdown list. Let say my dropdown list will have 4 available options (New User, Others, Network). When I chose "New User" I want my form to show a group/list of controls ...more >>

Disable Button after click it
Posted by Guzman at 1/5/2006 2:32:06 PM
Hi, i want to disable a button after i click it, so the button it is not submited twice. The thing is that i'm working with the onclik event in the server side, and in the server side i disable the button, but sometimes the users click the button twice really fast, and i don't want this to ha...more >>

Clearing textbox controls after postback
Posted by martinharvey via DotNetMonster.com at 1/5/2006 12:05:46 PM
This is probably a simple question but i would appreciate some help. I have a registration page that uploads customer information to the database. The information is uploading ok but the customer information stays in the textboxes after the information is uploaded. Can anyone tell me how to ...more >>

Hyperlink within a label
Posted by duncans at 1/5/2006 11:31:04 AM
I have seen a couple of posts that sort of aswer my question but I am feeling particularly dense in 2006. I want to have a 'label' that contains within it a link to another page. I could use a link button, I suppose, but I don't necessarily want the entire text to be a hyperlink; just a word o...more >>

WebControl Click Event Not Firing
Posted by Demetri at 1/5/2006 10:20:04 AM
I have created a web control that can be rendered as either a linkbutton or a button. It is a ConfirmButton control that allows a developer to force a user to confirm if they intended to click it such as when they do a delete. Everything is great. By and large it will be used in my repeater c...more >>

Dynamically load webcontrol
Posted by Allan Ebdrup at 1/5/2006 8:49:07 AM
Hi I have a scenario where I have a webcontrol on an ASP.Net 2.0 page, in some cases I want to dynamically load another webcontrol instead of the control I have. I want to load one of several possible webcontrols instead, and I would like it to be so that I don't have to add a reference to al...more >>

control refresh
Posted by AVL at 1/4/2006 9:57:02 PM
Hi, I have a requirement in which I need to refresh a single control instead of teh whole web page. How can I do this asp.net 1.0? ...more >>

I really need to get this working......
Posted by Pipo at 1/4/2006 5:26:59 PM
The problem: I create a very simple custom control: public class cLabel : System.Web.UI.WebControls.Label { } I place the cLabel in a user control. When I place the user control on a page I get this exception: Error Rendering Control - cLabel An unhandled exception has occur...more >>

DynamicMenuItemStyle override style (cursor:text)
Posted by bradjoss NO[at]SPAM hotmail.com at 1/4/2006 1:44:33 PM
I am using the DynamicMenuItemStyle element and all seems to be going well, except that I have a custom CSSClass associated with the item that has styles being overwritten by the default style of the item. In the case below, this is the code that is ultimately generated. My style (DynamicMenuI...more >>

dropdownlists, their items and viewstate
Posted by Dave Weeden at 1/4/2006 11:32:01 AM
Hi all, I have a strange issue with dropdown items that I'm trying to understand. We use dropdowns in three contexts: 1) directly specified in an aspx file 2) dynamically added to the controls collection of a server side table cell of an aspx file 3) dynamically added to a custom class d...more >>

WEB controls do not show on the web page
Posted by Doru Roman at 1/4/2006 11:23:47 AM
Hi, I place a number of WEB Controls on the form but they do not show. It's only the HTML controls that will show on the web page. Does anybody know what is wrong? Thanks, Doru ...more >>

control's default values?
Posted by Daves at 1/4/2006 11:13:25 AM
where can I find a control's default value? For example "CausesValidation" and "Visible" attribute? ...more >>

RowCommand - item index?
Posted by SteveR at 1/4/2006 8:47:03 AM
I've just started experimenting with VS2005. I have a GridView with a command button in it. When I click the button the RowCommand event fires but how do I find out which row it was that caused it? In VS2003 I used e.Item.ItemIndex in the ItemCommand event but e.Item doesn't exist for a RowCom...more >>

HTML editor for Safari browser
Posted by Dennieku at 1/3/2006 11:59:03 PM
Hi, I want to make a little WYSIWYG editor for a CMS I'm developing. This editor must also be supported by the Safari (Mac) browser. Does anybody have a little script to show how this is done? Thx, Dennieku ...more >>

Where in the viewstate is a GridView's rows?
Posted by Keith Patrick at 1/3/2006 4:38:25 PM
I'm trying to track down a problem where a dynamic gridview I have is not restoring its rows correctly. Stepping into a derived GridView, I've found that the GV *is* getting a viewstate passed to LoadViewState with the correct # of rows specified. However, I can't find where in the viewstate...more >>

control exposing collection.
Posted by Ashish at 1/3/2006 3:19:33 PM
Hi all, Iam trying to design a web server control using asp.net 2.0, that has a collection exposed. so that user can specify list elements in the markup. like <uc1:MyControl id="Mycontrol1" runat="server" property1="value"> <Item name="value" prop1="value"></Item> </uc1:MyControl> w...more >>

How to deselect item on single select listbox?
Posted by rpress at 1/3/2006 1:27:01 PM
In a multi-select listbox one may deselect items, but this does not work in a single select listbox. Has anyone come across a way to do this? (deselect so that no items are selected) Thanks ...more >>

ImageButton in a datagrid. How do I determine on which row I am?
Posted by ThunderMusic at 1/3/2006 10:08:26 AM
Hi, I have an ImageButton in a DataGrid (each row has it's ImageButton). When I click on this ImageButton, I must delete a row in my database. As a result, I must know on which ImageButton the user clicked (well, on which row). How can I do that? it's probably very simple, but I really don'...more >>

Customizing a TreeNode's viewstate
Posted by Keith Patrick at 1/3/2006 9:38:43 AM
I have a custom subclass of TreeNode that has to store it's own additional viewstate to itself. However, the problem I run into is that even though the owning TreeView is itself a subclass that overrides CreateNode(), then calling TreeNode.LoadViewState(object), all ChildNodes are restored as...more >>

link on an entire row in a datagrid
Posted by ThunderMusic at 1/3/2006 9:37:51 AM
Hi, In my page, I have a datagrid. I want a link to be "bound" to the entire row. How can I do that? I have my datagrid, my colums and all, but how do I add the link so when I click on anything in the row, it does something (OnClick="MySomething")? Will I have to add the "OnClick" event to a...more >>

Expose childcontrols
Posted by ake_krakbar at 1/3/2006 7:52:08 AM
Hello folks! Is there any way of exposing all child controls in a composite contro in the Visual Studio Designer? If my composite control consists of label and a textbox, I would provide the ability for the page user t select either one of these child controls and set its properties. have lo...more >>

Remove Dynamic User Controls from a collection
Posted by Stephan B at 1/3/2006 1:19:45 AM
Hi, for some reason I cannot find my yesterdays post, so here is an other try. I have got some Dynamic User Controls (UC's) on my page. The user can add as many as he likes by clicking a button. This all works fine. Every UC has also a button to remove itself from the page. Here is were the tro...more >>

Gridview - Accessing a field value in current row
Posted by Joe Reiss at 1/2/2006 7:51:04 PM
Hi all, I can currently access a row value using the following: GridViewRow g = g.Rows[1]; string s = g.Cells[1].Text; However, I need this particular field to be invisible. I only put it in the grid because I need to do stuff with its value, but, the user doesn't need to see it. How...more >>


DevelopmentNow Blog