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 friday march 19

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

Displaying as 'Page 1' instead of '1234' in datagrid in ASP.NET
Posted by comzy at 3/19/2004 10:11:06 PM
Can anyone explain me how to customize paging in Data grid? I just want to display 'Page 1 2 3 4' instead of normal '1234 Thanks Shiva...more >>

Sorting a datagrid without using a DataSet
Posted by Patrick Delifer at 3/19/2004 7:38:45 PM
Hi, Does anyone know if I can sort a DataGrid without using a dataset? I am using an ArrayList to Databind in my datagrid. The ArrayList is returned from a server object(that queries the DB). All the exAamples I see on the net use a dataset. Is there any other way of doing it? Can I use ...more >>

Error message I don't understand (newbie Q)
Posted by Peter Morris at 3/19/2004 7:07:02 PM
Hi folks, just learning ASP.Net programming in C#, working my way through some books on the subject. Being a newbie I'm not certain wether this is a problem with dotNET, IIS or security, so I'm posting this question to all the relevent groups. I'm currently working on the Security chapter. I'...more >>

Checkboxlist
Posted by DaveF at 3/19/2004 6:44:23 PM
How do you read values in a checkboxlist??? ...more >>

Format
Posted by ruca at 3/19/2004 6:37:41 PM
How can I format a numeric string into a double? -- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca ...more >>

GDI+ error in asp.net
Posted by Mekkala at 3/19/2004 5:57:40 PM
A quick rundown of the situation: I'm building an ASP.NET application on a Windows 2003 web server. Part of the application draws a graph to display on an .aspx page using GDI+. Now, I've made a number of these graphs so far, and they've all worked just fine. This time, though... I start...more >>

Question about IIS security settings
Posted by Simon Harvey at 3/19/2004 4:55:32 PM
Hi everyone, A quick question on IIS security settings. Any help would be very much appreciated. A site that I have just become an administrator for uses forms authentication in the application's code. Under Directory Security in IIS however, the checkbox for Integrated Windows Authentic...more >>

How to create Access Database through ASP.Net ?
Posted by Luqman at 3/19/2004 4:46:20 PM
Is it possible to create Blank Access Database through ASP.Net using VB.Net, if so, how, please reply with some code example ? Best Regards, Luqman ...more >>



Session or not?
Posted by Ivan Demkovitch at 3/19/2004 4:43:28 PM
Hi! I have general question: Right now my website load some stuff from DB every time it get's hit (IBuySpy) I wonder if I get benefit by using session/application states to save data and access it from there instead of hitting DB every time. Would it help? TIA ...more >>

Back and Forward Events
Posted by ruca at 3/19/2004 4:41:05 PM
Can I get the Back and Forward events in Borwser? -- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca ...more >>

Is it possible to Import a .cs file to my aspx page?
Posted by Blue Ball at 3/19/2004 4:22:36 PM
In my aspx page, I want to import a .cs file, but I don't want to compile to dll. Is it possible? I know that codebehind can do it in Page level, but it forces me to use inherits which I don't want to: @Page Inherits="code.page" src="code.cs" In this case, my code.cs has to inherits from Sy...more >>

on db call
Posted by Mike at 3/19/2004 4:07:24 PM
How in .NET can i have one call to open the db instead of haveing to code an open connection everytime i need to access data from the database? ...more >>

MapPath & Windows Forms
Posted by Jeffrey A. Voigt at 3/19/2004 3:55:45 PM
Is it possible to use the HttpUtility.MapPath functionality in a windows forms environment? I'm reading in some xml project files and the paths are sometimes http:// (virtual directories). I want to translate it into a physical directory, but I can't because my application doing this is a wind...more >>

Enable anonymous access
Posted by xs at 3/19/2004 3:55:16 PM
Hi, How do I enable anonymous access. I have tried going to IIS 5.1 --> Directory Security --> Edit and I have checked "Anonymous Access" with "Integrated Windows Authentication" checked. Yet I still need to enter network password when I access from a different system. I have let "Everybody" ...more >>

ADO.NET SqlConnection Management
Posted by Jeff S at 3/19/2004 2:25:04 PM
I have a class that is used exclusively for database access. What is the recommended method of opening and closing connections in this scenario. Should I create/open the SqlConnection in a class constructor and then close it in a destructor? Alternatively should I open a new SqlConnection during ...more >>

How MSDN does it?
Posted by cfang NO[at]SPAM telamon-corp.com at 3/19/2004 2:10:56 PM
In the menu on the left side of MSDN library webpage. If you click the small '+' sign, it shows a waiting message, then pull up a list and change the sign to '-'. Can someone give me an idea how to do it in asp.net? Thanks in advance....more >>

asynchronous call back and session variables.....
Posted by Ollie at 3/19/2004 2:06:16 PM
I have an asp.net webservice that is called from an asp.net website, the processes on the web service may take sometime so I call the webservice using the asynchronous method calls, i.e. BeginXXXX(), EndXXXX() etc... I pass a call back into the BeginXXX method so that when the operation has co...more >>

Capturing all exceptions
Posted by Simon Harvey at 3/19/2004 2:00:41 PM
Hi, What is the best strategy for making sure that all exceptions are handled. I try and pre empt all the exceptions I can think of, but I'm sure that some will fall through the net. What would be the safest way to have the user redirected to a nice friendly error page, whilst notifying the...more >>

When is the best time to dynamically poulate a drop down box?
Posted by Simon Harvey at 3/19/2004 1:58:04 PM
Hi everyone, I guess the subject says it all really. I'm not sure what event I should use to populate a combobox that I've dragged onto the form. Page_load, OnInit? If its onInit, should my code be before or after what the form template has put there? Thanks everyone Simon ...more >>

Handling TextChanged event
Posted by Nikhil Patel at 3/19/2004 1:37:30 PM
Hi all, I need to handle TextChanged event of more than 30 textboxes on my page. All I want to do in the event handler is get the current value of the textbox and save it in an appropriate column of a DataSet. So I was thinking that if each of these textboxes can store their corresponding col...more >>

Visual Studio IDE Question #2
Posted by Jeff S at 3/19/2004 1:31:16 PM
Is there a way to expand/collapse all code regions? example: #region Web Form Designer generated code .... #endregion without having to point and click the little + and - symbols next to each in the IDE? ...more >>

Help Please: How to Format Data in Hierarchical Fashion???
Posted by Bob McCormick at 3/19/2004 1:26:08 PM
Hi All Trying to better understand how to do ASP.NET here, and am having a hard time understanding how to format data in a Hierarchical manner Basically, I've looked at the Repeater control with Templates and this doesn't appear to be able to provide the type of output that I'd like. I also com...more >>

vb .net to asp .net
Posted by Mike at 3/19/2004 1:21:10 PM
Are there any conversion utilities out there that will convert a vb .net application to an asp .net application? If not, any links to tutorials that would discuss doing a manual conversion would be nice Thanks Mik ...more >>

DataGrid ButtonColumn Focus Prob
Posted by Gary at 3/19/2004 1:10:53 PM
The first column in my data grid is a Delete Button column. For some reason the delete button in the first row of the datagrid gets focus for the entire page. If the user hits the enter key when anywhere on the page, it pushes this button and the record gets deleted. Is there any way to remo...more >>

parsing a name/value querystring string
Posted by Fid at 3/19/2004 1:06:07 PM
i have a querystring i need to parse manually with code c=12345&f=67890&d=12345 and retrive the values of the variables c,f, and d, etc. is there a a way to use a collection to parse this for me without having to manually split this string up? thanks! Fid...more >>

DSN connection to SQL Server
Posted by Mark at 3/19/2004 12:57:26 PM
Are there any inherent issues with using a DSN connection on a windows network from an ASP.NET web page to a SQL Server on the same windows network (different box) using Windows Authentication? I'm aware of other options (impersonation, delegation, asp.net account, etc), but wanted to hear about...more >>

.NET framework SDK ver 1.1 with visual studio 2002
Posted by Ram Dash at 3/19/2004 12:47:18 PM
Hi All, Can I install .NET framework SDK ver 1.1 and somehow use it with Visual Studio.NET 2002, so that I've access to all the 1.1 run time classes and can compile against 1.1 assemblies? If I do install .NET framework SDK ver 1.1. what impact will it have on the functioning of VS.NET 2002...more >>

web config puzzle
Posted by Bob H at 3/19/2004 12:17:33 PM
Hi, We have a site that works on the dev PC (with the web.config file) and on the live server (without the web.config file). If we add the web.config file to the live server we get the 'Server Application Unavailable' error. Any idea what might be causing this? Thanks for any clues. Bo...more >>

list of raised events
Posted by Tim Mulholland at 3/19/2004 11:41:40 AM
Out of curiosity, is there a way, while debugging an ASP.NET application, to see what events have been raised that caused a postback to occur? For instance, if a user clicked a button and the page posted back, is there a way to see that the Page_Load event and the Button_Click events are in the...more >>

accessing datalist values
Posted by Anders Bohlin at 3/19/2004 11:40:34 AM
hi. im having a problem.... i need to access a value i have stored in a label inside a datalist from my vb code.... the label is not listen in me. *** controls how can i access a control in a datalist from my vb code? /anders ...more >>

Object Count
Posted by Jonathan Wood at 3/19/2004 11:40:25 AM
I was trying to populate a DropDownList control and started by trying the following code: Dim i As Integer Dim li As ListItem = New ListItem For i = 1 To 50 li.Value = i.ToString() li.Text = "This is item " + i.ToString() DropDow...more >>

Body Tags Change from codebehind page
Posted by RJDev at 3/19/2004 11:28:07 AM
Hello, Is teher anyone who can tell me how to change the body properties from a code behind paghe. Regards RJ ...more >>

' in a datagrid
Posted by martin at 3/19/2004 11:20:35 AM
Hi, I have a datgrid that takes information fro a database and displays it. This is working fine, except recently a piece of data was placed in the database that contains an apostrophe (') Now the datagrid is still displayed correctly except thi has cauesd a javascript error on the page. I...more >>

Google Type Examples
Posted by Len at 3/19/2004 11:19:57 AM
Are there any know asp.net example that replicate Google, ie. search with categories, listings and ranking. ...more >>

response.redirect with frames
Posted by Mark at 3/19/2004 11:07:23 AM
Frames. Yack, I agree. BUT, I've been mandated to use them. Let's assume a page has a simple top and bottom frame. I have been told that there is NOT a way to use Response.Redirect("http://someotherurl.com/") in the bottom frame page to redirect the entire browser window, not just the bottom...more >>

Multiple /bin directories?
Posted by Shawn B. at 3/19/2004 11:04:23 AM
By default a web application gets its assemblies from /bin. Is it possible to have a /bin2 as well? I'd like to overlay a new app project into a subfolder of the root and have it use another /bin directory... the reason is some files in the /bin are snk'd and the in "/bin2" they aren't... and i...more >>

Visual Studio IDE Question
Posted by Jeff S at 3/19/2004 10:33:17 AM
Is there a hot-key sequence I can use to navigate among open windows (say I have 3 aspx.cs pages open and want to get from one to another without having to use the mouse)? This would be like Alt+Tab in Windows that lets you get from one running application to another - but within the Visual Studi...more >>

set up link to go to spot on the same page
Posted by Paul at 3/19/2004 10:26:06 AM
Hi I am trying to set up links that will simply go to a section of a page. I would like a setup like thi go to a (click here to go to a go to b (click here to go to b '''''''''''''''''''''''''''' ''''''''''''''''''''''''''' ''''''''''''''''''''''' ''''''''''''''''''''' thanks Paul....more >>

Smartnavigation Issue
Posted by Olivier at 3/19/2004 10:10:16 AM
Hi, I'm encountering some problem when smartnavigation is set to on. Some of my users are getting Javascript errors like : Object doesn't support this property or method Line 216 Code 0 When browsing a page configured with smartnavigation. When smartnavigation is not set , no error. ...more >>

Frontpage Extension?
Posted by REB at 3/19/2004 10:07:41 AM
Do i need frontpage extensions on my webserver if I do not use frontpage? Does VS.NET 2003 use them in anyway? There are some security issues with having the extensions installed and if i do not need them would like to remove them from the server. I use VS.NET 2003 as my development environm...more >>

Microsoft code creates error
Posted by Patrick Nolan at 3/19/2004 10:07:26 AM
I am using the following code from Microsoft's support site : public void Page_Error(object sender,EventArgs e) { Exception objErr = Server.GetLastError().GetBaseException(); string err = "<b>Error Caught in Page_Error event</b><hr><br>" + "<br><b>Error in: </b>" + Request.Url....more >>

Help: Session timeout?
Posted by hb at 3/19/2004 10:05:18 AM
Hi, One section on our web site needs about 3 hours to fill the form since our users like to verify some data with other source at that time. But by the time the user finish filling the form, and click submit button, the session's gone. In order to prevent the session gets timeout in short t...more >>

Setting things to nothing ?
Posted by george d lake at 3/19/2004 10:04:57 AM
Hi, Quick question, should I set all my vars to Nothing when I exit a Fucntion/Sub/Page? Sample: Public Sub MySub(ByVal Param1 as Integer) Dim Var1 as String Dim Var2 as TextBox Dim Var3 as Integer etc.... Try Code..... Catch oError as ...more >>

Newbie Questions ?
Posted by Jean at 3/19/2004 9:56:06 AM
1) In order to build web application can I only buy VB.net instead of the studio.net package 2) Is ASP.net build into VB .net 3) Does Web Matrix can do all that vb.net does with web application Thank's !...more >>

Date conflict: how send to SQL, where the format of the value is acceptable?
Posted by Reza at 3/19/2004 9:56:05 AM
Hello I have a search page that the user can search the database for some or all of the items(db fields) available for search. I am creating the sql statement on fly. The problem is the format of date values. I read the value, but since I use portuguese version of visual studio the ShortDateString...more >>

Detecting timezone for client browser
Posted by NWx at 3/19/2004 9:53:17 AM
Hi, I have an ASP.NET application, which allow users to add notifications, and at the proper time they receive a notification e-mail. However, users can be around the world So I'd like to be able to detect timezone of a client (based on settings from the PC the browser is run on), and adj...more >>

Maintaining Page State between different pages
Posted by Paul Say at 3/19/2004 9:46:52 AM
This is the case I have several pages that together allow the user to drill down, eg Jobs,Sub Job, Task On the Job, the job details are displayed in a datagrid which the user can sort,page through, filter and select an active row.(each other page has the same functionality). What I want to kn...more >>

connection string, how to?
Posted by CSharp at 3/19/2004 9:39:17 AM
Hello all, I store the connection string in my web.config like this: <appSettings> <add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inetput\wwwroot\testapp\DB\gb.mdb;" /> </appSettings> Instead of hardcoding the path of the db file, I want to spe...more >>

Session Time Out Missing [Bug?]
Posted by Michael Kennedy [UB] at 3/19/2004 9:28:07 AM
Hi, I recently instrumented a web application with very basic reporting of the current number of active sessions and total number of sessions since the web application has started. This was all going great until we switched from InProc session management to the StateServer session management. ...more >>

Dropdown calendar control ?
Posted by Andy Mackie at 3/19/2004 9:12:43 AM
The ASP.NET calendar control is all very good, but I don't see any dropdown calendar control. Any ideas how to do this ? Thanks, Andy Mackie. ...more >>

Getting a status message during File Uploads
Posted by Wynter at 3/19/2004 9:11:10 AM
I am relatively new to ASP.NET, but I have a question concerning my File Upload process. The ASPX code simply builds a form and has an ONSERVERCLICK subroutine attached to the submit button in the form. The submit subroutine processes a PostedFile.Saveas to place the file within a directory on the s...more >>

how to keep asp.net application running?
Posted by haiwen at 3/19/2004 8:01:06 AM
Hello, everyone Could anyone tell me how to keep asp.net running even without any Session exist My web application don't run frequently, but the performance is critical. I want to skip the time that application needs to start when our customer run it Thanks a lot for your help Haiwen...more >>

simulating postback to webform
Posted by james.bush NO[at]SPAM tns-group.com at 3/19/2004 6:37:57 AM
Hi there, Can anyone help me Im going insane here!!! Ive built an atl composite control for pocket pc using embedded VC++ 3. THe control is intended to simulate a postback to an asp.net web form to post a file from pocket pc to the web server. pocket ie does not support the input type=file ...more >>

Calendar WebControl
Posted by Sharon at 3/19/2004 3:25:17 AM
Is it possible that the calendar web control does not have next & prev. year selectors? ...more >>

Split inline aspx/c# files to code-behind?
Posted by Ben Fidge at 3/19/2004 3:04:41 AM
Hi I have a need to split hundreds of inline aspx/c# files, developed using Web Matrix, to separate code-behind files (.aspx & .cs). Is there an automated way of doing this? Kind regards Ben...more >>

Request.QueryString["myvar"] not displaying in webcontrol?
Posted by Nigil LaVey at 3/19/2004 2:44:51 AM
hi guys, I have tried all sort of methods but still no luck.. I just can't figure out why I can't see the actual value from <% Request.QueryString["myvar"]%> within the webcontrol. <ccs:ctrl id="LoginCtrl2" runat="server"> <Session> <ccs:Session Name='<% Request.QueryString["myvar"]%>'...more >>

TextChanged of TextBox and Click on Button
Posted by Neeraj at 3/19/2004 1:56:05 AM
Hi all I am having a 10 textboxs on a page and 2 button .One TextBox is having a TextChanged event attached to it .My problem is when the User changes some text in same text box for which the Textchanged is attached and without tabbing out clicks the Submit button,Text change events fires twice and...more >>

MessageBox
Posted by rodriguesd NO[at]SPAM yahoo.fr at 3/19/2004 1:54:53 AM
How to make a MessageBox in ASP.NET and get back a return value ? Thanks DR...more >>

connet to oracle
Posted by manuel at 3/19/2004 1:26:06 AM
Hi, I want make a connection between Web application ( C#) and oracle Database 9i . For this , I use the oracleDataAdapter , but don't run application . The error is Unable to load DLL (oci.dll) Description: An unhandled exception occurred during the execution of th current web request. Please...more >>

Populating a Dropdown Listbox
Posted by Curt Emich at 3/19/2004 1:13:28 AM
Can someone help me understand why the following code won't work? I'm connected to an Access database with a connection object, but I'm unable to populate the dropdown list box on the form. Also, I can't seem to print diagnostics anywhere using "Response.Write" or anything else. pr...more >>

How to handle an ASP.NET app with both old COM and .NET?
Posted by msyez at 3/19/2004 12:41:05 AM
Hi, I have a ASP.NET application that uses both old COM.dlls and new .NET assemblies. The .NET ones are added as references and compiled into the \bin directory. The COM ones are also added as references and compiled into the \bin directory as Interop dlls. On the server where I want to deploy m...more >>

user control property
Posted by Guoqi Zheng at 3/19/2004 12:13:04 AM
Dear sir, I have Page Header user control. On my main page, I have the following code. <uc1:header id="MyHeader" runat="server" PageName="OurProducts.aspx"></uc1:header> PageName property is a public variable inside that user control. When I put the value of PageName inside the html code,...more >>


DevelopmentNow Blog