Groups | Blog | Home


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 > august 2003 > threads for monday august 18

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

Help on Regular experession to validate date
Posted by Bogdan Zamfir at 8/18/2003 11:44:52 PM
Hi, I want to use RegularExpressionValidator to validate a date I want to let user to enter date in the following format one or two digits for day one or two digits for month two or four digits for year User should be allowed to use as date Separator either . or - or / So this should ...more >>


SMS Service
Posted by James Zhuo at 8/18/2003 11:33:00 PM
Hi all Does any one know where i maybe able to look up on how to hook up SMS service to a ASP.NET web application Cheers J ...more >>

Refresh button
Posted by Jeremy at 8/18/2003 11:20:27 PM
I'm sure this has to be in an FAQ somewhere, but I couldn't find anything about it. When I click the "Refresh" button in my browser I preform the last HTTP method I did. Needless to say, this is not the functionality of a refresh button that I would like. When I click on "Refresh" I wan...more >>

Inserting text into TableCell at runtime
Posted by Jurjen de Groot at 8/18/2003 9:45:22 PM
I want to show a variable length field within a cell in a table. <TD> ....here... </TD> I'm not sure how to do that, the information is stored in a class property Org.CVtext I can't use a textbox because it might not show all text and when printing this page the info is incomplete. I've ...more >>

aspx page changes not picked up by debugger unless do "Rebuild Solution"
Posted by bennett NO[at]SPAM peacefire.org at 8/18/2003 9:37:43 PM
If I create a new C# Web Project in Visual Studio and add this to the Page_Load method for WebForm1: Response.Write("firsttime"); then hitting F5 to debug the project of course shows the WebForm with "firsttime" on the page. But if I then change it to Response.Write("secondtime") and hit ...more >>

codebehind and page_load event
Posted by mbwalmsley NO[at]SPAM hotmail.com at 8/18/2003 8:02:30 PM
hello and thanks I am as green as mold when it comes to asp.net, so please bear with me. I am trying to get an asp.net page with a webform to work using codebehind. My class/routines work fine, just doing simple stuff like changing the text of lables. I cant seem to get this to work thou...more >>

Clean URLs?
Posted by vze4mks3 at 8/18/2003 7:23:49 PM
Is there a way in ASP.NET to configure an IHttpHandler to service all requests (not just certain extensions) to a virtual directory? Normally you can do something like this to pass in parameters to an aspx page. /mywebsite/Default.aspx?param1=robert&param2=marketwatch to something like th...more >>

debugging on separate inhouse machine
Posted by SStory at 8/18/2003 6:23:58 PM
I have two machines on a local lan. One has IIS and the other I use the vsdotnet IDE. I need to be able to debug the sites that are on the other server--which is what vsdotnet2003 is connecting to. How can I set this up. Remember both servers in house beside each other... Just a workgr...more >>



DataGrid's DataSource
Posted by Johnny at 8/18/2003 6:10:21 PM
I have an aspx page with 2 text input. User will enter in values and press the "Add" button, which will add a record with their values onto a datagrid. I need to find a way to store data and then insert into the database when the user is ready to save. I'm thinking of using an array to st...more >>

can't write <% # in VS.NET
Posted by nakhi at 8/18/2003 5:52:51 PM
Hi, what I want to do is simple, output a image whose URL is composed from a field from a database. the picture is shown in a Datagrid. <ItemTemplate> <img src="<%# databinder.eval(container.dataitem,"id")%>.jpg"> </ItemTemplate> I am using VS.NET, the problem is it doesn't allow using ...more >>

Session variables and Session_OnEnd
Posted by Hans Kesting at 8/18/2003 5:50:31 PM
Hi, When the Session_OnEnd event fires, do the Session variables still exist? I want to do some cleanup (update some records in a database etc.), but then I need to know *which* recopds to update ... Can I access these session variables through HttpContext.Current.Session ? (the cleanup-cod...more >>

Forms Authentication without a Cookie?
Posted by Harry Whitehouse at 8/18/2003 5:26:50 PM
I've got a fairly simple forms authentication project (a login page and a single secure page), but a number of users (~25%) can't seem to get past the login.aspx step. I theorized that this might have to do with their browser's cookie setting. I had been using cookies to store session state a...more >>

ASPNET and CreateProcessWithLogonW
Posted by Matthew Wieder at 8/18/2003 5:19:01 PM
I have an ASPNET app that is running as the ASPNET machine user. It makes a call to the API CreateProcessWithLogonW. On Windows XP it executes without a problem, but on Windows 2000, I get an "Access is Denied" exception. I tried adding the ASPNET account to all the items in the "User Rig...more >>

Problem with DataList and updating data
Posted by Colin Young at 8/18/2003 4:56:41 PM
I'm having a bit of a problem with my DataList when I try to update from the user's input. I've included relevant excerpts at the end of this message. In the UpdateCommand code, the "PageLevelTextBox" appears to be found (it isn't returning null), but the Text property is an empty string (""). ...more >>

Ran aspnet_regiis.exe -i from 1.1 dir, but iis is not running 1.1
Posted by Kyle Jedrusiak at 8/18/2003 4:51:54 PM
What am I missing? Kyle! ...more >>

Setting Session within Method?
Posted by thdevdex at 8/18/2003 4:03:33 PM
Needless to say I'm new to .Net. I'm trying to set Session variables from within a method within a class. (Name "Session" is not declared) is the message I get while typing in the code. I don't get this while entering code within an .aspx.vb file. Obviously I need to create and instance of ...more >>

moving around using a SqlDataReader
Posted by Jeremy at 8/18/2003 3:36:44 PM
I execute a SqlDataReader to reader some data and am using a while loop to read the data into a DataTable, and essentially what I'm doing is making one call to the database and reading the data into two seperate data tables using a condition that I put into the while loop. For example: ...more >>

ASP.NET worker process context and SQL authentication
Posted by Dave Mehrtens at 8/18/2003 3:27:36 PM
I am trying to configure my ASP.NET application and have come across something unexpected. First, I understand that all ASP.NET applications running on a single server will utilize a single aspnet_wp.exe process. And that this process, by default, runs under the context of the ASPNET username...more >>

Binding RadioButtonList ...
Posted by Ivan Demkovitch at 8/18/2003 3:16:39 PM
Hi! I wonder if thats a bug or something: I have an object which has arrayList of child objects exposed to clients. This child object also exposed to clients. Class A { public ArrayList CurrentList = new ArrayList(); } Class B { int _DetlKey; string _Detl; ...more >>

Big Question - Please Read
Posted by James Zhuo at 8/18/2003 3:01:14 PM
Hi all I was wondering if there is a way in ASP.NET to make things similar to java applets for example, if i want to make a chat application for a ASP.NET website what can i use to enable realtime chat sessions?? cheers J ...more >>

<processModel>
Posted by Matt Sollars at 8/18/2003 2:56:58 PM
Hi, all. I was recently told about changing the <processModel> tag in the machine.config to allow the ASP.NET worker process to run as a system user. It was supposed to clear up a problem I was having. I didn't want to do this on a production server due to the security risks involved, but I did t...more >>

Capture "Enter" event
Posted by marcia at 8/18/2003 2:53:19 PM
How can I capture (i.e., write an event handler) that runs after I press the "Enter" key? I'd like to prevent a Web Form from being submitted when the "Enter" key is pressed following the typing of some characters into a TextBox (ASP.NET) of a Web Form....more >>

one or two way Databinding
Posted by Arne at 8/18/2003 2:14:24 PM
When I bind a dataset to a server control, is that a one way process from the datasource to the control? Or can I post data back from the server control to the datasource with the databinding method?...more >>

ASP.NET Processor Ignoring DataLists?
Posted by Jonathan Hollinger at 8/18/2003 1:54:56 PM
Very, very strange problem. In developing a C# ASP.NET application, every so often, DataLists disappear from the build. They remain visible and rendered (though sometimes dropping properties and event handlers) but do not seem to be included in the build (and are consequently not rendere...more >>

Login Failed for user (null)
Posted by Calvin I at 8/18/2003 1:50:13 PM
Hi All, I am having a problem getting access to a SQL server on windows 2003. My web server is running on a windows 2003 platform. I continually get the Login failed for user null. Not associated...blah blah message each time. There is no ASPNET user on the SQL server because I have removed...more >>

.NET Generates JavaScript errors for all my DataGrids all the sudden. HELP >>>>>>
Posted by Andrzej Wegrzyn at 8/18/2003 1:49:23 PM
Hi, I had a portal that worked before, and over 5 months period JavaScript errors started to show up on all forms where I have datagrids. Using: IE 6.0, WIN XP, IIS 5.1, Framework 1.1 error: Expected ';' The only JavaScript there is given to my by .NET: <script language="javascript...more >>

Email error -- CDO.Message Object, could not access
Posted by Charles at 8/18/2003 1:47:24 PM
Can anyone help me with this error. "Could not access 'CDO.Message' object." This is from the: "SmtpMail.Send(mailMsg)" command. ...more >>

WebService, SDK
Posted by NET_NET_2003 NO[at]SPAM hotmail.com at 8/18/2003 1:45:41 PM
Hi all, I want that when my ASP.NET WebService receives a request, that it calls a Platform SDK method (e.g. t do something with the Network Card.). But I always receive an error when the SDK method will be called, although I have tested this but simply with a console application. Is this not ...more >>

Prevent Web Form from posting back
Posted by marcia at 8/18/2003 1:38:38 PM
In a Web Form with a Button and a TextBox, when I type some characters in the TextBox (AutoPostBack == false) and then hit the Enter key on the keyboard, the Web Form goes to the server (as though I had pressed the Button). I want the Form to go to the server when the Button - and not the ...more >>

DataTable.Select not unique among users??
Posted by Kris Rudin at 8/18/2003 1:32:40 PM
I am displaying a table of information on a web page, using an asp:table that I populate dynamically. On this page I give the user the options to group the rows by certain fields, and/or filter the contents on certain fields. The grouping/filtering is "remembered" for each user via a cookie. T...more >>

ASP vs ASP.NET sessions (2nd post)
Posted by Bruno Alexandre at 8/18/2003 1:14:19 PM
I there, I'm trying to use the same session varaibles in both .asp and .aspx pages, but I can't. (i'm using VB.NET) Error using cast... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Description: An err...more >>

Newbie Q on roles
Posted by Justin Dutoit at 8/18/2003 1:07:24 PM
Hey- here's a real newbie Q on roles. Are they the same thing as a Windows 2000 local group eg adminstrator, power user, or else what are they please Tks Justin Dutoit ...more >>

Event Delegates and Private scope
Posted by Learning SQL Server at 8/18/2003 1:05:51 PM
Out of curiosity: If I create an event delegate for an object (say, a DataGrid) using VS.Net 2003's dropdown boxes (select object, then say, DeleteCommand), the default scope is Private. This throws an error because the scope of the procedure is too narrow. I hate having to remember to chan...more >>

Object looping ?
Posted by Deasun O'Donnachadha at 8/18/2003 1:02:34 PM
Good evening, I have a panel with a number of labels and textboxes. I want to set the text boxes to readonly = false. This is what I have; Dim objTxtBox As New TextBox For Each objTxtBox In pnl_FB_Details.Controls objTxtBox.ReadOnly = False Next I get err msg: cast not valid. Wha...more >>

Please help
Posted by Gary at 8/18/2003 12:40:54 PM
Hi, I have a login screen with a remember user checkbox. I am storing the Login Information (UserName and Password) on the client machine using cookies. The text boxes used to accept the username and password are both ASP server controls. The TextMode property for the box accecpting password...more >>

Client Side Cookies IIS, HELP!
Posted by Todd at 8/18/2003 12:16:05 PM
OK, I created a .htm page within a new Web solution: -------------------------------------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Menu</title> <meta name=vs_defaultClientScript content="JavaScript"> <meta name=vs_targetSchem...more >>

Test with old browsers...
Posted by Onur Bozkurt at 8/18/2003 12:11:16 PM
Does anybody know an easy and fast way how to test asp.net pages with old browsers like IE 5.0 Is there a simulation software for browsers or a software to run win98 when working with windows 2003. I need it because rebooting the computer with win98 everytime is a boring task. ...more >>

Response.Redirect vs Server.Transfer
Posted by Harsh Thakur at 8/18/2003 12:09:15 PM
Hi, I'd like to know the performance related differences between Response.Redirect and Server.Transfer. I'd like to redirect the user to a different page. I can either do a Response.Redirect("URL") or a Server.Transfer("URL"). So I'd like to find out which is more efficient/better. Can anyon...more >>

Response.Redirect Crashes IE 6 sporadically.
Posted by Cheung, Jeffrey Jing-Yen at 8/18/2003 12:01:09 PM
Has anyone noticed the use of Response.Redirect resulting in an IE 6 crash? I am aware that I could use client side javascript for a redirect, but I'd prefer not to change existing code that *should* work as it is. Any comments or thoughts? Thanks in advance, Jeff Cheung ...more >>

Converting date value to US format
Posted by Bogdan Zamfir at 8/18/2003 11:32:50 AM
Hi, I use an Access BE, and I need to use an update SQL query to update a datetime field In my locale date format is dd/mm/yy, but in Access SQL date must bhe formatted as mm/dd/yy in order to be able to update database, as follows Update Project set EndDate = "01/31/03" where ProjectID = 1...more >>

calling Trace.Write() from classes besides the page class
Posted by bennett NO[at]SPAM peacefire.org at 8/18/2003 11:24:52 AM
I've noticed that if you enter the following code in the codebehind page for an .aspx page, it won't compile because the call to Trace.Write() is not valid except in methods of a class derived from System.Web.UI.Page. Two questions: 1) I don't know much about C# but I was under the impression t...more >>

Return sequence number from Oracle
Posted by Steven David at 8/18/2003 11:06:49 AM
People, someone help me please. I have a webapplication, and i store the statements in xml file. Then, when i need then i took at the file. In one method of mine i have to add a record at the table and return to my application the number of sequence that was created. The database is in o...more >>

Global Variables
Posted by J at 8/18/2003 10:53:40 AM
What is the correct method to use if I want to store a variable within my web application, that is available to every single page within the application, but is lost when the user navigates to a page outside of the app. I don't want to use session variables because they only last a short perio...more >>

ListItemCollection Value in DropDownList - MIA!
Posted by Kurt Mang at 8/18/2003 10:47:04 AM
Hi all -- I hate to yell "BUG", but can anyone explain why I cannot get a dropdown list / checkboxlist to recognise the Value property of a ListItemCollection (created at runtime) that I bind to it? This is a simplified version of what I have. I see no reason why this shouldn't work: ...more >>

Finding if a certain form elements exists...
Posted by Stu at 8/18/2003 10:12:27 AM
Hi, I want to be able to check if a form element exists in the form post data. IN this instance I want to find out if Request.Form("Postcode") is part of the forms collection. I have tried: If Request.Form("Address Line 5").Length > 0 Then Response.Write("It exists!") but get the erro...more >>

How do I create a Linkbutton and Event Hander on the fly ?
Posted by James Norton-Jones at 8/18/2003 9:51:10 AM
Hi, I am wanting to create Linkbuttons and Event Handlers on the fly. Ideally I would be able to pass the CommandName and CommandArgument to the Event Handler which in turn would pass these to a generic method for processing. I have been able to create the LinkButtons themselves on the fl...more >>

Writing savable jpg
Posted by gb at 8/18/2003 9:38:57 AM
I'm able to get a bitmap out of my database and write it to an aspx page and this works easily. However, this cannot be saved as a jpg file as it is simply an image written to a web page. Does anyone know how to make this image savable as a jpg on the client? G ...more >>

Newbie: ArrayList and DataList problems.
Posted by John Spiegel at 8/18/2003 9:27:03 AM
Hi All, I'm working on a page that essentially loops through a table with a DataReader, does stuff then lists the outcomes. It records the outcomes in an ArrayList. I'm having trouble defining a DataList that uses the ArrayList as the data source. Here's what I've got so far: <...more >>

Postback
Posted by Chris Wilmot at 8/18/2003 9:26:25 AM
Can anyone help with this one. I have a Text box called txt_Query and when I do a postback on the page I want to grab the text from this box as it contains criteria that I need to run the appropriate Query I have tried without Success Dim Query As String = Request.Params.Item("txt_Query") ...more >>

DataBinder.Eval
Posted by A Ratcliffe at 8/18/2003 9:17:21 AM
Although at the moment, I have a couple of large classic ASP projects on the go, when I need to take a break, I'm experimenting with ASP.NET (with both VB.NET and C#). I notice that most wizard-generated code uses DataBinder.Eval for datafields, which is fine for most database fields, however ...more >>

current filepath?
Posted by Lauchlan M at 8/18/2003 9:15:18 AM
How do you get the filepath the app is currently hosted in? I need this to set my Access data connection strings when hosted remotely. Thanks Lauchlan M ...more >>

Run EXE from ASP.Net
Posted by Jason MacKenzie at 8/18/2003 9:05:16 AM
I have a 3rd party application that I'd like to run from an asp.net page. I've tried running it from the shell command and as a new process. They just hang - the process starts but then nothig happens. The application has a GUI that displays briefly - could this be what's causing it to hang? I'm...more >>

Processing a lot of web controls
Posted by Bogdan Zamfir at 8/18/2003 9:03:25 AM
Hi, I want to enable / disable several controls on a page based on a condition in application. But there are several other controls on the page don't want to enable / disable together with the others. In desktop applications, I used a control's property who was not used, like Comment or ...more >>

Public Sub/vars in web app?
Posted by thdevdex at 8/18/2003 8:24:56 AM
I'm new to the web forms world (ASP.Net) but not vb and am converting a vb6 windows app to the web. If I create public subroutines at a module level, is this a problem in a server based app? Will my users step on each other? I'm confused about whether global module level subroutines and varia...more >>

Xcopy deployment drops user connections
Posted by andersonwebdev NO[at]SPAM hotmail.com at 8/18/2003 7:23:32 AM
When I use Xcopy to deploy my changes to IIS, it seems to drop the user connections; i.e., empties out their Session variables, etc. I thought ASP.NET was supposed to use shadow deployment and gracefully have new connections use the new code, while the old code is cached for current connections...more >>


DevelopmentNow Blog