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 > march 2006

Filter by week: 1 2 3 4 5

checkbox bind with 0 = checked?
Posted by Maarten at 3/31/2006 11:05:42 PM
I have a bound-checkbox. The database value = 0 but the checkbox got checked? Why is that? What value should be in the database for being not checked then? tia ...more >>


InputAttributes in RowCreated (gridview)
Posted by Pipo at 3/31/2006 7:50:37 PM
Hi, I want to bind my checkboxes during Rowcreated in the gridview. I want to render: <asp:CheckBox ID="chkDIS1" runat="server" Checked='<%# Bind("DIS1") %>' /> I tried: chk.InputAttributes.Add("Checked", "'<%# Bind(""" + "DIS" + dtt.Rows(intRowCounter).Item(0).ToString + """)" + "%>'") Bu...more >>

GridView XmlDataSource
Posted by Ben Schumacher at 3/31/2006 2:43:44 PM
On a webform I have a GridView control and an XmlDataSource control. I set the datacontrolid of the gridview control to the id of the xmldatasource control and everything looks fine. The xml looks somthing like below ... <FolderReferences> <FolderReference type="Number" value="12345"/>...more >>

Enabling/Disabling a Tab in a TabStrip
Posted by Yuki at 3/31/2006 12:27:02 PM
Hi all! I put a TabStrip in my webform, and, in some events, I need to disable some Tabs in the TabStrip... I try this: Microsoft.Web.UI.WebControls.Tab t; t = (Microsoft.Web.UI.WebControls.Tab)this.mpMy.FindControl("tab1"); but I have a error: Cannot convert type 'System.Web.UI.Control' to...more >>

Calendar control in a datagrid returns wrong date
Posted by Jon Prisbe at 3/31/2006 10:51:02 AM
I have a datagrid. When the user presses "edit" I display a calendar control in the 2nd cell. The cell's edit template is the calendar control. The user selectes a date on the calendar and then presses "update". Problem: the calendar always returns 1/1/01 when I call SelectedDate. Here is ...more >>

error using .NET CrystalReportViewer (.NET 1.1 VS.NET 2003)
Posted by Philip at 3/31/2006 7:46:03 AM
how can I fix this below error please? It's strange as we have the .NET Framework 1.1 on the web server, and I can even drop a CrystalReportViewer ..NET Server control onto an aspx page in VS.NET 2003.... thanks for any help Philip Parser Error Description: An error occurred during th...more >>

heres an easy one i think..DataList item widths...
Posted by Sam Martin at 3/31/2006 3:37:01 AM
Hi, I have a user control containing a DataList. - all good. <asp:DataList id="DataListMain" runat="server" RepeatDirection="Horizontal" RepeatColumns="4"Width="100%" HorizontalAlign="Left"> Columns = 4, rendered Horzontaly. This works fine where is more than 4 items in the datasource, ...more >>

WebControl rendering in frontpage 2003 - Migrating from Visual Studio 2003 to 2005
Posted by thierry.sanchis NO[at]SPAM free.fr at 3/31/2006 12:19:35 AM
Hi, I created a System.Web.UI.WebControls.WebControl in Visual Studio 2003. It is inserted in an aspx file. When I open this aspx in FrontPage 2003, and if i correctly set the Tools/option/asp.net/"default location for ASP.NET control assemblies", it is correctly rendered... But if I write t...more >>



GridView: Total Records Count
Posted by Amelyan at 3/30/2006 3:23:48 PM
I need to get the total number of items/records returned into GridView. If I just do myGridView.Rows.Count, then it just returns me the total number of items on the page. But if I have, 10 pages (10 records per page) and 98 records total, Rows.Count will return me 10 on the first 9 pages, ...more >>

GridView Height
Posted by Ben Schumacher at 3/30/2006 2:44:15 PM
The rows in my gridview are not holding their height as specified in the <RowStyle height="18"/> and <AlternatingRowStyle height="18"/>. This occurs when I have maybe 2 or 3 records in my gridview control, but the height propery of the gridview control is set to like 150. I just want the row...more >>

Fitting a table inside an ASP Panel
Posted by Robert W. at 3/30/2006 1:11:01 PM
I'm trying to put a simple table tightly inside an ASP Panel. Here's the HTML code: <asp:panel id="PanelHeader" runat="server" BackColor="RoyalBlue" Height="80px"> <TABLE style="WIDTH: 1141px; HEIGHT: 80px" height="80" cellSpacing="0" cellPadding="0" width="1141" border="0"> <...more >>

Troubles with cr/lf translation in .Net 2.0
Posted by =WereWolf= at 3/30/2006 10:11:02 AM
I noticed that any WebControl, rendering its html code through HtmlTextWriter, gets crlf characters in Text property translated to "<br>" or nothing. This is pretty good in normal circumstances. But it's annoying since i'm trying to databind the text property of a multiline TextBox contr...more >>

Gridview PostBack Problems
Posted by barrettenda NO[at]SPAM gmail.com at 3/30/2006 9:27:28 AM
When a user selects an item from a dropdown list, the page is posted back and the gridviews are binded to contain the new data because a new parameter has been specified. But when I manually select a particular row and cell using the code for (int i = 0; i < GridView1.Rows.Count; i++...more >>

Extending Gridview to handle grouping.
Posted by andrew at 3/30/2006 7:55:36 AM
I've been working on a new control that inherits gridview. The properties are extended to take a grouping parameter. When the gridview binds it is suppose to sort on the grouped field name and add rows whenever the value of this field changes giving the apperance of grouping. What i have works...more >>

Problem with User Control and unset references to controls within
Posted by Sam Martin at 3/30/2006 6:18:03 AM
Hi, I have got a User Control that contains for the sake of argument, a single DataList control. eg. <asp:DataList id="DataList1" runat="server" RepeatDirection="Horizontal" RepeatColumns="4" Width="100%" GridLines="Vertical"> <ItemTemplate> asdf </ItemTemplate> </asp:DataList>...more >>

error in adding user controls at runtime
Posted by rushikesh.joshi NO[at]SPAM gmail.com at 3/30/2006 5:40:58 AM
Hi All, I have created my own WebControl and want to add it in my aspx page at runtime. it's compiling perfectly, but when i m going to execute, it gives me error of "Object reference not set to an instance of an object." in my server control (ascx.cs file) There is a table in my user ...more >>

row count in inherited GridView control
Posted by J055 at 3/29/2006 6:04:23 PM
Hi I'm adding a couple of features to the GridView control. I'm not sure how best to get the total row count from the data source to use for displaying page information in the pager rows. Something like this: Records 5 to 10 of 25 I've got this working in the code behind page so now I ...more >>

Validation in repeater
Posted by Francis at 3/29/2006 4:40:55 PM
Hi, I have a repeater control which has a button in each row, I need the button to submit data, when this happens I have a requiredfieldvalidator on each row which will check that the row has been filled in, however, when a button is clicked, all rows validate rather than just the row the b...more >>

Image Server Control's Style/Border
Posted by Matt Sollars at 3/29/2006 1:08:25 PM
Hello. Has anyone else noticed that the Image server control emits a style attribute for a 0px border by default? If I drop an Image control on a form and set nothing but the ImageUrl property, it is rendered as the following: <img id="Image1" src="Blue%20hills.jpg" style="border-width:0...more >>

GridView - can't reference value of a non-visible cell??
Posted by Rob R. Ainscough at 3/29/2006 10:47:44 AM
I'm trying to retrieve a value I placed in a grid view column that is set to NOT visible. Now when I try to retrieve the value of the non visible column using: gv_Units is the GridView control Dim gvRow As GridViewRow For Each gvRow In gv_Units.Rows Dim someValue as string = gvRow...more >>

Dynamically created (and selected) radiobuttons fire CheckedChanged event on Postback
Posted by Biguana at 3/29/2006 10:09:30 AM
Hi there, Wondering if anyone can help as this is driving me nuts. I have a c# page with a lot of dynamically created controls. Some are user controls where the user can select which section to complete using radiobuttons. I create the groups of radiobuttons (always with the first one in ...more >>

Panel with Header
Posted by Swami at 3/29/2006 10:04:04 AM
I am trying to create a control that is basically a panel with a header. I would like to be able to do the following: - to place this in the controls toolbar - use it at design time - drag/drop this control and add other controls in the content area of this panel - change the text of th...more >>

Bounded Datagrid and Subtotal rows
Posted by josepm at 3/29/2006 6:13:03 AM
Hello! Does anybody know how to add a subtotal row in a bounded datagrid? Thanks!...more >>

problem to create web control using graphics
Posted by rushikesh.joshi NO[at]SPAM gmail.com at 3/29/2006 6:02:31 AM
Hi All, I want some charting functionality in my ASP.NET application. I want to show a multiple bar on my web page. It's based on down time of different servers. like server1: down betn 4 AM to 5 AM and 6 PM to 7 PM server2: down betn 7 AM to 7:30 AM server3: down betn 3 AM to 5 AM and 2 ...more >>

Use windows control in asp.net 2.0
Posted by YC at 3/29/2006 5:49:39 AM
Hi, I'm trying to use a calendar windows control within a an asp.net 2.0 application. I've created a windows control library project that holds the calendar. I placed the DLL within the web application direcory. All is well and I can declaretivly set the default date using the "Param" within...more >>

A view of multiple table
Posted by young at 3/29/2006 4:38:35 AM
In the database,I have a view is create from multiple table, and my sqldatasource get the data from the view.and if I change the data In GridView control,how to update to the database???help!!I'm a Chinese,I know little English!! ?????????????,??????????asp.net????gridview??????????????????????????...more >>

Design Time Error: Error Rendering Control
Posted by PeterW at 3/29/2006 2:15:02 AM
I am attempting to use a WebControl VspFromRequest supplied by ProtX in a recently released development kit developed for .NET 1.1. I am trying to use this in .NET 2.0. The control appears in the Web Parts tab but on being dragged to the design surface shows the Error "Error Rendering Cont...more >>

ValidateEvent bug with table and radio button
Posted by Peter Kuijt at 3/29/2006 12:00:00 AM
ValidateEvent throws an argument exception when it should not: make a new ASP.Net (2.0) web site and paste this code in Page_Load(): //----- Button button = new Button(); button.Text = "Submit"; form1.Controls.Add(button); Table table = new Table(); table.ID = "theName"; form1.Controls.A...more >>

want to create custom control using graphics
Posted by rushikesh.joshi NO[at]SPAM gmail.com at 3/28/2006 9:24:02 PM
Hi All, I want to create a webcontrol which will generate a bar (bar chart). I have done some graphics code in my ASPX page and it's working fine, but how do i create a Custom Control or User Control for same (custom control is prefarable). Below is my code of ASPX page which is working fin...more >>

Treeview control determining if node expanded or selected
Posted by l.holmes at 3/28/2006 5:03:52 PM
Hi I have a asp.net 2.0 treeview control which I populate nodes using the new client call back (populatenodeondemand = true). This works fine and my _TreeNodePopulate event handler handles the event fired when a node is expanded and populates the child nodes. However, I now need to use ...more >>

Change style of Edit-button in GridView?
Posted by Jo at 3/28/2006 3:59:23 AM
Hi all, I have a GridView with AutoGenerateEditButton="True". Next to it, I've created a delete-button myself (just to take advantage of a messagebox): <Columns> <asp:TemplateField> <ItemTemplate> <asp:LinkButton ID="LinkButton1" runat=serve...more >>

Dropdown control that displays images rather than text?
Posted by Surendra at 3/28/2006 3:45:02 AM
Hi Has anyone come across a dropdown control for asp.net that displays images rather than text? Preferably showing a 2-D list rather single items per row? Waiting for reply... Thanks, Sur......more >>

problem in rendering the calendar control
Posted by rushikesh.joshi NO[at]SPAM gmail.com at 3/27/2006 8:58:34 PM
Hi All, I want to create custom control by using Web.UI.WebControls.Calendar, in which I want to set few days with different color. I had created two property to set the color and storing in viewstate. I had created 4 methods to Add/Remove my special dates in viewstate. Up to here all seems...more >>

ASP.NET 2.0 equivalent for e.Item.ItemIndex ?
Posted by RG at 3/27/2006 8:25:10 PM
Hello, I'm raising an event in a datagrid when clicking on a deletecommand button. I want to get the selected value of the datagrid. In ASP.NET 1.1 I did this whit e.Item.ItemIndex In ASP.NET 2.0 I can't use this anymore because EventArgs e has only the properties/methods tostring, Equals...more >>

Using treeview.htc results in DLL initialization error
Posted by dshahrabani NO[at]SPAM covad.net at 3/27/2006 8:02:21 PM
We are using Microsoft's treeview.htc control (part of Microsoft.Web.UI.WebControls) to display a tree control in our .NET application. When displaying the tree, the browser returns the error: Dynamic Link Library (DLL) initialization routine failed pointing to the following line in treev...more >>

Adding controls to Pager row in GridView
Posted by J055 at 3/27/2006 3:35:21 PM
Hi I'd like to display some information about the GridView records in the Pager rows. e.g. Records 1 to 10 of 100 I can add a new TableCell control to the DataControlRowType.Pager rows but I can see a problem. The Pager row adds a colspan equal to it's td tag which is equal to the nu...more >>

Templated control not rendering Web User Controls
Posted by Allan Ebdrup at 3/27/2006 1:45:15 PM
I have a templated control, it works fine at runtime, but at designtime I can't see the web user controls used in the template. I have this template in my control: --- <Wizard>test <uc1:TelephoneNumber ID="TelephoneNumber1" runat="server" /> </Wizard> --- But in the design view only the "t...more >>

stylesheet on ASP.NET 2.0 TreeView and Menu Control
Posted by Vivek N at 3/27/2006 1:36:59 PM
Hi, I'm using the ASP.NET 2.0 TreeView and Menu Control in my website. The problem is that when the client side script is generated the control generates a normal html link <a> </a> . In my style sheet I have following. This makes even those (esp the menu items) also blue in color. Is there a...more >>

Updating server side label's value with client side javascript.
Posted by sameer at 3/27/2006 1:22:02 PM
guys, Environment : ASP.NET 1.1 this is gong to be really simple for your pros out their, my aspx page has the following server side controls, a label( contains a numeric value), a checkbox and a submit button, the button post back to the server but not the other two controls. All i want to...more >>

How to get underlying data of TreeView control? (ASP.NET 2.0)
Posted by placek at 3/27/2006 10:30:38 AM
Hi all. I have a page with a TreeView control and a XmlDataSource. I set XmlDataSource.Data property with some DataSet.GetXML() method and then I programatically set TreeView.DataSourceId to my XmlDataSource. It works fine, all data is properly displayed. One more thing: this TreeView control...more >>

using placeholders
Posted by Ian Jagger at 3/27/2006 7:36:02 AM
Hi, I am trying to dynamically read data from the database and display it as a series of hyperlinks in an unordered list on a web page. I added a placeholder to the page and added controls from the database to the pageholder. I've verified that it is adding controls by debugging it, howe...more >>

Display data in asp:Calendar
Posted by phoebe at 3/27/2006 1:06:14 AM
Hi, Good Day! I had a tableholiday that store startdate, enddate and holiday name. Below is the coding to display the holiday name in asp:Calendar webcontrol when a page is load. It manage to display a holiday which is only 1 day. I need more as if the holiday are 2 or 3 days, how should ...more >>

servercontrols (webcontrols, htmlcontrols) or html elements?
Posted by Dirk at 3/27/2006 12:00:00 AM
Hi, Suppose an application where the user has to chose an id-number in a 'select'. Data connected to that id-number must be fetched from a table and undergo heavy calculations and finally displyed into several textboxes. In order to minimize transfer between server and client, is it not bett...more >>

New Menu control using tables for layout
Posted by Ward Bekker at 3/27/2006 12:00:00 AM
Hi, I'm using the new asp.net 2.0 menu control. It uses tables for rendering it's layout. Several CSS guru's pointed out that it's not good practice using tables for that, and it's better to use basic HTML lists and let the CSS handle the layout. So, is there a way to let the menu contro...more >>

Hidden column in datagrid
Posted by amos at 3/26/2006 11:55:02 PM
I have a datasource in datatable or dataset I want to hide one of the column how can I do this? thanks....more >>

Gridview and colspan
Posted by David D. at 3/26/2006 2:45:44 PM
Can someone easily tell me how to change what the Gridview renders for the table to get a colspan attribute on selected rows of the table? In my GridView1_RowDataBound event I am checking the contents of a particular cell: If e.Row.Cells(2) = "Something" Then I want to merge column...more >>

Scroll position in panel control
Posted by Jason James at 3/26/2006 10:46:25 AM
Hi all, I've checked the posts but this question doesn't seem to have been asked in a while and I don't seem to be able to find an answer for it anywhere else. I have a panel control on my page that contains a datalist. The datalist renders small thumbnails (200px X 200px) for up to 200 ...more >>

Using the Datalist Control as Menu
Posted by jayender.vs NO[at]SPAM gmail.com at 3/26/2006 3:48:29 AM
Hi, I'm working in VS 2005, with ASP.Net and C#, i need to know how to use datalist control as menu ? I tried it .. but the datalist is not visible(invisble) at run time ? what would be the cause.. ? Waiting for ur reply .. thanks, Jayender ...more >>

Need comments on construction of pages getting their data from custom classes
Posted by Evert Wiesenekker at 3/25/2006 3:15:13 AM
When I started learning ASP.NET two years ago I created my pages in a visually oriented way, eg by dragging and dropping controls on the page. I mainly used DataGrid's binding their data to custom made SQL Server stored procedures. To get more binding control I later developed template columns f...more >>

Trouble with validator control ? Script not found
Posted by Infante - GIGA at 3/24/2006 7:22:51 PM
Hi, I have this problem: if I use the application (web application with html forms) on the development machine or locally on the production server everything works fine If I call the pages from a browser (e.g. IE6) from another pc, internal on the network or external from internet, I get t...more >>


DevelopmentNow Blog