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 > february 2005 > threads for february 8 - 14, 2005

Filter by week: 1 2 3 4

Need to add CSS to a linkbutton
Posted by Maziar Aflatoun at 2/14/2005 10:17:53 PM
Hi, Does anyone know how I can add a css to the following button. I want to add it so that Update, Cancel and Edit have the css in the form of <a href="" class="">Update</a> <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCom...more >>


Displaying control
Posted by Tony at 2/14/2005 2:30:57 PM
When creating a control dynamically (code behind) how do you show it on the page and position it on the page. Thanks Tony ...more >>

Adding controls to table
Posted by Tony at 2/14/2005 12:01:59 PM
Win XP - VS 2002 - VB I created a web forms table with 2 rows 2 cells each row. I've created controls on design page 2 labels and 2 text boxes. When adding the control to the table, I used, tblVendorDispute.Rows(0).Cells(0).Controls.Add(Label1) tblVendorDispute.Rows(0).Cells(1...more >>

CheckBoxes in a DropDownList
Posted by Sean McKaharay at 2/14/2005 10:37:24 AM
Hey All, I was wondering is there any examples out there for a Checkbox in a DropdownList? There is a control for win apps but I really can't find anything for doing on the web. Sean ...more >>

How can I use a multiselect listbox to pass parameter to a SQL SP
Posted by Jeff Thur at 2/14/2005 12:10:39 AM
I have a program where the user does database lookups. I need to have a listbox where thue user can select one or more states and a regular textbox to select a last name. I am not sure how I can do this. I figure that the programmer must build the criteria from the listbox itself. Any idea...more >>

Get DataGrid Value
Posted by Wayne Wengert at 2/12/2005 2:14:42 PM
I have a datagrid in my ASP.NET page that displays several rows based on some user specified criteria. I have an Edit button and a Delete button in each row. When the user clicks on either of those buttons I want to set a Session variable to the contents of the field named "ID" in the selected ro...more >>

binding a value to a checkbox
Posted by Esperanza at 2/12/2005 2:11:07 PM
Hello dotnet expert !! I want to present as a checkbox the values -1 as true and 0 as false stored in a table. I got a Datalist and dragged a chekbok in the ItemTemplate section. I link my data field to it. I compile but at execution time, I got "Specified cast is not valid". Where can I asso...more >>

Table not showing
Posted by Epetruk at 2/11/2005 7:14:32 PM
Hi all, I'm trying to write a simple page where a table's properties and contained controls are generated dynamically. I have the following code: In Test.aspx: <%@ Page language="c#" Codebehind="Test.aspx.cs" AutoEventWireup="false" Inherits="Test.TestForm" %> <!DOCTYPE HTML PUBLI...more >>



.Selected property for listbox does not work
Posted by Vipin Kedia at 2/10/2005 10:23:09 PM
Hi I have written a code for showing the list boxes as selected using a Listitem and the selected property of the items. Now I have 2 list boxes in my page. But it shows only the selected values of the last list box in both the list boxes. If i reverse the calls to the filllistbox m...more >>

Riddle me this... RBL strikes again. Min USENET clue reveals noth
Posted by Michael Conroy at 2/10/2005 2:21:07 PM
Slap a radiobuttonlist on the screen with a textbox and a button. Change the order of the RBL and textbox and suddenly viewstate and event handling goes away. Swap 'em back and all is well. This ready to run code snippet demonstrates the behavior. Does ANYBODY have any idea why this is....more >>

Yet more DATE validation problems (C#)
Posted by Pete at 2/10/2005 2:18:50 PM
Specifically, I want to force the user to enter date in a textbox as a 4 digit year so that I don't have to figure out what century they intend. Also, I don't want to deal with date range assumptions that 2 digit year begets. My expectation is that I can use a compareValidator, set the type to...more >>

DropDown List
Posted by Manoj Paramu Das at 2/10/2005 12:48:44 PM
DropDwonList.SelectedItem.Value returns only the first record value, no matter when you select. any help would be appreciated. Thnaks Manoj ...more >>

Mixing child properties and child controls - how?
Posted by Donal McWeeney at 2/10/2005 10:28:38 AM
Hi, I'm building a custom control derived from WebControl - and I want to add a child property of type Style - but my control will also contain any amount of child controls - how do I go about doing this. eg. <MyCustomControl runat="server"> <CustomStyle ... /> <p>some text ...more >>

Setting a hidden field programatically
Posted by SimonH at 2/10/2005 6:53:40 AM
Hi all, When a form loads, I need to store the original value along with the form so I can check if the value submitted back has been changed. I was wondering what the best way to do this would be? Can I use the viewstate for this or is there a preffered solution? Many thanks all Si...more >>

Treeview focus() problem!
Posted by Shridhar at 2/10/2005 5:01:07 AM
Hi, We have a problem of treeview focus() when the page is loaded. Basically we are using it in webpart.(something like a frame) on pageload we tried with document.getElementById('Treeviewpanel').focus(), but it seems not working! Our custom tooltip will not display in proper position. as ou...more >>

Turning on autocomplete for textbox webcontrol
Posted by Luigi at 2/10/2005 3:23:03 AM
ALTHOUGH WE SET AUTOCOMPLETE IN INTERNET OPTIONS ->CONTENT->AUTOCOMPLETE->AUTOCOMPLETE SETTINGS -> FORMS and attribute "autocomplete" with value "on" programmately by using TextBox1.Attributes.Add("autocomplete","on"); It seems to not work... What can we do? I looking forward your r...more >>

Microsoft.web.ui.webcontrols.dll error
Posted by P1ayboy at 2/10/2005 1:55:06 AM
I've downloaded the Microsoft webcontrols and installed it, the problem is, it doesn't seem to want to install the appropriate .dll, so i can't onclude the assembly in my application. I've tried this several times and failed misserably. If its not possible to download the .dll directly, how ca...more >>

Problem: Adding a control and not finding it on postback
Posted by Luiz Vianna at 2/9/2005 8:27:39 PM
Hi Guys, I must missing something here:=20 My page add a Radion Button by program using a code like this:=20 Dim myRadioButton As New RadioButton myRadioButton.EnableViewState =3D True myRadioButton.ID =3D "ID1" myRadioButton.GroupName =3D "Group1" myRadioButton.Text =3D "My Text" Plac...more >>

how to open a new browser window when clicked on a button control?
Posted by buran at 2/9/2005 4:04:14 PM
Dear ASP.NET Programmers, I am using the following code block to navigate to the invoice page of my app. when users click on the button btnInvoice. However, I want to display the invoice page in a new browser window. What javascipt code should I use instead of Response.Redirect()? Thanks in ad...more >>

Databound Textbox vs. Width property
Posted by Arthur Dent at 2/9/2005 2:19:19 PM
Please help... I have a datagrid with a template column containing a databound textbox. The textbox width is set to 100%, so it automatically fills the column. When you type into a textbox, if you type in more than the width, it just kind of scrolls out the end of the textbox. I am having tr...more >>

File Input Times Out
Posted by Steve Lloyd at 2/9/2005 10:00:15 AM
Hi, I dont know if this should be in a html newsgroup or this one, so apologies if it mislocated... I have a page that uses a <input type=file ..> then uploads an image to the server, then I resize the image to the size required by the web page. The problem is that if ppl upload a big imag...more >>

Conditional webform controls
Posted by Jerod Guida at 2/9/2005 9:36:13 AM
I am fairly new to asp.net and am using webforms in vb.net. I have read a lot about authorization to entire pages using role-based security, but I haven't seen much in regard to role-based security for controls within a page. For example, say that I want an aspx page to show a link for "Maint...more >>

File Field in ASP.NET
Posted by Kerr at 2/9/2005 4:12:49 AM
Hi all, Sorry, i'm new to asp.net (coming from a VB.NET background) and finding it difficult to achieve something that is rather simple. I have a simple aspx page that contains a file form (I am not sure if there is a .net control that allows file selection, and if there is can someone please...more >>

Multiple columns in a List Box
Posted by Srinivasa Rao at 2/8/2005 9:57:03 PM
I am trying to create a list box which has two columns seperated by a vertical line. When i select an item in the first column, it should only select the item in the first column and not the item in the second column. How can i create a list box like this? I have gone through the properties of...more >>

"ASP:" WebControls and Non-JavaScrip
Posted by Alex Maghen at 2/8/2005 3:05:04 PM
Hi. I'm confused about something: I love using the <asp:...> WebControls and they work amazingly in IE, etc. But my problem is, let's say I've created a page and it has things like asp:LinkButtons and asp:Buttons, etc. but the browser doesn't support JavaScript (or, as really seems to be the p...more >>

Frames
Posted by Aras Kucinskas at 2/8/2005 1:00:31 PM
hello, Is possible to open aspx page in in another frame not using HyperLink? In other words, I want to open some aspx in not in the same frame by pressing Button or LinkButton. Thanks ...more >>

Page Is Loading Twice...
Posted by Art Cabot at 2/8/2005 10:55:02 AM
My page is firing the Page_Load twice on both initial load and on a button click. On the initial load, both times it fires "IsPostback" shows false. On the button clicks, "IsPostback" shows true, which I'd expect, but what could be making Page_Load fire twice? The page is populating a list ...more >>

Treeview onselectedindexchange
Posted by Graeme Coutts at 2/8/2005 2:59:02 AM
I have a IE Treeview and I am trapping the onselectedindexchange event in a JavaScript function by: tree.Attributes.Add("onselectedindexchange",tree.ClientID+"_onchange();"); The JavaScript function simply reads the text of the new selected node and then writes this to a text field. It loo...more >>

ASP.NET html-less pages
Posted by Epetruk at 2/8/2005 12:32:17 AM
Hi, I'm looking for samples of ASP.NET projects where the programming has been done almost entirely using codebehind and classes with very little code in the aspx files themselves. I would like to be able to write ASP.NET pages where I represented the elements on the page entirely with clas...more >>


DevelopmentNow Blog