Home All Groups Group Topic Archive Search About

ASP.NET web controls

microsoft.public.dotnet.framework.aspnet.webcontrols
Score checkbox bind with 0 = checked?
Maarten - 31 Mar 2006 9:05 PM - 5 messages
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 ...
Score GridView XmlDataSource
Ben Schumacher - 31 Mar 2006 8:43 PM - 3 messages
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> ...
Score Enabling/Disabling a Tab in a TabStrip
Yuki - 31 Mar 2006 8:27 PM - 3 messages
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"); ...
Score Calendar control in a datagrid returns wrong date
Jon Prisbe - 31 Mar 2006 6:51 PM - 3 messages
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. ...
Score InputAttributes in RowCreated (gridview)
Pipo - 31 Mar 2006 5:50 PM - 2 messages
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 + """)" + "%>'") ...
Score error using .NET CrystalReportViewer (.NET 1.1 VS.NET 2003)
Philip - 31 Mar 2006 3:46 PM - 4 messages
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.... ...
Score WebControl rendering in frontpage 2003 - Migrating from Visual Studio 2003 to 2005
thierry.sanchis - 31 Mar 2006 8:19 AM - 3 messages
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", ...
Score Fitting a table inside an ASP Panel
Robert W. - 30 Mar 2006 9:11 PM - 4 messages
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" ...
Score GridView Height
Ben Schumacher - 30 Mar 2006 8:44 PM - 2 messages
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 ...
Score GridView: Total Records Count
Amelyan - 30 Mar 2006 8:23 PM - 3 messages
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, ...
Score Gridview PostBack Problems
barrettenda - 30 Mar 2006 5:27 PM - 3 messages
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 ...
Score Extending Gridview to handle grouping.
andrew - 30 Mar 2006 3:55 PM - 2 messages
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 ...
Score Problem with User Control and unset references to controls within
Sam Martin - 30 Mar 2006 2:18 PM - 8 messages
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> ...
Score error in adding user controls at runtime
rushikesh.joshi - 30 Mar 2006 1:40 PM - 5 messages
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 ...
Score Re: Binding two fields in the DataNavigateUrlFormatString
caffienerush@gmail.com - 30 Mar 2006 11:06 AM - 3 messages
Hi Genc, Please post the other way of binding multiple parameters to DataNavigateUrl because I think my idea of replacing the parameter during ItemBound is a bit of a bodge. Regards, Andy ...
Score GridView - can't reference value of a non-visible cell??
Rob R. Ainscough - 29 Mar 2006 6:47 PM - 6 messages
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 ...
Score Dynamically created (and selected) radiobuttons fire CheckedChanged event on Postback
Biguana - 29 Mar 2006 6:09 PM - 4 messages
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 ...
Score Image Server Control's Style/Border
Matt Sollars - 29 Mar 2006 6:08 PM - 2 messages
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 ...
Score Panel with Header
Swami - 29 Mar 2006 6:04 PM - 7 messages
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 ...
Score row count in inherited GridView control
J055 - 29 Mar 2006 5:04 PM - 6 messages
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: ...
Score Validation in repeater
Francis - 29 Mar 2006 3:40 PM - 2 messages
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, ...
Score Bounded Datagrid and Subtotal rows
josepm - 29 Mar 2006 2:13 PM - 3 messages
Hello! Does anybody know how to add a subtotal row in a bounded datagrid? Thanks! ...
Score Use windows control in asp.net 2.0
YC - 29 Mar 2006 1:49 PM - 6 messages
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" ...
Score A view of multiple table
young - 29 Mar 2006 12:38 PM - 2 messages
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!! ...
Score Design Time Error: Error Rendering Control
PeterW - 29 Mar 2006 10:15 AM - 3 messages
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 ...
Score ValidateEvent bug with table and radio button
Peter Kuijt - 29 Mar 2006 9:46 AM - 3 messages
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"; ...
Score Re: How to get underlying data of TreeView control? (ASP.NET 2.0)
misiek - 29 Mar 2006 6:18 AM - 6 messages
Anybody? ...
Score want to create custom control using graphics
rushikesh.joshi - 29 Mar 2006 5:24 AM - 3 messages
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 ...
Score Treeview control determining if node expanded or selected
l.holmes - 28 Mar 2006 4:03 PM - 3 messages
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. ...
Score Change style of Edit-button in GridView?
Jo - 28 Mar 2006 11:59 AM - 4 messages
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> ...
Score Dropdown control that displays images rather than text?
Surendra - 28 Mar 2006 11:45 AM - 2 messages
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... ...
Score Using treeview.htc results in DLL initialization error
dshahrabani - 28 Mar 2006 4:02 AM - 5 messages
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 treeview.htc: ...
Score stylesheet on ASP.NET 2.0 TreeView and Menu Control
Vivek N - 27 Mar 2006 9:36 PM - 5 messages
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 ...
Score Updating server side label's value with client side javascript.
sameer - 27 Mar 2006 9:22 PM - 3 messages
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 ...
Score ASP.NET 2.0 equivalent for e.Item.ItemIndex ?
RG - 27 Mar 2006 8:25 PM - 6 messages
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 ...
Score using placeholders
Ian Jagger - 27 Mar 2006 3:36 PM - 3 messages
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 ...
Score Adding controls to Pager row in GridView
J055 - 27 Mar 2006 2:35 PM - 6 messages
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 ...
Score Templated control not rendering Web User Controls
Allan Ebdrup - 27 Mar 2006 11:45 AM - 5 messages
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" /> ...
Score Hidden column in datagrid
amos - 27 Mar 2006 7:55 AM - 2 messages
I have a datasource in datatable or dataset I want to hide one of the column how can I do this? thanks. ...
Score servercontrols (webcontrols, htmlcontrols) or html elements?
Dirk - 27 Mar 2006 7:27 AM - 3 messages
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 better to ...
Score Gridview and colspan
David D. - 26 Mar 2006 10:45 PM - 3 messages
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:  ...
Score Scroll position in panel control
Jason James - 26 Mar 2006 6:46 PM - 2 messages
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 ...
Score Display data in asp:Calendar
phoebe - 26 Mar 2006 5:06 PM - 3 messages
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. ...
Score Using the Datalist Control as Menu
jayender.vs - 26 Mar 2006 11:48 AM - 2 messages
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 .. ...
Next »