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 2004 > threads for tuesday april 6

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

Directory.Move-> Sessions Lost
Posted by Ron Vecchi at 4/6/2004 11:24:18 PM
I know this has been asked before but I out of all the posts I've read regarding using Directory.Move and then the application restarting itself I have found no answer except that Sessions are buggy or that you should create a new folder then copy the content of the old into it and then delete t...more >>

hashtable and dataset
Posted by coollzh at 4/6/2004 11:21:23 PM
i have two tables, role and modules, and the two tables have some relations for user authentication. now ,i want to cache these data on application start void database roundtrip. i have two method to cache these date,one is hashtable(roleHashtable and ModuleHashtable),another is Dataset with ta...more >>

How to open a new browser window in ASP.net?
Posted by Miguel Dias Moura at 4/6/2004 10:43:58 PM
Hello, i have an ASP.net page with a button. When the button is clicked i want to open a new Browser window (400x200px) having only the title bar and nothing else.This browser window would load newpage.aspx in it. I would also like to know how to create a button to insert in newpage.aspx an...more >>

newbee question about how to start..
Posted by EMW at 4/6/2004 10:28:19 PM
I have managed to create a page with some buttons on it. I want to create some little animation to those buttons, like just after the page is opened in IE, the user sees the buttons move from a corner to a specific position... (i now it's lame, but...) If I open the text part of the ASPX file,...more >>

Customer Server Control Events
Posted by Chris Kennedy at 4/6/2004 9:56:51 PM
This a newbie question but I would like to build a custom server control which updates a database. While I have got as far as writing in HTML via the HTML writer I am unsure on how to progress to putting events into my control. I am looking more for pointers and resources as this fairly in dep...more >>

HREF on Image
Posted by WJ at 4/6/2004 7:59:38 PM
I have an Image.Jpg on my asp.Net page, how to I implement the HREF so that when I click on the image, the system will logon to a specified web site, like that of Front Page. Thanks John ...more >>

loading using controls into placeholders
Posted by buran at 4/6/2004 7:47:06 PM
Dear ASP.NET Programmers, Please consider the following code. How can I reach the textbox with the ID txtBurak in the "pe.ascx"? Private Sub cblMRParts_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cblMRParts.SelectedIndexChanged Dim myControl ...more >>

ERROR [07002] [MySQL][
Posted by ME at 4/6/2004 7:21:20 PM
I am getting: "ERROR [07002] [MySQL][ODBC 3.51 Driver][mysqld-4.1.0-alpha]SQLBindParameter not used for all parameters" when attempting to run the following code: Private Sub DataGrid1_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Han...more >>



Regular Expressions ?
Posted by anony at 4/6/2004 7:16:44 PM
Hi, I'm playing around with HTML pattern matching, and have a questions about parsing more than one line of text. If I want to parse multiple lines of text for a match, do I have to explicitly specify \n appearances in my expression (meaning I would have to know how many lines I'm dealing wit...more >>

newbie session state
Posted by Buz Waitz at 4/6/2004 7:13:48 PM
I'm trying to work with session variables for the first time. They seem to save just fine as in Session("TryThis") = localSomeValue but when I try localSomeValue = Session("TryThis") Intellisense doesn't recognize "Session." I have the webconfig set properely, I believe. Help? Th...more >>

Newbie Question on how to present Data
Posted by Danny Ni at 4/6/2004 5:59:41 PM
Hi, I am trying to develop a timeclock report page Here is a sample of the data I have: Type DateTime ------------------- clock in 3/1/04 9:00 clock out 3/1/04 12:00 clock in 3/1/04 13:00 clock out 3/1/04 18:00 clock in 3/2/04 9:10 clock out 3/2/04 12:1...more >>

Cookieless session management, problems with images. Please help.
Posted by zissop at 4/6/2004 5:14:40 PM
I changed the web.config of my site in order to work in cookieless mode. Now all images are gone. On my development server I do not have the same problem. Any idea? John ...more >>

Using reflection in an asp.net web page ... performance
Posted by Mark at 4/6/2004 4:49:37 PM
Am I out of my mind if I use Reflection everytime someone logs into our site to get and track the current Major/Minor/Build/Revision version that the person is viewing our site through? This information would then be logged to a database along with some other information about the user. Thank...more >>

Application and user count...
Posted by aegeanace NO[at]SPAM yahoo.com at 4/6/2004 4:43:04 PM
Hi, I want to show number of active users (login users) on my web page. Creating the number of activate users is easy. I increased an application variable (Application("numOfUsers")) by one when a user is logged in. But a problem comes up when decreasing this application variable. I made this...more >>

Hidding information in ASP.Net
Posted by Sam Carleton at 4/6/2004 4:37:11 PM
Ok, have posted here before, but as a refresher, I have 8 years experience as a C/C++ Windows developer. Currently I am working on my first real web site using ASP.Net. I must admit that so far it has been a lot of fun, but the way one must thing about things is very different from what I know...more >>

Master Pages
Posted by Murphy at 4/6/2004 4:36:10 PM
I have read the articles by Paul Wilson regarding master pages, and apart from being totally confused I would like to clarify the following before investing any further time on researching these concepts. Are master pages reliable or are they a buggy concept ? I understand master pages will be...more >>

Backspave button - disable
Posted by Dmitri Shvetsov at 4/6/2004 4:28:14 PM
Hi All, Is it possible to disable the backspace button in browser? I wrote a login page, then after login I can allow the user to work in the session. I don't want to allow the user to return back using browser features. If he needs to return back he could press a designed button. Using the st...more >>

Cookies not saving
Posted by Mike Johnson at 4/6/2004 4:27:06 PM
I've copied and pasted simple code to create a cookie but it never saves the cookie. Is there something you have to set in the web.config file to use cookies? Here is the simple code.... Dim cook1 As New HttpCookie("MyCookie") Dim now As DateTime = DateTime.Now cook1.Expires = now.AddDa...more >>

How do I maintain list of controls across posts for a WebControl?
Posted by Ken Varn at 4/6/2004 4:06:15 PM
I have created a custom control that derives from WebControl. The custom control assigns other controls dynamically to the Controls collection. Is there anyway that I can recall the lost of controls that I assigned to my custom control when I receive postback? -- --------------------------...more >>

Development for 2003
Posted by Tod at 4/6/2004 4:06:03 PM
Hi Our production IIS and Web Services are running on 2003 boxes. We develop with XP Professional, with the web sites/services running locally. In that IIS made major changes from 2000 to 2003, are there any issues that we need to be aware of? In addition to a web server and web services, we are a...more >>

Cancelling the events
Posted by Vik at 4/6/2004 4:03:41 PM
Is it possible to cancel all the events or a specific event programmatically (for example, in a Page_Load event)? In other words, is it possible to stop a page code execution? Thank you. ...more >>

How to get week span with weekNumber and Year
Posted by gicio NO[at]SPAM gmx.de at 4/6/2004 3:59:53 PM
Hi!! know someone how to get a week span with week number and year? something like hi: public static DateTime[] GetWeekSpan(int weekNumber, int year) { DateTime weekStartDate = new DateTime(); DateTime weekEndDate = new DateTime(); //do something to find the sweek span!!!...more >>

403 forbidden error when trying to access a webservice
Posted by DotNetter at 4/6/2004 3:58:11 PM
I have two computers. Both computers have Windows 2003 installed as well as Visual Studio.Net 2003 installed. Computer A has active directory set and also has .Net and the webservice called WebserviceTest with a method called Service1 that only returns the string "Hello World". I have enabl...more >>

? - AutoEventWireup="true" - What is this really doing?
Posted by Guy Lafleur at 4/6/2004 3:37:35 PM
I have a user control that builds a treeview dynamically in the = Page_Load event. Also, I have the AutoEventWireup property set to true = (i.e., <%@ Control AutoEventWireup=3D"true" %>). Then, when I 'run' the = application, I get two treeviews instead of one. I'm thinking this is = because ...more >>

Problems extending page class
Posted by Headdeball at 4/6/2004 3:36:03 PM
Why is that if I derive of a class of Page called MyCustomPage, for example, why is it that if I base my web forms upon the MyCustomPage class I can't use the design view. Am I missing some sort of event wiring such as in InitializeComponent or something? Any help appreciated. ...more >>

Visual Interdev and Asp.Net question
Posted by dev at 4/6/2004 3:21:46 PM
Hello, The server running IIS 5.0. There is a Visual Interdev asp site that I would like to link (Href) to an asp.net application. It seems to me that there may be no problem but I would like to get some opinions and gotchas since I have never actually done this before. I need to build an...more >>

Generic Question about Codebehind forms
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 4/6/2004 2:09:31 PM
I have a question about codebehind. I have an upload namespace, class and all in a codebehind. I currently have it so it works with one of my .aspx pages. I want to use it for another .aspx page. The problem is that they codebehind looks at a specific directory (since it was only being used ...more >>

Shared (Static) Class in VB.net
Posted by will at 4/6/2004 1:31:09 PM
I'm new to .Net and all it entails :- I'm trying to design a solution that has a group of business rule objects (per session) to do validation on rows from a datagrid. I want to have "static" classes so the web app can just call the class methods to validate the data...using the builtin validators...more >>

newbie question on TextBox
Posted by Danny Ni at 4/6/2004 1:26:28 PM
Hello, I am trying to use a TextBox Web control in ASP Form page for password entry, how do I make it to display * when user types in it. Thanks in Advance ...more >>

Protecting image files
Posted by Ryan Moore at 4/6/2004 1:08:06 PM
I am creating a site that has an "Uploads" directory where users can upload image files (let's say .jpgs and .gifs). When a user uploads an image, the system creates a directory within this "Uploads" directory to place their image in. What I would like to do is protect the ENTIRE uploads director...more >>

C#, DB2 & String Arrays
Posted by Antoni Massó Mola at 4/6/2004 12:59:04 PM
Hi, I need to connect to a DB2 database, make a select * from table where like = 'somevalue'. Then I need to copy thos values into a string array. Any ideas? Thanks ...more >>

\bin directory location
Posted by Timo at 4/6/2004 12:57:04 PM
I need to incorporate several aspx pages into an existing website. The target structure looks like this: inetpub -- wwwroot ------ webapps --------- App1 ------------subdir1 ------------subdir2 ------------subdir3 A virtual directory has been created for App1. Some of my aspx pages h...more >>

SSL problems
Posted by Freddy at 4/6/2004 12:56:14 PM
Hi, I have developed a website in VB.NET and installed a verisign test ssl certificate on the website using iis. When I try to access any .aspx page using https I am getting a page cannot be displayed error. This website works fine with normal http. Can anyone please suggest me what is goin...more >>

.NET timing
Posted by Jocab at 4/6/2004 12:15:19 PM
Suppose I want to write an application which checks data every 3 hours, either from a webservice (somewhere else) or a remote website (using regular expressions). Every 3 hours, it should check and write the new figures into a MS SQL Server database. How could I do this? Only the website which w...more >>

newbie navigation/form re-draw issue...
Posted by roger_beniot NO[at]SPAM yahoo.com at 4/6/2004 12:12:53 PM
I'm trying to figure out how to do something in ASP.NET that used to be accomplished by doing a post from one page to another page. If a webform as fields for user information (address, name, phone, etc) and a submit button... What is the best way in asp.net to re-display the information and a...more >>

database connection.
Posted by wei at 4/6/2004 11:50:29 AM
i tested database connection to oracle. the code worked on windows application but didn't work on web application. the code is as following: OleDbDataAdapter DataAdapter = new OleDbDataAdapter(commandString, connectionString); DataSet dataSet = new DataSet( ); // fill the data set object ...more >>

Setting CSSClass property of Label control?
Posted by Mervin Williams at 4/6/2004 11:37:04 AM
I am having a problem setting the CSSClass property of a my Label control. I set CSSClass property, but its not taking the font style settings. Here is my style: ..TabText { font-weight: bold; font-size: 16pt; text-transform: uppercase; color: white; font-family: Taho...more >>

Client-side chat
Posted by Jason Walraven at 4/6/2004 11:01:32 AM
I was wondering if anyone has done real-time client-side chat in ASP .net yet. I have a project where this is needed, and I'm wondering if someone can steer me in the right direction of where to start. Thanks, Jason Walraven ...more >>

Getting a Reference to the WebForms from a Class
Posted by Matthew Sajdera at 4/6/2004 10:57:14 AM
All - What I want to do: I want to abstract the navigation between my aspx pages into a Controlling Class. This Class would talk to a collection of Business Objects. The various aspx pages would make calls to the Controlling Class which would, in turn, make the necessary calls to the Busi...more >>

Posting to a different page
Posted by Rahul Aggarwal at 4/6/2004 10:47:06 AM
Hi, Is there a way to post to a diiferent page than it self in ASP.net on submit(). Rahul ...more >>

dropdownlist in a datalist
Posted by Brent Burkart at 4/6/2004 10:44:40 AM
Can anyone direct me to a tutorial on how to set up a dropdownlist in a datalist? Each dropdownlist in the datalist needs to pull back different information based on the datalist item it resides in. I am not having much luck finding any information on this. Any help is appreciated. Thank...more >>

how to run command line program
Posted by Lukasz at 4/6/2004 10:40:40 AM
Hi How to run from code (NET) the command line program? I cant find it, help best regard Luke ...more >>

App Version Number in ASP.NET
Posted by Kris Rockwell at 4/6/2004 10:38:34 AM
Hello (again), I have noticed in the AssembyInfo file for the ASP web project that there is as AssemblyVersion attribute. Is there anyway to render that information to one of the ASPX pages? Regards, Kris ...more >>

server.mappath and network shares
Posted by JR at 4/6/2004 10:36:15 AM
My IIS Web site has a virtual directory called content mapped to a network share. If the home directory of the Web site is c:\inetpub\wwwroot and the virtual directory maps to the network share \\myserver\content, Server.MapPath is returning c:\inetpub\wwwroot\content rather than \\myserver\cont...more >>

New to creating Server Controls. Have some questions.
Posted by Ken Varn at 4/6/2004 10:29:22 AM
I am just starting the process of creating ASP.NET server controls. I have created controls for .NET applications, but have just started with ASP.NET. I am a little confused about some areas that I am hoping someone can help clear up. 1. What is the difference between initializing a control ...more >>

problem with internet explorers limit on length of query string
Posted by Rahul Aggarwal at 4/6/2004 10:22:12 AM
Hi, I was using a get request method to call a page in a different web project. Bu my query string becomes more than 2083 characters anything more than 2083 characters is stripped off. I can use the POST method to do the same. But the problem is that in Asp.net the form posts to itself, so if ...more >>

URgent!!!!!!!!!! Macros in Excel give aan error
Posted by Anamika at 4/6/2004 9:41:02 AM
H I wrote a macro in excel "sheet1" .What this macro does is to export data from one Excel "sheet2" to "Sheet1". It was working fine in all systems. till 2 days back. But now it works in some and it doesn't work in some systems. It gives an error saying ""Runtime-Error '9' Subscript Out of Ran...more >>

A small problem with page validation
Posted by Simon Harvey at 4/6/2004 9:37:27 AM
Hi everyone, I'm hoping some kind person can help me with the following problem. I have a page with a form that has a couple of required field validators acting on it. I have a submit button and a cancel button. The problem I am having is that when I click the cancel button, inmdicating I...more >>

COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not registered.
Posted by JROCamaro at 4/6/2004 9:16:05 AM
I have compiled code that populates data from sql database into an excel document on the client. When moving code to the web server and running it, I get an error COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not registered. Excel is not installed on the web s...more >>

User controls
Posted by Murphy at 4/6/2004 9:14:30 AM
I have created a user control for the page header and page footer, the footer control contains links to Terms, Privacy etc. As my site will have pages in sub directories I would like to use these user controls in the sub directories to. The problem I have encountered is that when the control i...more >>

how can you get 2 datafields displayed in a combo box?
Posted by me NO[at]SPAM privacy.net at 4/6/2004 8:26:50 AM
How can you get 2 datafields displayed in a combo box, and still return just one of the fields? I need to return a company name in order to help users visually determine who a rep works for, but need only the repcode to pass on to another variable. SC ...more >>

can webform inherit controls from another web form
Posted by David at 4/6/2004 7:22:37 AM
I have trying to have a webform inherit controls from another form and can't get it to work Say I have a form that saves the person's demographic info. ****one.aspx**** //I have an object to save the person's name in code behind protected void SavePersonInfo(Person p) { p.First = ...more >>

Generate Excel reports in ASP.NET
Posted by swatirana NO[at]SPAM hotmail.com at 4/6/2004 6:06:24 AM
I developed a reporting website using ASP.NET and Microsoft Office XP. The reports are generated using Microsoft Excel. It works perfectly as designed in the development environment. I deployed it on production server, which has Microsoft Office 2003 installed. The site works perfectly, except t...more >>

How to hide tabs using Microsoft Internet Explorer WebControls MultiPage WebControl????
Posted by Daniel Walzenbach at 4/6/2004 4:41:04 AM
Hi I’d like to know, whether it is possible to set enabled = false or visible = false on the tabs of the MultiPage WebControl at runtime (check out http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=72&tabindex=2 which is a quite nice control). I understand that the Microsoft® Interne...more >>

Duplicate cookies in ASP.NET
Posted by christiandalen NO[at]SPAM hotmail.com at 4/6/2004 3:52:31 AM
I have an application that works just fine under normal conditions. But... When I run it through a "SSL Consentrator" (From Array Network), it starts to send me several (Request) cookies with the same name after the application has performed a "SignOut" - One with a "correct value" and one more ...more >>

Storing objects in Session
Posted by Anthony Reynolds at 4/6/2004 2:11:06 AM
I am trying to persist an instance of my class between asp pages and cannot get it to work consistently. I have one class that implements iEnumerator, that works fine. I have another class that does not implement IEnumerator, I can store the object in Session. When I retrieve it from Session in a...more >>

CheckBoxList contorl's selected items, problem
Posted by Peter at 4/6/2004 1:11:02 AM
How can I check which items has been selected in CheckBoxList control when I bind data to it from SQL Server? The code I use works fine when I add manually items into checkboxlist control, but does not work when I bind it. String s = "Selected items:<br>" for (int i=0; i < CheckBoxList1.Items.Co...more >>

Sort table without round trip
Posted by Yanir at 4/6/2004 12:51:02 AM
H I have to display a sortable list of columns(a table or so) - by click on the title of a column, the column would be the criteria to sort by I know datagrid is very conveniant, but I want to save the round trip to the server(I don't want postback) Is there other way to use ASP.NET server contro...more >>


DevelopmentNow Blog