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 > march 2004 > threads for monday march 8

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 31

Looong start time for ASP.NET application?!
Posted by CBN Media at 3/8/2004 11:10:06 PM
Hi, I created an application which asks for login info for displaying a datagrid from an XML file. It has a simple Forms authentication method with user/pass hardcoded for the moment. The problem that I have is that each time I call the application in the browser (http://localhost/WebApp) ...more >>


Character Sets. Can you tell me what i am doing wrong here? Thank You.
Posted by Miguel Dias Moura at 3/8/2004 10:32:15 PM
Hello, i had problems in my web site with the database and characters such as "é", "?", "á", etc. The last version of this web site was in standard ASP and everything was ok. Anyway, somebody told me that the problem was in the default enconding of ASP.net which was UTF-8. I added the ...more >>

Compare String question: == or String.Compare?
Posted by Blue Ball at 3/8/2004 8:43:55 PM
Is it always safe to use == to compare String? e.g. if (my_str == "test") { } or is it better to use: if (String.Compare(my_str, "test") == 0) { } In old ASP, I remembered that there was slightly difference between the operator compare and function compare. Can anyone confirm if I can...more >>

Regular Expression for Credit Card
Posted by SamIAm at 3/8/2004 8:43:26 PM
Does anyone have one? Thanks, S ...more >>

template column generation problem
Posted by KK at 3/8/2004 7:32:30 PM
Hi I am showing some data in the datagrid. I also have a template column. Inside that template column I am going to show 1 to 5 link buttons. The problem i am having is, like in the traditional ASP, can I use <%%> script blocks as below ? <datagrid> <....> <asp:TemplateColumn>........more >>

Grid Upate Problem
Posted by reddyvsk NO[at]SPAM yahoo.com at 3/8/2004 6:57:10 PM
I am using a simple grid with 4 columns column0 int identity column1 varchar i am using the following code Private Sub kbGrid_UpdateCommand(s As Object, e As DataGridCommandEventArgs) Dim MyCommand As SqlCommand Dim strConn As New SqlConnection("****") Dim id as TextBox = E.It...more >>

Viewstate - Structures
Posted by Me_Titus at 3/8/2004 6:51:07 PM
Does anybody know how to store structures in the viewstate: </CODE public structure ca public brand as strin public hp as intege end structur </CODE I tried this: <CODE viewstate("Car") = ca </CODE But it didnt work. Thanks in advance, Marco...more >>

What do you find difficult in ASP.net?
Posted by Chad Z. Hower aka Kudzu at 3/8/2004 6:38:18 PM
What things do you find about ASP.net to be difficult? ie Items that are on a regular basis "in your way" that you would like to see done better? -- Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/ "Programming is an art form that fights back"...more >>



Best Practices for File Access
Posted by DavidElliott NO[at]SPAM nospam.BellSouth.net at 3/8/2004 6:29:40 PM
I am trying to do File Access for an ASP.NET project and am having some difficulty. I was wondering if a document on Best Practice for File Access exists somewhere. Scenerios I am looking to solve. 1) Attach an XML file to a WebControl TreeView 2) Anonymous access for pictures a) That ...more >>

Buggy .NET
Posted by at 3/8/2004 6:28:18 PM
I have created a simple stored proc to ATTACH / DETACH a DB from SQL, but it fails to work if I use ASP.NET to do any other DB stuff on the table. ASP.NET establishes a connection with SQL server and WILL NOT release it, and of course I can't detach the DB because ASP.NET is still using it. It ...more >>

render blocks
Posted by Temo at 3/8/2004 6:03:14 PM
Can someone tell me what's wrong with using this to create a textbox? <% int width=100; %> <asp:TextBox runat="server" id="boom" width="<%=width%>"></asp:TextBox> Thanks, Temo -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/...more >>

Best strategy on storing files on server
Posted by NWx at 3/8/2004 5:56:51 PM
Hi, I have an application who require to let users to upload files on server, and "link" them to some other database records (projects, which allow user to attach files to them) How is the best strategy to store them on web server? Should I store them in SQL server database, or as files o...more >>

Use of calendar web control
Posted by Lloyd Sheen at 3/8/2004 5:46:33 PM
I am having a problem with the month/day settings of the calendar control. I have a SQL Server 2000 providing a date which is displayed in a text box correctly. There is a button beside the textbox to allow the user to popup the calendar control. There are 2 problems. 1. The month/date ...more >>

passing server controls to child windows
Posted by Jeremy Ames at 3/8/2004 4:46:36 PM
I have been trying to pass values from a parent web form to the child form. I have been trying to Context.Handler but I keep getting an invalid type cast when I try to cast it to the parent form class. I can receive the parent form values on the client side, but I need to get the values before t...more >>

Easy Frames Question
Posted by Verde at 3/8/2004 4:37:58 PM
I have a "page" comprised of 3 frames - top, bottom left, and bottom right (A, B, and C). From C (bottom right), I have a button (within a <form>), that when clicked causes a bunch of stuff to happen in a database during postback - no problem. What I want is for the last part of that postback ...more >>

Adding HTMLAnchor
Posted by Yama at 3/8/2004 4:36:06 PM
Hello all, I would like to add links dynamically as well as capture their ServerClick event deriving them from a table. How can I do that? Here is what it would look like if I were to hard code it: <tr><td bgcolor="#ffffff" height="17"><img height="7" src="../ReportsImages/navlink.gif" width="...more >>

Passing arguments from an image map
Posted by Jon Cosby at 3/8/2004 4:34:46 PM
How can I pass arguments from an image map to cs code? I want display information on the map area based on a query. Jon Cosby ...more >>

Close form
Posted by Diane Bartholow at 3/8/2004 4:22:40 PM
I am going to hate myself when someone answers this. I have an asp.net form for a quiz. I need to have a close button other than the obvious x in the upper right. What is the syntax for closing a browser window from an asp.net page.I am using code-behind. To use window.close do I need to import a...more >>

Request.Cookies[][] exceptions
Posted by Brett Robichaud at 3/8/2004 4:19:15 PM
When I check for a cookie in C# with this type of syntax: string sID = Request.Cookies["User"]["ID"]; an exception is thrown if the cookie doesn't exist. Is there any way around that, or some way to see if the cookie exists beforehand? I need to load a dozen or so cookies, some of which w...more >>

Wild Card Search Problem
Posted by Steve Bishop at 3/8/2004 3:58:56 PM
I using a text box on my form to enter search criteria. How would I get a subset of records based on the first 3 characters the user types. In SQL, I can use "Like field%". I'm having trouble using something like this with the variable in my code. Help appreciated. Thanks: public function GetC...more >>

Read Only CheckboxLists/Radiobuttonlists
Posted by KW at 3/8/2004 3:55:49 PM
Is there any way in ASP.NET (besides for setting enabled = false) to make a checkboxlist and radiobuttonlist readonly? This would be similar to making a text box readonly. I don't want the users to be able to change what boxes are checked (for reporting purposes). Any help would be apprecia...more >>

"Session state can only be used when enableSessionState is set to true"
Posted by Bret at 3/8/2004 3:51:07 PM
I have a page that performs a number of tasks and runs awhile. I have successfully used threads to launch a long-running process and provide a periodic update ("Now processing x...") on a destination page in previous cases, but for some reason, this technique is not working for me now. Here's the co...more >>

Get the current HttpResponse
Posted by Brett Robichaud at 3/8/2004 3:50:31 PM
Is there any way to get the current HttpResponse object other than directly from the current Page? I'm creating a class that will use Response methods in a few small situations and I don't want to have to pass it the current page. I'm looking for something that can give me the current page at...more >>

Accessing listbox info from javascript
Posted by Nevyn Twyll at 3/8/2004 3:35:35 PM
I've got an asp.net page with C# code-behind. On the page, I have a multi-select listbox. The listbox can't do roundtrips as the use selects and deselects items. I want to have a hyperlink (or button /etc.) that pops up a NEW WINDOW with the IDs of the selected items in the listbox as paramet...more >>

databound drop-down-lists: extra items?
Posted by Lauchlan M at 3/8/2004 3:12:21 PM
Hi I have a drop down list, populated from a dataset from a table in a database. Say the table was called Locations with fields LocationName and LocationID, and I was using LocationName for the drop down text and LocationID for the drop down value. Now I could select Locations with my dr...more >>

Out of memory error
Posted by Schoo at 3/8/2004 2:58:52 PM
I have a simple ASPX page that uses 'response.write' to take data from a dataset, scroll through it and write it back to the page as HTML. This works just great, until you get too many records in the dataset (it fails when there is about 575 records in the dataset). The application event log o...more >>

Using the Shell function in a web application
Posted by Eric Caron at 3/8/2004 2:37:35 PM
Hi all, I'm trying to automate some tasks on a server in our intranet by using a web application. I already have a batch script that registers a DLL passed as a parameter on the command line. I'd like to be able to first copy a file from a shared location to the root of the c:\ drive, then c...more >>

web.config's session timeout doesn't take effect
Posted by feng at 3/8/2004 2:31:47 PM
I have two web servers both running the same ASP.Net app. I made sure that they both have the same machine.config and web.config. The session timeout setting on both server are set at 10 minutes. The thing that I don't understand is that while one of them times out after 10 minitues of ide...more >>

"String" vs "string"?
Posted by Jacob at 3/8/2004 2:02:11 PM
I've been programming WinForms for over a year, so you can spare me the explanation for dummies. I know that "string" is a keyword for "String" as is "int" for "Int32", and "object" for "Object". But, why do I always see the fully qualified names in ASP.NET applications? Why not use the keywo...more >>

formating email body message
Posted by RA at 3/8/2004 1:58:56 PM
Hi If a web server (asp.net) is to send email to client. How can I format the message body so it will show multiple rows of message instead of one long message line. Basically I want the email message to look like formated one with line breaks and more. Thanks ...more >>

Binding data to a DropDownList
Posted by Steven K at 3/8/2004 1:37:56 PM
Hello, I am using the following to bind data from a stored procedure to a DropDownList. The problem I am having is that instead of getting the data, I am getting the text "System.Data.Common.DbDataRecord" for every record, even though if I use a loop, I get the correct information. Dim s...more >>

Problem With the checkbox web control at framwork 1.1
Posted by ns_aver NO[at]SPAM bezeqint.net at 3/8/2004 12:55:53 PM
When adding a asp:checkbox web control to a web form it appears at the client side as a span tag and in it an input tag (typed as a checkbox). When adding an onclick event to that asp:checkbox it appears in the client side in the span tag. that was true for framework 1.0. At framework 1.1 the on...more >>

Databinding drop-down-list component to datareader?
Posted by Lauchlan M at 3/8/2004 12:38:43 PM
Hi I have a drop down list and I want to populate it from a datareader. I have this code << Connection.Open(); dtrHospitalList = Cmd_HospitalList.ExecuteReader(); lstHospital.DataSource = dtrHospitalList; lstHospital.DataBind(); >> There are two problems with this: first...more >>

Let me get this straight..
Posted by George Hester at 3/8/2004 12:17:37 PM
On a Windows 2000 Server Domain Controller SP3 if I install Visual = Studio.NET 2003 (Framework 1.1) then I do NOT have to worry about this = issue: http://support.microsoft.com/default.aspx?scid=3Dkb;[LN];Q315158 Is that correct? --=20 George Hester __________________________________...more >>

"Web server running ASP.NET ver1 .0
Posted by sandman at 3/8/2004 11:51:09 AM
I just installed Visual Studio 2003 over the 2002 version and now I'm getting a Version Mismatch error when I try open a v1.1 C# web project that was created on a different system (and it runs fine over there). The only info I found in the help docs was totally useless and I can't find anything on ...more >>

Disable Edit Column
Posted by hooterbite NO[at]SPAM yahoo.com at 3/8/2004 11:31:49 AM
I would like to disable an edit column. The code I am using is: e.Item.Cells(5).Enabled = False This code greys out the column, but users can still click on it. I have also tried: e.Item.Cells(5).Visible = False, but that messes us the table layout - it created an empty table cell instead of not...more >>

After specified browser activity
Posted by Robert Baker at 3/8/2004 11:24:24 AM
Hello, All! I am seeking the correct technique so that after a specified interval of inactivity the site's users are automatically directed to a login page. Note we are not using integrated security, just a SQL lookup when they log in the 1st time. Thanks, Robert Baker ...more >>

frames w/ .NET
Posted by Mark at 3/8/2004 10:13:26 AM
I know, I know - I can't stand frames either. However, "management" has insisted that one of our intranet sites use frames. The frame will be extremely simple: There will be a static "header" at the top so that if the bottom frame page scrolls off the bottom, you'll still be able to still see ...more >>

Asp + Aspx
Posted by Kiran Math at 3/8/2004 10:04:49 AM
( I am new to asp.net) I have a web application (classical asp) , I wanted to add some new forms and I wanted to do that in asp.net Say I have Form A. ( a.asp) I have a button in there . And on click of the button I wanted to bring up Form B ( b.aspx). Form B has a button too and onclick ...more >>

Error 8004e005
Posted by Sarmad Aljazrawi at 3/8/2004 9:58:25 AM
Hi, Lately i started getting this error message "error '8004e005'" with no error source or description just this number. I tried searching the net with no result. Anyone know what the error number is? thanks, -- Sarmad Aljazrawi B.Sc. Computer Science, MSDBA, MCP www.aljazrawi.net ...more >>

how can webserver konw which ip is visited by client?
Posted by kenwood at 3/8/2004 9:52:46 AM
IPHostEntry ipEntry = Dns.GetHostByName(Dns.GetHostName()); IPAddress[] addr = ipEntry.AddressList; I have 3 network adapters,so the addr has 3 ip address. how can webserver konw which ip is visited by client? ...more >>

Front Controller (FrontController) Implementation
Posted by Wilson at 3/8/2004 9:51:05 AM
I have been trying to implement Front Controller design pattern for web presentation in my ASP.NET project. I designed my entire presentation layer based on this pattern, just to discover that this pattern cannnot be implemented as it is in ASP.NET. In fact, I designed all layers of my application b...more >>

Form questions
Posted by Aaron at 3/8/2004 9:50:37 AM
Please let me know if there is a more appropriate NG for this question. I am building my first ASPX application. I would like to learn how to correctly use the .NET environment to perform a basic sql query. I have created an SqlDataAdpater, SQL Connection, and generated a dataset. It l...more >>

Why do graphics not display
Posted by Amil at 3/8/2004 9:32:51 AM
Seems like if I have a large number of graphics on a page (small ones), many of them don't always get displayed. If I press Refresh once or twice, they eventually get displayed. I'm guessing this is a caching or connection limitation/timeout. Is there a way to control this? Can it be done v...more >>

Submit fails when using Validation Controls
Posted by Andrew Winn at 3/8/2004 9:24:25 AM
Hi, Got a problem with the required validation control not posting back after a valid page is requested to be submitted? I have a login page with the usual Username and Password fields and a login button. Validation control checks that there is something in the fields before allowing ...more >>

DLL output path on the server
Posted by Christina N at 3/8/2004 9:22:30 AM
After I upgraded to Visual Studio .Net 2003, my Asp.net projects compile their DLL's to my local folder only in stead of to the BIN folder on the server where the source files reside (I open the project from the server). So I have to copy the DLL file everytime I compile. How do I get it to use ...more >>

Problems refrencing Request object - urgent!
Posted by terryj NO[at]SPAM acumenassociates.com at 3/8/2004 8:48:28 AM
I just started a new project and I cannot refernce the http Request object. I have done this in other projects on this system, but for some reason when I create a new project .Net does not refernce this properly. I also get the same problem trying to reference the Server object i.e. Server.Mapp...more >>

2nd attempt: ASP:Datagrid and Complex DataKeyfield
Posted by Homer J. Simpson at 3/8/2004 8:29:09 AM
Hi everybody, I wish to declare a complex DataKeyfied within an asp datagrid : I'd like to use it to update a single table, but whose primary key consists of 2 distinct fields (ie: date value + integer). Any ideas about how to specify it ? Thanks in advance J.Philippe ...more >>

OleDbDataAdapter missing data.
Posted by Ginger at 3/8/2004 8:26:05 AM
I am using an OleDbDataAdapter to read an Excel spreadsheet. It appears that the first row returned by OleDbDataAdapter is the second row of the worksheet. Am I doing something wrong ? What happened to the first row ?...more >>

How do you make a single page available without authentication?
Posted by Jerry Camel at 3/8/2004 8:11:47 AM
I'm using forms authentication with <deny users="?" /> in the web config. But, as requested by the powers that be, I've now got a link on my login page that leads to a version history page. I'd like users to be able to get to that page without having to login. I tried putting the file into a s...more >>

Invoking email client application from ASP.NET
Posted by Wilson at 3/8/2004 8:11:05 AM
I want to invoke a email client application such as MS outlook, etc. from a ASP.NET page. When the client app pops up I would like the body of the message to be filled with text of size greater than 3000 characters. I have tried implementing the same using mailto URL but, it wouldn't work if the tex...more >>

Drop Down List Question
Posted by Steve Bishop at 3/8/2004 8:05:03 AM
I am trying to emulate a feature like you would see in a MS Access combo box. What I would really like to do is make select a subset of records based on what the user types in real-time. This would come in handy for searching customer records if I wanted to make a CRM type program for example. ...more >>

What am I doing wrong?
Posted by mmahon NO[at]SPAM austin.rr.com at 3/8/2004 7:04:30 AM
I get the error Object reference not set to an instance of an object. on the Response.Write (ds.Tables("tusers").Rows(0).Item(0)) I know this is an old way to do it but I can't remember how to write a message to the output in VS.NET I think I have the ds instantiating. But I am just screwing u...more >>

Visual Studio.net...is somehow deleting my this.Load +=....?
Posted by DDK at 3/8/2004 6:54:48 AM
Does anyone know why : this.Load += new System.EventHandler(this.Page_Load); gets deleted from the InitializeComponent() I've been finding that this is missing from some of my pages, which makes the pages not work correctly or else unsecure. Any ideas why. Thanks, d. /// <sum...more >>

SmartNavigation, turn off on particular postback
Posted by j_ruez NO[at]SPAM yahoo.com at 3/8/2004 6:49:09 AM
I found this posted back in 2002, but it had no reply. This is exactly what my question is: ---------- From: Jeff Jorczak Subject: SmartNavigation, turn off on particular postback This is the only article in this thread View: Original Format Newsgroups: microsoft.public.dotnet.framewor...more >>

Set focus to web control
Posted by Karen at 3/8/2004 6:21:08 AM
Does anybody know how to set focus to a web control after a page postback? Can this be done? Thanks....more >>

extract data from html and display in a tabular form??
Posted by ricky at 3/8/2004 6:16:07 AM
hello i'm using Server.CreateObject("MSXML2.XMLHTTP") to extract the data from http://fn.yam.com/exchange/ and data looks like 0.542 1.322 112.160 5.305 1.278 1.582 0.809 1.323 33.425 8.277 ?^? 1.844 - 2.438 206.840 9.785 1.863 2.918 1.492 ......, how can i arrange these data in tabular form? any...more >>

can not create codebehind
Posted by Alex at 3/8/2004 5:41:06 AM
I can't create codebehind asp The error is The class file 'webform2.aspx.cs' specified as the codebehind for 'webform2.aspx' could not b loaded. Make sure that codebehind attribute in the page or control directive properly reference an existing code behind file ...more >>

Server not available on IIS 6.0
Posted by Shekhar at 3/8/2004 4:56:08 AM
H I have windows 2003 server and IIS 6.0. My application parses files and loads the data onto the SQL server 200 database. The problem is If I execute a long running query I get "server not available" - "Page cannot be displayed" error. This happens only when I load files of size above 8MB. Does a...more >>

text Resolution
Posted by Ale at 3/8/2004 4:18:47 AM
Hi, I went to a php site where an application generates images with text. This text has a real 600x600dpi and it is ideal for laser printing. With asp.net I couldn't find a way to generate hi-quality containing text images. Even if i change the resolution the text is not sharp... Does anyone kno...more >>

How to handle page refresh (F5)
Posted by Surajit Laha at 3/8/2004 2:16:07 AM
I have written a web form, which has a 'Add' button which saves all the input data from the form to a DB table Now once that is done, if the user refreshes the browser page, it again insets the same data to the database! (as obvious as it is reposting whole data to the server) How can I stop it? ...more >>

Image Maps, attributes and javascript
Posted by Jeff Cooper at 3/8/2004 1:27:05 AM
Hi folks, I'm trying to get an onmouseover javascript event to fire on an image map in an aspnet page. I've added the map and area tags to the HTML and pointed to it with using the image's useMap attribute. But, I'd like the map to run a little javascript (swapping the image's src for anot...more >>

Bug or something going wrong in ASP.net Framework???
Posted by Miguel Dias Moura at 3/8/2004 1:14:27 AM
Hello, i am a portuguese web designer and i am changing an ASP to ASP.net web site. This web site uses Access Database where i created 10 Tables. Each table has some fields and some of the data include portuguese characters such as "ç", "é", "á" and others like "?". I found 2 problems: 1...more >>

Open a new window in a maximized mode
Posted by Mpho at 3/8/2004 12:41:05 AM
Hi! I would like to open a new window in a maximized mode, I'm using ASP.NET Thank Mph ...more >>

Button Question.
Posted by Miguel Dias Moura at 3/8/2004 12:38:50 AM
Hello, i have a form in an ASP.net / VB with 2 buttons: <code> <form action="" class="tableForm" runat="server"> <asp:Button ID="Ybt" runat="server" OnClick="Go" Text="Yes" /> <asp:Button ID="Nbt" runat="server" OnClick="Go" Text="No" /> </form> </code> and then i have this V...more >>

Format Datagrid column to show only date (without time)
Posted by NWx at 3/8/2004 12:24:51 AM
Hi, I have a Datagrid which display info from a database(SQLServer). Several column in SqlServer table are smalldatetime type, but I use them only for date How can I make Datagrid column to show only date, and not the time (which is 00:00:00 anyway)? Thank you ...more >>

How to access elements of IFrame in Main Form on NN7/Mozilla 1.6?
Posted by clare hsiao at 3/8/2004 12:16:06 AM
How to access elements of IFrame in Main Form on NN7/Mozilla 1.6? I have an Iframe named "ifr_top" I can using document.ifr_top.document.getElementById("txt_name").value to get the value on IE but above code doesn't work on NN7 and Mozilla 1.6!! How can I solve this problem? Thanks a lo...more >>

How can I make the treeview like Microsoft's Newsgroup?
Posted by clare hsiao at 3/8/2004 12:11:09 AM
Hi all On Microsoft's MSDN Newsgroup http://msdn.microsoft.com/newsgroups/ the treeview load the child nodes when user just expand the nodes. but in treeview control, we have to load all child nodes at the same time. How can I make the tree like Microsoft's Newsgroup? Thanks a lot. ...more >>


DevelopmentNow Blog