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
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 > april 2006 > threads for sunday april 23

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Iterate through page controls
Posted by Avon at 4/23/2006 10:33:06 PM
Hi friends, I need of some help, I have this code: For Each t As TextBox In Page.Controls ' here is the error t.Text = "test" Next But I am getting this error: Unable to cast object of type 'ASP.masterpages_maindesign_master' to type 'System.Web.UI.WebControls.T...more >>

Two resource file for one single culture
Posted by pradeep_TP at 4/23/2006 10:16:02 PM
Hello, I want to know whether it is possible to have two sets of resource file one single culture in ASP.net 2.0. I have a project in which there are two clients from Germany. I want to share the common code base between these two clients. I need to keep two separate resource files that wil...more >>

Try - Catch
Posted by Jim McGivney at 4/23/2006 8:04:14 PM
In VWD I have an aspx page with a detailsview tied into a gridview for a Master-Detail page. I make one of the detailsview fields (the race field) a template field. On the EditItem template I replace the text box with a DropDownList. This all works fine until a record is selected with a val...more >>

Debuggin classic ASP with Visual Web Developer Express
Posted by bostonguy NO[at]SPAM gmail.com at 4/23/2006 7:45:35 PM
Anyone know how to do it? I have found articles that explain how to do it using VS.NET 2003, but not Visual Web Developer Express. Thanks in advance for your help. Michael ...more >>

Submit button function to update all GridView checkboxfields
Posted by dba123 at 4/23/2006 7:43:02 PM
How do I take my GridView and create a function that will update -all- checkbox values for the submit button's OnClick event? I have posted both my SQLDataSource and my GridView below: <asp:SqlDataSource ID="ds_dashboard" runat="server" Conne...more >>

window.status
Posted by Bruno Alexandre at 4/23/2006 7:38:04 PM
Hi guys, in the old days we use this script to delete the link address when the user passed the mouse under a link: <a href="...." onmouseover="javascript:window.status='';">link</a> in ASP.NET 2.0 how can I do this programatically for all links, instead do it for every link? is ther...more >>

server application unavailable
Posted by casper at 4/23/2006 7:04:30 PM
Hi, I created an asp.net 2.0 website with VWD and made it an application in IIS. It was created on a ntfs disc (my documents...). The directory permissions are set on 'anonymous allowed' using IUSR_MYSERVER, which has read/list permissions to the apllication directory. When i start it fro...more >>

ASP.NET Website Project
Posted by coosa at 4/23/2006 6:18:15 PM
Dear all, When i create a website using Visual Studio 2005 i have an option to choose based on the local file system or the http:// address; For the local file system, when i later run my web site, the asp.net development server starts and it assigns a random port to the web server while for ...more >>



Second Dropdownlist caused formview to fail
Posted by PW at 4/23/2006 4:18:01 PM
I'm seeing the (now famous) error when adding the second dropdownlist to the formview. Thank you Mr. Phillip Williams for posting a workaround to this error on your web site at: http://www.webswapp.com/codesamples/aspnet20/dependentlists/default.aspx But... I'm a little annoyed that this...more >>

How to pass a postedfile to a system.drawing.image
Posted by Darrel at 4/23/2006 4:16:35 PM
I'm grabbing a file from a file upload form field. This is a 'system.web.httppostedfile' I would like to modify the image (Cropping/scaling) using system.drawing.image. Is there anyway to go from 'system.web.httppostedfile' directly to 'system.drawing.image'? Normally, I'd grab the Sy...more >>

Smart or stupid? Tying textbox length to database column length
Posted by Dan Manes at 4/23/2006 3:33:34 PM
Wondering what other people do about this issue... You're writing a web app in asp.net that requires user input. Data will be stored in SQL Server Express database. You want to make sure data does not exceed maximum length for database column. For example, "User Name" column in database is s...more >>

Cropping an image
Posted by Darrel at 4/23/2006 2:34:22 PM
I've been trying to figure out how to crop an image. I found the sample code below, but I'm not exactly sure what it's doing. I've added my own comments as best I can trying to explain what I think it's doing. Can anyone clarify this for me? ' I think this takes my current image (g) and the...more >>

Page.IsValid is false?
Posted by js at 4/23/2006 2:22:38 PM
Hi, I have a text box and DropDownList control and a validation control, When user entering a number in the text box, based on the entered number, the dropdrownlist value will change (document.getElementById('dnn_ctr-1_Register_ddReferral').value = document.getElementById("dnn_ctr-1_Registe...more >>

ASP.NET and database question
Posted by yossimotro NO[at]SPAM gmail.com at 4/23/2006 1:42:47 PM
Hi, I've been using asp.net's Repeater and SqlDataSource tools to display data from a database. One of the fields contains a number which represents the number of images i need to display. What I was trying to do is to write a function that will receive this number and add %number% image tag...more >>

Why ddlUser_SelectedIndexChanged() event did not work?
Posted by Andrew at 4/23/2006 1:22:01 PM
Hello, friends, In my asp.net 1.1 app, I had a dropdownlist web control. It was populated with user names. I then implemented its private void ddlUser_SelectedIndexChanged(object sender, System.EventArgs e) event. In this event, based on user's selection, all available items for this ...more >>

how to add "" value to it
Posted by js at 4/23/2006 1:18:43 PM
Hi, I have a DropDownList control called ddReferral. I want to add a item to it: ddReferral.Items.Insert(0, "<Not Specified>") but I found the output html has <<Not Specified>> as it's item value, how to assign an empty value to it? many thanks. ...more >>

How to persist a GridView header when control contains no row data
Posted by keithb at 4/23/2006 12:49:38 PM
Is there some way to persist the header when a GridView control has no rows containing data? Thanks, Keith ...more >>

adding an attribute to a htmltextwriter tag.
Posted by Chaprasi at 4/23/2006 12:13:24 PM
Hi, I am new to writing a control sorry if this question was answered. I am writing a control where I override the RenderBeginTag, now in this method I would like to create a DIV tag and add attributes to it. writer.RenderBeginTag(HtmlTextWriterTag.Div); writer.AddAttribute(HtmlTextWriter...more >>

Location of error log file?
Posted by keithb at 4/23/2006 10:28:05 AM
When using the Visual Studio built-in web server, what is the location for the log file used by the following expression? void Application_Error(object sender, EventArgs e) { // log all unhandled errors Utilities.LogError(Server.GetLastError()); } Thanks, Keith ...more >>

validate if dropdownlist is empty
Posted by js at 4/23/2006 10:20:34 AM
hi, how to validate if dropdownlist value is empty? many thanks. ...more >>

Web Hosting Question
Posted by Joe Delphi at 4/23/2006 10:07:55 AM
Hi, Total newbie here. I am developing an ASP.NET web application that will connect to MS SQL Server using the ADO.NET components. Question: What are my requirements for my web hosting company? Most of the web hosting information that I have been able to find says that...more >>

Error: Ambiguous match found.
Posted by Alexandre at 4/23/2006 9:31:01 AM
Hi! I receive this error in my webapp: Ambiguous match found. At line: Line 1: <%@ page language="C#" masterpagefile="~/memberscontents/master_interna.master" autoeventwireup="true" inherits="members_contents_user_profile, App_Web_user_profile.aspx.73f80179" title="Untitled Page" %> ...more >>

adding data...got problem....pls help
Posted by zheetee NO[at]SPAM gmail.com at 4/23/2006 9:21:49 AM
i am beginner to link asp.net and access 2gether i use asp .net matrix...and wrote the Insert data coding Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=C:\Documents an"& _ "d Settings\AliceLee\My Documents\db\equipment.mdb" Dim dbC...more >>

Add web reference question in Visual Studio?
Posted by mph140 at 4/23/2006 6:40:57 AM
Hi, I wonder if someone can help me with this beginner's question. When I add a web referenece to my C# projecct - using Add Web Reference - local machine. where and how does VS search and display those web services? There are some old web services displayed but not valid(I was creating and m...more >>


DevelopmentNow Blog