Home All Groups Group Topic Archive Search About

ASP.NET web controls

microsoft.public.dotnet.framework.aspnet.webcontrols
Score What is the Equivalent of the CurrentRowIndex Property for a DataGrid Web Control?
.NETn00b - 26 Nov 2005 8:00 PM - 2 messages
I am trying to convert the following windows app method, to use in an ASP.NET application: private void DataGrid1_CurrentCellChanged(object sender, EventArgs e) {      int c = DataGrid1.CurrentRowIndex;      DataGrid1.Select(c);      DataGrid1_Click( sender,  e); ...
Score DropDownList Value
Joe Reiss - 26 Nov 2005 7:25 PM - 3 messages
Hi All, How do I get the value of the DataValueField that is selected.  I don't want the SelectedValue I want the actual field value. So, if I display Staff Names within the drop down list, I don't want the ...
Score Setting focus to TextBox
Simon Cheng - 26 Nov 2005 5:14 AM - 3 messages
Hi,, Is there a way to set focus to an System.Web.UI.WebControls.TextBox control on a web form? The class doesn't seem to provide such facility? Basically I want to set input cursor to a TextBox when the page is first loaded or after ...
Score Server Control - object not saved when button clicked
Gellert - 25 Nov 2005 11:47 PM - 5 messages
Hello, I am trying to create a server control with some radiobuttons (will be a survey control). If a radiobutton is clicked (SelectedChanged) then the attribute "selectedValue" should be set to the id of the radiobutton.... so far, there is no problem..... but when i press the submit button at the end ...
Score custom control client values gone with postback
Pipo - 25 Nov 2005 3:48 PM - 10 messages
Hi, I'm trying to make my own web custom control. I've made a control with 2 textboxes and 1 dropdownlist. But when I enter values in them and get a postback the values are gone. How can I hold the values typed in by the client?? ...
Score Mouseover, mouseout, click etc on datagrid.
johnnydublin - 25 Nov 2005 10:50 AM - 2 messages
Hi there, Does anyone know of a way that I can specify javascript functions that are to be run when a cell is clicked, mouse over etc in a datagrid without attaching the function to every single cell? I have a diary view with resources across the top and times down the X ...
Score DataList Issue
Sam Solomon - 25 Nov 2005 10:11 AM - 2 messages
Dear All, I am trying to retrieve the value of a DataList cell in a label and  assign it to a Session Variable. For this purpose I am using a method : private void OpenForm(object aDate,object aScore,DataListCommandEventArgs f) ...
Score Mailto Link in Gridview
Wayne Wengert - 25 Nov 2005 8:46 AM - 3 messages
I am using Visual Web Developer 2005 (VB) and have a Gridview bound to a SQL view which includes a field with an email address. I'd like to make that field a "mailto:" type link to allow the user to click on it and open a new ...
Score TableAdapter Scalar or "Single Value" Queries
Fred Taylor - 23 Nov 2005 9:21 PM - 2 messages
How do you specify the data type of the return value of Scalar queries in Visual Web Developer through the IDE? Sometimes VWD gets it right, but most of the time it specifies the type as "Object". To work around this, I have to manually change the ScalarCallRetval ...
Score Problems with Custom Web Controls in VS 2005
DudeBori82 - 23 Nov 2005 8:57 PM - 2 messages
I'm creating a text box control which inherits a base control which supplies a table layout and a label for the textbox. I've got it to work decent so far, except for an error that happens sparatically with ...
Score Time textbox control
Pipo - 23 Nov 2005 7:20 PM - 2 messages
Hi all, I need a 'time'-textbox control. So that the user can only fill in a time with a time format (hh:mm:ss) Preferabel without a postback. Is it also possible to get the clients time in UTC and his offset? ...
Score Cool Web Parts?
Paul Hale - 23 Nov 2005 6:33 PM - 8 messages
My current project utilises web parts. I've got them working fine however they look a bit, well, naff. I'm a developer as opposed to a web designer but im sure there must be something I can do to freshen them up. I had a ...
Score Newbie - question concerning page behaviour
Griff - 23 Nov 2005 12:36 PM - 4 messages
Not sure that the subject adequately defines my question, but here goes. I have a CLASSIC asp web site that contains FRAMES.  In my left-hand frame I have a navigational menu.  What navigation items are displayed depend upon ...
Score regular expression
Murali - 22 Nov 2005 8:10 PM - 2 messages
hi everybody, i need a help from someone who knows regular expression. i need a Regular expression for accepting atleast 1 digit and atmost 3 digits i have tried with [0-9]{3} and \d{1,3} but both the expression is returning ...
Score FormView DateTime bug??
Karl-Inge Reknes - 22 Nov 2005 6:59 PM - 3 messages
Hello, I have a formview control with an objectdatasource to control update and insert operations. One field is a DateTime. After click Edit follow by Update, day and month changes. Example: 01.12.1990 becomes 12.01.1990 after Update. ...
Score One comment about the implementation of Session
antonyliu2002 - 22 Nov 2005 5:37 PM - 4 messages
I think it is a bad idea to implement session as a bag of string pairs. That is, it is not a good idea to force both a key and its value to be of type String. It has no problem for most web controls.  For example, for TextBox(es), ...
Score Strange temporary error after applying .Net SP1
Jacob Colding - 22 Nov 2005 4:05 PM - 2 messages
Hi all, A couple of days ago, my hosting provider upgraded the .Net framework to .Net 1.1 SP1. Since then I am experincing strange errors: some of the aspx pages suddenly an exception on the initial pageload (se stacktrace below). ...
Score DataList Cell text
Sam Solomon - 22 Nov 2005 3:21 PM - 2 messages
Dear All, Can some 1 plz tell me how to retrieve the text from  the cell of  DataList ?? cheers, Sam Solomon. ...
Score problem with the AutoPostBack property
Mariame - 22 Nov 2005 12:02 PM - 2 messages
I'm making web pages using VB.Net , the problem is, the AutoPostBack property of a texbox works only when i press tab, i want it to work when i press enter instead . . . this is because i'm usisg a barcode reader that reads barcodes directly in ...
Score Microsoft Spreadsheet Control?
TCook - 22 Nov 2005 2:08 AM - 5 messages
Hello All, I am building a Windows application and I am considering using the Microsoft Spreadsheet Control.  The application will be written in C#. The above said, I was wondering if users will need MS Excel installed on their machines in order for the control to work? ...
Score Single Logon
Thom Little - 21 Nov 2005 10:19 PM - 4 messages
The following will download every file in a remote directory ...     public void DownloadDirectory(string strAddress, string strUsername, string strPassword )    {    FtpWebRequest req = (FtpWebRequest)WebRequest.Create(c_strFtp + strAddress );    req.Credentials = new NetworkCredential(strUsername, strPassword ); ...
Score GridView EnableSortingAndPagingCallbacks
swesorick - 21 Nov 2005 8:02 PM - 2 messages
I'm trying to figure out the Sorting and PagingCallbacks in the asp.Net 2.0 GridView Control.  Whenever I set EnableSortingAndPagingCallbacks to true, I cannot get sorting to work.  Paging works, but not sorting. click on a sorting link or paging link. ...
Score .NET 2 Custom Control question
ME - 21 Nov 2005 5:49 PM - 2 messages
I am trying to write my first site using .NET 2.  I need a control that will list several links to pages in a table (a simple nav control).  The table must have about 3 Columns and about 4 rows (or more depending on the amount ...
Score How to Address Other Controls' IDs?
Axel Dahmen - 21 Nov 2005 4:30 PM - 5 messages
Hi, I've created a User Defined Control (.cs class) using JavaScript to address another control. This only works when my UDC resides on the .aspx page itself. If I add it to a Web User Control (.ascx), the target control's ID ...
Score Custom dropdownlist that displays a listbox
Peter S. - 21 Nov 2005 1:46 PM - 5 messages
This is driving me crazy, I am trying to build a custom dropdownlist that when rendered also displays a listbox next to it. I am going to use the listbox as a repository for items that are selected when accessing the dropdown. I did ...
Score Using DataList - table and headers
Mirek Endys - 21 Nov 2005 10:35 AM - 3 messages
Hello, Im often use DataList for viewing and editing datas. For better layout controling, I create a table in the template and there I put other controls or binding data into table cells. Sometimes, I would use the HeaderTemplate as header of my table (in ...
Score DataItem in DataListItem is null.
Mirek Endys - 21 Nov 2005 9:01 AM - 2 messages
Hello, the problem I have now, is: Im binding generic collection based on List<iDB2SQLTransferItem> // iDB2SQLTransferItem is my class // into WebCOntrol DataList. But the DataItem of the DataListCommandEventArgs is null. Here is my code: private MyData.iDB2SQLTransfers transfers = null; ...
Score Output the HTML contents of a dynamically created control
Oguzhan Filizlibay - 20 Nov 2005 2:09 PM - 3 messages
Hi all, I am trying to dynamically generate an Email message. I have a function that dynamically generates the table, rows and cells and the text. After I finish with that, I want to output the HTML contents of the ...
Next »