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
all groups > asp.net webcontrols > november 2005

Filter by week: 1 2 3 4 5

DropDownList resets in ASP.NET2.0
Posted by conset23 at 11/30/2005 8:09:29 PM
after filing DropDownList, i click on Imagebutton, and DropDownList resets like i reinicialize it. This occurs even if DropDownList filing perfors once. EnableViewState is set to true. Any sugestions? ...more >>


Losing Session Values
Posted by ruca at 11/30/2005 3:48:04 PM
Hi, I have a question for you all... I have two pages, where one it's for user fill some fields information and the second page ia a confirmation page. Here I have a problem, I'm using session variables to pass some values from one page to another. The problem is that some times (yes, I...more >>

gridview.boundfield.dataformatstring doesn't work
Posted by Abraham Andres Luna at 11/30/2005 2:14:46 PM
i tried the following code: <asp:gridview id="gvRDK" runat="server" autogeneratecolumns="false"> <columns> <asp:Boundfield DataField="DateCreate" DataFormatString="DateCreate: {0:d}" HeaderText="Date Created:" /> </columns> </asp:gridview> but i got the following output: Dat...more >>

Lost with User Controls
Posted by larry at 11/30/2005 1:41:55 PM
Hi, I'm a newbie to ASP.NET. I'm having difficulty create user controls in Visual Studio.NET. I have tried to use the User Control template provided by Visual Studio.NET but the intellisense won't let me use basic UI controls. So far to create User Controls, I have been creating web forms ...more >>

issues using webbrowser in a service
Posted by ScottLR at 11/30/2005 12:01:40 PM
Hello, I am using the Webrowser control in an mfc application. It succeeds when run as an application but not when run from a service that allows the user to interact with the desktop: I invoke Navigate. I catch the DownloadComplete event. I successfully call get_LocationURL and retr...more >>

Checkbox and Javascript
Posted by tabbykitty at 11/30/2005 6:52:39 AM
Hi there I have created a record update form. All of the controls are databound. One of the controls on the form is a checkbox and determines whether the record is 'Active' or not. What i want to happen is that when the checkbox is checked (or unchecked), that another field on my form (Start...more >>

Pls help me
Posted by cjcool at 11/30/2005 4:22:18 AM
I just installed dot net frame work but when i try to open a new web project it prompt that the IIS Server error Internal server error, how can i get over with this problem pls help me............ -- cjcool ------------------------------------------------------------------------ Po...more >>

BoundField and DataFormatString in ASP.NET 2.0 - Bug ?
Posted by Ing. Winkler Bernhard at 11/30/2005 1:11:08 AM
Hello all, I found an interesting phenomenon with an incorrect interpretation of the DataFormatString in a BoundField in ASP.NET 2.0. In the example below the prices 4, 5, 6 and 7 should all be equally formatted with the Euro sign and 2 decimal digits. That is done as expected with the .NET...more >>



VS2005 DataList with Nested GridView using ObjectDataSource
Posted by Sam Loveridge at 11/30/2005 12:00:00 AM
Hi All. I have been loving the easy binding of a straight forward GridView directly to a web service method using the ObjectDataSource, however I've come into a tangle trying to apply a more complex binding solution with a DataList. Let's say the simple method described above is a full lis...more >>

Custom control that ingerits from textbox
Posted by Warren Patterson at 11/30/2005 12:00:00 AM
Hi Guys, I have a huge problem....I think. I have created a control called Textbox2 which basically inherits from Textbox. Now my problem is this. The Textbox2 retains its state when I submit a form and it posts back. However when I place a Textbox2 in the footer of a gridview, it lose...more >>

asp mobile.net : infinite loop error
Posted by SJ at 11/29/2005 7:41:23 PM
I'm developing a WAP client which presently works fine on most mobile phone browsers, but gives me an Infinite loop error (error 1025) when i try to access it from a couple of phones(motorola for instance.) Any idea why the WAP client will work with some phones but give this infinite loop error...more >>

GridView whole row select
Posted by p3t3r at 11/29/2005 6:09:03 PM
In .NET 1.x it was possible to add an onclick callback to invoke the selection of a row in the grid providing there was a Select command. This still works in .NET 2.0 but now the cell with the Select command must be visible. The users are accustomed to being able to select without seeing an...more >>

Problem with Custom Web Controls in Visual Studio 2005
Posted by swesorick NO[at]SPAM gmail.com at 11/29/2005 11:04:22 AM
So, I have a custom web control that inherits from the standard asp.net Textbox control. When I add this control to my web page in Visual Studio 2005, I get the following errors in my Error List: Error 1 Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2...more >>

Problem with delete in FormView control
Posted by Karl-Inge Reknes at 11/29/2005 5:50:07 AM
I use FormView to View, Edit and Insert customers details. The formview control is connected to a Object (ObjectDataSource), CustomManager. The Object, CustomManager, have method for select, update, insert and delete. Select, update and insert works, but delete dos not. Can anybody help m...more >>

Validators in composite control firing prematurely
Posted by Brad at 11/28/2005 5:43:10 PM
I have a custom composite control with some text boxes, which have validators (requiredfieldvalidators + regularexpression validators). The problem is the validators are working to well and seem to be firing even on a postback which is set to not cause validation.....and the postback correc...more >>

datagrid pixel height not respected
Posted by TS at 11/28/2005 11:01:35 AM
I have a datagrid that i have set the height to. Its table that it is contained in does not have the height set. It seems that no matter what i put in this property for the datagrid, the height never changes. thanks ...more >>

::help!: UC changes in designer
Posted by Gellert at 11/28/2005 8:59:07 AM
Hello again, Hope somebody can help me. I wrote an User Control whicj I trag and drop on my aspx in the visual studio: see here: http://www.uni4um.at/help1.jpg the HTML code looks like this: <cc1:MatrixQuestion ID="MatrixQuestion1" runat="server"> </cc1:MatrixQuestion> and the cont...more >>

ReadOnly (HTML) controls to stay black and not grey
Posted by NO[at]SPAM at 11/28/2005 8:35:01 AM
I have a panel that I am using to display several server side controls. I am attempting to make some of the (HTML) controls readonly without getting the light grey effect that is hard to read and is almost unreadable when you print it. I would like the forecolor for my ReadOnly controls to ...more >>

Web calendar control of HebrewCalendar displayed in English - how?
Posted by isrsal NO[at]SPAM gmail.com at 11/28/2005 8:29:15 AM
I want to present a web calendar that is based on the Hebrew calendar but presented in English (the logic of the calendar should be the Hebrew calendar, but the name of the months and days should be transliterated in English instead of spelling them in Hebrew - e.g. Tishrei 1, Tishrei 2, Cheshva...more >>

Dynamic user control Event Handling (VS.NET Ent 2003)
Posted by Developer_Software at 11/28/2005 8:24:05 AM
Thanks in advance to anyone who can help :) I've got a placeholder control WITHIN A USER CONTROL that has its contents dynamically added and removed at runtime by a regular .aspx page. At runtime, the placeholder control adds a dropdownlist where I would like it to redirect the user to a...more >>

TreeView Control
Posted by lwhitb1 at 11/28/2005 7:50:02 AM
I am using a TreeView Control inside a master page template. I am populating the TreeView control with items from a database. What I would like to do is figure out a way to keep track of the items the user has previously selected. The problem is that there is another menu bar on the top of my we...more >>

Usercontrol - Problem in Designer
Posted by Gellert at 11/28/2005 6:07:05 AM
Hello, I made an UserControl, when I drag and drop it into my webform i see the following: [MatrixQuestion "MatrixQuestion"] on my designer. If I switch to the HTML Source I see this: <cc1:MatrixQuestion ID="MatrixQuestion1" runat="server"> </cc1:MatrixQuestion> so... when I chang...more >>

repost: custom control client values gone with postback -- no solution found...
Posted by Pipo at 11/27/2005 10:02:54 PM
Nobody knows how to get the values provided in the client can be read in the user-control? If have made a Web Custom Control with 2 textboxes and 1 dropdownlist. The user fills in my control (the textboxes and the dropdownlist) and lots more stuff on the page. When the user wants to save the ...more >>

How to cycle through checkboxes in a datagrid and find out which ones are checked?
Posted by Tim Zych at 11/27/2005 7:17:34 PM
I am trying to add a repeating checkbox to a datagrid and have some code that can cycle through them and associate them with each row in the data grid. I was able to add the checkbox and I can see them, but I can't get a handle on any of them when I cycle through them. Here's what I have to...more >>

POP-before-SMPT
Posted by Simon Cheng at 11/27/2005 3:44:50 PM
Hi, I am using the following C# code to send emails from my website hosted by an ISV: System.Web.Mail.MailMessage mm = new System.Web.Mail.MailMessage(); mm.To = "xxx"; mm.From = "xxx"; mm.Subject = "xxx"; mm.Body = "xxx"; System.Web.Mail.SmtpMail.SmtpServer = "mail.seattledaohome.org...more >>

VS2005 C# is very BUGGY, please hlp
Posted by Rob Dob at 11/27/2005 2:23:44 PM
Hi, I'm amazed!!! I am using VS2005, I create a new web project, c# and then within the default.aspx form right mouse click and select "View Compnent Designer" , I then select and drag a SQLDataAdapter onto the designer. I then go through the wizard and create SQL Query. I then comp...more >>

Help on rendering a control from page ???
Posted by serge calderara at 11/27/2005 8:29:03 AM
Dear all, I get a control named CTRLA in an Assembly. the name space in the assembly is "Test" . my control is defined as follow in my page : <%@ Tagprefix="MycontrolLib" namesapce="Test" Assembly="myAssembly" What is the correct way to render that control on my page : <MycontrolLib:CTRLA...more >>

Maintaining "id" attribute value in server controls
Posted by markarichman NO[at]SPAM gmail.com at 11/27/2005 3:47:55 AM
Because of my CSS selectors, I need to maintain the "id" attribute's value for a server control. The control is as follows: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="NavControl.ascx.cs" Inherits="NavControl" %> <ul id="nav" runat="server"> <li>...</li> <li>...</li> ...more >>

DropDownList Value
Posted by Joe Reiss at 11/26/2005 2:25:01 PM
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 Staff Name, I want the StaffID which is the value contained in the DataValueField...more >>

What is the Equivalent of the CurrentRowIndex Property for a DataGrid Web Control?
Posted by .NETn00b at 11/26/2005 12:00:52 PM
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); } The problem is tha...more >>

Setting focus to TextBox
Posted by Simon Cheng at 11/25/2005 9:14:05 PM
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 the user submit invalid data. Thanks, - Simon ...more >>

Server Control - object not saved when button clicked
Posted by Gellert at 11/25/2005 3:47:44 PM
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 ...more >>

WebControls.Image without border-width:0px;
Posted by Steve NO[at]SPAM somewhere.com at 11/25/2005 5:35:12 AM
Hi all, I create an image in my code Image image = new Image(); and then add a Css Style image.CssStyle = "MyImageStyle"; The CssStyle defined includes border widths ..MyImageStyle { border-right: lightgrey 1px solid; border-top: lightgrey 1px solid; border-left: lightgre...more >>

Mouseover, mouseout, click etc on datagrid.
Posted by johnnydublin NO[at]SPAM gmail.com at 11/25/2005 2:50:55 AM
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 axis which means it c...more >>

DataList Issue
Posted by Sam Solomon at 11/25/2005 2:11:04 AM
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) { aDate=(((Label)f.Item.FindControl("lblActivityDate"))....more >>

Mailto Link in Gridview
Posted by Wayne Wengert at 11/25/2005 1:46:55 AM
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 email to that address. Can anyone point me to some information on ho...more >>

custom control client values gone with postback
Posted by Pipo at 11/25/2005 12:00:00 AM
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?? (for processing on the server but also to display them back) ...more >>

asp.net 2.0 datalist paging.
Posted by thomassol NO[at]SPAM gmail.com at 11/24/2005 2:09:49 PM
Hi guys. Is there someone who has an example of how to create paging on a datalist, using the .net 2.0 framework. Im binding the datagrid to an SQLdatasource. I can only find 1.1 examples, that uses the pageddatasource class? Please any1 ? Regards Thomas Christensen ...more >>

Accessing custom control's ID in contstructor
Posted by Sosh at 11/24/2005 12:00:00 AM
Hi, I have created a custom control that is derived from TextBox. In the control's contstructor I set an attribute which needs to contain the ID of the control. However when I access this.ID, I get a blank string. The control is being added declaratively in the aspx file. Is the ID not ...more >>

TableAdapter Scalar or "Single Value" Queries
Posted by Fred Taylor at 11/23/2005 9:21:26 PM
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 attribute value from Syste...more >>

Time textbox control
Posted by Pipo at 11/23/2005 8:20:13 PM
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? Also the same with a date? tia ...more >>

Cool Web Parts?
Posted by Paul Hale at 11/23/2005 6:33:42 PM
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 look at "my MSN Space" via MSN Messenger which uses web parts and they lo...more >>

Problems with Custom Web Controls in VS 2005
Posted by DudeBori82 NO[at]SPAM gmail.com at 11/23/2005 12:57:42 PM
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 the web control. I'll add the custom control to the webform from the toolbar, set some pr...more >>

Newbie - question concerning page behaviour
Posted by Griff at 11/23/2005 12:00:00 AM
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 the identity of the user using the system (they have to log on first...more >>

regular expression
Posted by Murali at 11/22/2005 8:10:11 PM
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 true for IsValid Property of Regular Expression even if values are ...more >>

FormView DateTime bug??
Posted by Karl-Inge Reknes at 11/22/2005 10:59:08 AM
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. What are I’m doing wrong? ...more >>

One comment about the implementation of Session
Posted by antonyliu2002 NO[at]SPAM yahoo.com at 11/22/2005 9:37:00 AM
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), we can have the following in the session bag: "txtFirstName...more >>

Strange temporary error after applying .Net SP1
Posted by Jacob Colding at 11/22/2005 8:05:09 AM
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). The error is temporary and can be resolved by restarting IIS...more >>

DataList Cell text
Posted by Sam Solomon at 11/22/2005 7:21:10 AM
Dear All, Can some 1 plz tell me how to retrieve the text from the cell of DataList ?? cheers, Sam Solomon. ...more >>

problem with the AutoPostBack property
Posted by Mariame at 11/22/2005 12:00:00 AM
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 the textbox, but the codes are read followed by ...more >>


DevelopmentNow Blog