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 wednesday april 21

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

How to detect page post back in HttpModule?
Posted by Hardy Wang at 4/21/2004 11:01:10 PM
Hi, I have a HttpModule in my ASP.NET application, in AuthorizeRequest event, I want to detect if page is posted back. Is there a way? using System; using System.Web; namespace MyModule { /// <summary> /// Summary description for PermissionChecker. /// </summary> public class Perm...more >>


ASP to run: must it cost?
Posted by James at 4/21/2004 10:55:16 PM
Hello all, Recently I tried running some (working) ASP pages that I had uploaded to some webspace I have on the internet. Needless to say, any ASP I had published to the world wide web wouldn't run! It would appear as if my ISP doesn't allow this sort of activity. I later discovered that, wi...more >>

HTML and ASPX
Posted by Charles A. Lackman at 4/21/2004 10:35:56 PM
Hello, I have a .net (aspx) web site that also contains some straight HTML pages. I can send data between aspx pages using Visual Basic .NET: Session("Something") = Value Is there a way to send data from the HTML Page to the ASPX (.NET) page? I need to retrieve the Value from the code beh...more >>

Form Based Role Authentication Example in VB.NET?
Posted by jack at 4/21/2004 10:15:32 PM
Hello, I am looking for a Form Based Role Authentication Example in VB.NET. If anyone has one please post. Thanks in advance for all you help, Jack ...more >>

session IDS
Posted by Amir Ghezelbash at 4/21/2004 10:07:51 PM
Hi every one I need help with session ids I want keep track of my users online who are ordering, I want to use session id to assign them unique ids now when I use cookie less sessions ids I get something like this www.blah.com/orders/(lakdf323124342432)order.aspx My question is how I can c...more >>

SQL server image data
Posted by john NO[at]SPAM e-classifiedad.com at 4/21/2004 9:57:33 PM
Hi! Guys, May be this question is little stupid but I want to clarify this. Let suppose I have image data field in Sql server 2000 and I am uploading an image of 10KB(thru asp.net application). What would be the size for that table with image data field ? Is it 10KB or less than 10KB or more th...more >>

Error: IIS is notrunning ASP.NET version 1.1
Posted by Tom C. at 4/21/2004 9:26:02 PM
I had some problems with IIS so I uninstalled and then installed it Now when I try to open a new web app in VisualStudio.net I get an error message that tells me that " IIS is not running ASP.NET version 1.1 I've encountered this problem before and I uninstalled and installed Visual Studio but ...more >>

ValidationSummary, ShowMessageBox and Netscape
Posted by Joe at 4/21/2004 8:19:28 PM
Since netscape doesn't support client side validation, can anyone suggest a way to display the message using an alert? Due to the layout of the page, we can't have validation labels above, next to or below the controls missing their value or having invalid format. I haven't found a property of t...more >>



Kill "Print" and "Save As" in intranet
Posted by Paul Sullivan at 4/21/2004 7:33:59 PM
We are a state agency that views protected medical information via our intranet. The screens even have privacy shields. Alarmingly, uses can "Print" and "Save As" which destroys the protection of the health information at the level we want. QUESTION: Can we shut those off?? Any other suggestio...more >>

Assign session onEnd event handler at run-time
Posted by Pavils Jurjans at 4/21/2004 6:35:20 PM
Hello, I am looking for solution to assign the Session.onEnd event handler dynamically, at runtime, without using global.asax file. I am a bit sceptic wether that is possible, however I thought maybe it is possible to have a global.asax file with Session_onEnd method, that merely calls some de...more >>

import namespace
Posted by Simon Harris at 4/21/2004 6:26:51 PM
Hi All, I am currently learning ASP.Net, heres one of many, many questions to come... :) If you use for example "@import namespace system.data", do I then need to release the namespace, free it from memory, etc...in the same way one would "set objname = nothing" in ASP? Thanks! Simon....more >>

Have restart computer to unlock temporary ASP.NET, anyone has experienced this?
Posted by Norman Yuan at 4/21/2004 6:21:43 PM
In my cuurent ASP.NET project, a weird thing happens: when I test-run the project and a uncatched run error occurs, VS quits the test-run, as expected. If I try to run the project again (either start it inside VS.NET or directly call the page from IE), I get server error, pointing to "machine.co...more >>

SessionsIDs
Posted by Amir at 4/21/2004 5:36:02 PM
Hi every one I need help with session ids I want keep track of my users online who are ordering, I want to use session id to assign them unique ids now when I use cookie less sessions ids I get something like this www.blah.com/orders/(lakdf323124342432)order.aspx My question is how I can chan...more >>

Regular expressions
Posted by Andrew Banks at 4/21/2004 5:20:41 PM
Can anyone help me out with regular expressions for the following? 1: Check that a number entered contains no letters and is between 0 and 99. Numers under ten can be entered as "01" "02" "03" or "1" "2" "3" 2: Check that a number contains 3 numbers and no letters. Number should be between 0...more >>

Problem running local asp.net app with web site on network share
Posted by JR at 4/21/2004 5:01:17 PM
I have a Web server running on Windows XP. On this Web server, I have a Web site configured with its home directory on a network share. In the Web site, there's a virtual folder pointing to a local folder on the Web server containing an ASP.NET application. I get a "Failed to start monitoring ...more >>

Frames
Posted by André Almeida Maldonado at 4/21/2004 4:12:12 PM
Hey guys... I have a frameset that separate my webpage in 2 parts. When the user clicks in a button in the frame 1, I need to reload de frame 2. How can I do ti??? P.S..: I can do it with JavaScript, but if I'm using .Net, I believe that I don't need to use JavaScript. Thank's ...more >>

textbox property - columns: why does it make width much wider than it needs?
Posted by TS at 4/21/2004 3:59:42 PM
If I want a textbox to be wide enough to hold only 2 characters and I set the columns=2, the textbox ends up being much wider than is necessary. I would guess that it is as wide as the 2 widest characters as well as to account for larger fonts, but it seems like its more than enough; any reason ...more >>

Database Access vs Turning on SessionState
Posted by CW at 4/21/2004 3:32:22 PM
My asp application currently does not rely on session state at all, and I have turned it off. The function that I need to implements include a customer specific price list. I am thinking of cacheing the price list (which is different for each customer) in session variables rather than retrievi...more >>

The XML file cannot be displayed error
Posted by ericvdb at 4/21/2004 3:31:30 PM
Hi all, I'm trying to fill a PDF form with asp.net using the FDF Toolkit. I have a simple form with a textbox and a button. When the button is clicked, the pdf should open with the field filled from the textbox. When I open the page in IE (whatever version) i get : #########################...more >>

Javascript in asp.net
Posted by Cheryl at 4/21/2004 3:31:09 PM
Hi, If I have 3-pages of javascript to be put into the .net page. The 3-pages of javascript can be separated file and it also can be put into the .net page. Can suggest the best way to do it and how. Thanks Cheryl ...more >>

Handle requests for virtual URLs
Posted by Emad Ibrahim at 4/21/2004 3:26:14 PM
I would like to handle URLs for folders that don't exist e.g. www.mysite.com/123 123 is actually an ID of an article so I would like to trap the request and extract the ID and display the article. If I do this now I get a 404 error because 123 is non-existing folder. This is kind of simila...more >>

Inner exception
Posted by stuart at 4/21/2004 3:24:35 PM
Hi, Is it possible to find out if an exception has an inner exception or not. for example if I catch an exception of type "System.Web.HttpException" it is likely (but not definate) that the error conatians an inner exception. what I would like to do is determine if the exception has an i...more >>

Mini search engine (call center)...
Posted by A. Nonymous at 4/21/2004 3:16:35 PM
Hello, I have developed a call tracking system for a small call center utilizing an ASP server and an MSSQL server where the call center reps use IE6 to enter in details of calls though the company's intranet system. I have also made a search engine that basically uses a dynamic stored p...more >>

Data List Newbie Question
Posted by Bishop at 4/21/2004 3:01:37 PM
I have a DataList with a command button. When I click the command button it runs the following sub routine: Sub DataList_ItemCommand(ByVal s As Object, ByVal e As DataListCommandEventArgs) If (e.CommandName = "Details") Then txtTest.Text = e.Item.ItemIndex End If End Sub The pro...more >>

save user credentials
Posted by mudasir_ahmed NO[at]SPAM yahoo.com at 4/21/2004 3:00:52 PM
Guys : I have written a web page which basically has text box and a list box server controls on it. each time the user enters a value in the text box it will put it in the list box. the problem is. since the website has to go through the intranet security it asks for a userid and password e...more >>

StateServer pass byref threading problem
Posted by alex NO[at]SPAM logic-tools.com at 4/21/2004 2:52:34 PM
We are switching from InProc mode to StateServer mode and have a somewhat unusual problem that I have not seen discussed. Sometime we pass the session object to a thread by reference and the thread will modify objects in the session. The thread does some work and updates status in the session ...more >>

DataBinder.Eval question
Posted by Chris at 4/21/2004 2:33:10 PM
I have a class method that returns a DataSet. I use bind this to my Repeater control. Inside the Repeater i have <ItemTemplate> <li><%# DataBinder.Eval(Container.DataItem, "name") %> <%# DataBinder.Eval(Container.DataItem, "enabled") %></li> </ItemTemplate> I want to include a...more >>

use Modal Dialog in ASP.NET
Posted by Grey at 4/21/2004 1:57:13 PM
how to show Modal Dialog in ASP.NET, pls give me some example.....more >>

Strange compiler behavior after CS0006 error
Posted by Kris Vanherck at 4/21/2004 1:50:54 PM
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\spsweb\0e3514bf\cb1844e7\assembly\dl2\3b163f 16\00452d31_84e5c301\infragistics.webui.ultrawebg...more >>

Convert string to textbox
Posted by Steven K at 4/21/2004 1:46:41 PM
Hello, I am having trouble converting a string to a textbox object. I am getting the following error: Value of type 'String' cannot be converted to 'System.Web.UI.WebControls.TextBox'. Dim objUpdate As New TextBox Dim ctrFor As Integer = 1 Dim strForLoop1 As String = "tbxHandle0...more >>

Printing cells in a table
Posted by Joe at 4/21/2004 1:39:39 PM
I have a html table with several cells in it. I want to print 2 adjacent cells from the table. I wasn't sure too sure how to print it so I created <style type="text/css" media="print"> ..noprint {DISPLAY: none} </style> I set the class = "noprint" for the cells I don't want printed. Both c...more >>

Good book on the asp.net internals?
Posted by Abhishek Srivastava at 4/21/2004 1:37:48 PM
Hello All, Which is a good book to learn asp.net internals? I have books on asp.net but they are more on the programming side. Is there something like Jeffery Richters book on .net really inside stuff? regards, Abhishek. ...more >>

Sub Page_Load doesn't always execute?
Posted by darrel at 4/21/2004 1:30:05 PM
I'm trying to create a usercontrol that links to the same page as it is on along with a new query string in hopes that I can trigger the 'Sub Page_Load' to grab the querystring and reformat the page. The problem is that it seems as if there is a caching issue, as linking to the page itself SEE...more >>

Where's the best place to start with C# and ASP.net ?
Posted by Alan Silver at 4/21/2004 1:02:57 PM
Hello, I am an experienced VB/ASP/COM/SQL developer. I am about to embark on a new web application which is going to be hosted on Windows 2003 Server (previously been using NT4 Server). As this includes the .NET framework, I thought it might be a good opportunity to look into ASP.NET and se...more >>

System.Web.Mail.SmtpMail.Send throws Could not access 'CDO.Message' object.
Posted by DotNetGruven at 4/21/2004 12:59:46 PM
System.Web.Mail.SmtpMail.SmtpServer = "10.50.7.160"; System.Web.Mail.SmtpMail.Send(mailMessage.From, mailMessage.To, mailMessage.Subject, mailMessage.Body); What could cause this exception to be thrown in code behind on an XP Pro development machine? - Do I need to install C...more >>

File download link does nothing
Posted by John Spiegel at 4/21/2004 12:57:03 PM
Hi all, I'm trying to do something simple here...just provide a link from which a user can download a file. I'm using Server.MapPath() in my codebehind to find out physically where the file is then binding that in the aspx page like so... if (!IsPostBack) { Session["DownloadPath"] = ...more >>

Returning Types Question
Posted by Chris at 4/21/2004 12:43:23 PM
I have an admin class that has add/update/delete/getAll functionallity for customers. My add/update/delete's will return bool's for success/failure which is fine. My getAll method will need to return all rows of customers, which in turn will be bound to a datagrid/repeater. My question is w...more >>

Login failed for user 'sa'" datagrid control - SqlDataAdapter
Posted by Jerry Higgins at 4/21/2004 12:40:33 PM
Curt and Chris, Original post - April 20. I added a SqlDataAdapter to a web form, created a data connection, and generated a dataset. I then connected it to a DataGrid control. When I do this using the SqlServer database on my machine everything works fine. When I do it using a SqlS...more >>

'&' in DataBinding expressions
Posted by Vik at 4/21/2004 12:23:19 PM
Concatenation operator & used in the databinding expressions for the datagrid template columns appears as '&amp;' in HTML. It causes an error when opening the pages. I have to replace '&amp;' by '&' each time I edit the template column. Is there a way to avoid this problem? Thank you. ...more >>

animate images on the fly
Posted by DaveF at 4/21/2004 12:21:54 PM
I need to take several images and make them into an animates gif/png on the fly. Possible?? Example??? ...more >>

Access Application object from class
Posted by Cliff Harris at 4/21/2004 11:40:04 AM
I have a utilities class in my ASP.Net application that encapsulates functions that I use often. I would like to use this class to access some object that I have acces to on a page, like Request, Response, and Application... is there any way for me to access these without having to pass them in...more >>

Get cell string value from datagrid
Posted by Niclas Lindblom at 4/21/2004 11:13:08 AM
Hi, I have a datagrid with 2 columns. 1 is a bound column and the other one is a button column configured as a link button. When I click the link button, the ItemCommand Event fires as it is supposed to. I am able to get the value from the first column using e.item.cells(0).text but I...more >>

browser history - back button.
Posted by Dave Carroll at 4/21/2004 11:06:05 AM
We are developing a secure site. One a user logs off of the site we do not want them to have the ability to hit the back button and display the secure pages on the site. We started to look at using server.transfers rather than response.redirects to navigate the users through the site. The prob...more >>

Javascript in asp.net
Posted by Cheryl at 4/21/2004 10:51:48 AM
Hi, If I have 3 pages long of javascript to be put into the asp.net. Is there a better way of doing it? Thanks Cheryl ...more >>

migration from ASP to ASPX deployment question
Posted by z. f. at 4/21/2004 10:11:42 AM
Hi, I have a deployment question for a migration from ASP to ASP.NET. the application is an e-commerce web-site that have loadbalancing of 4 web servers running (today) windows2000 with IIS5 and will run windows2003 server in the future. 3 developers working on the web app, and today when n...more >>

ASPNET in DMZ - PLEASE HELP
Posted by Bill Carpenter at 4/21/2004 9:29:53 AM
I would like to set up a ASPNET application like this: I want a box that serves as a webserver outside the firewall, this box would forward requests to a ASPNET application inside the firewall through port 80 only, similar to how websphere and apache work together. I can do redirects but I ...more >>

Cache question
Posted by DaveF at 4/21/2004 9:26:09 AM
I am developing a portal web site that every user has different page specific data that they can see under security definitions. Would caching work in a situation like this?? -- Dave ...more >>

Printing in ASP.Net (Client/Server side)
Posted by africa_pig NO[at]SPAM hotmail.com at 4/21/2004 9:13:49 AM
Hi, It is a quick question... Is that impossible to print the page(Web Form .aspx file) in client side using GDI+ like PrintDocument pd = new PrintDocument(); pd.print(); As I know it is a server side printing... and is that possible to make it to client side printing or it must be prin...more >>

allow one user at a time to run aspx page
Posted by doronro NO[at]SPAM cellcom.co.il at 4/21/2004 9:11:54 AM
Hi. Is there any way to enable only one user to process an asp.net application web form at one time while other forms in the same application can (and should) support multiple users at the same time? Thanks a lot Doron...more >>

Parent window keeps the focus! grrr
Posted by elsa_luis NO[at]SPAM hotmail.com at 4/21/2004 8:04:25 AM
Hi everyone, I have this problem hope you could help me... I have an A.aspx page with a button, when I click the button I would like to open another window with containing B.aspx. The problem is that the window B.aspx appears fine but the focus returns to the parent (A.aspx), I would like the f...more >>

GetLastError in defaultRedirect page?
Posted by Dave at 4/21/2004 7:41:06 AM
Hi I want to know if it's possible to user Server.GetLastError() in my AppError.aspx below? The GetLastError is not available here and returns null. I'm using Application_Error event to send an email, but I also want to create a custom error page in the AppError.aspx that displays some of the er...more >>

Adding a radion button at run time
Posted by robert.bull NO[at]SPAM wbp.org at 4/21/2004 7:21:54 AM
I am trying to add a radio button at runtime in an asp.net web form but I keep getting the error message "type 'RadioButton' must be placed inside a form tag with runat=server". I use the following code: Dim rbYes As New RadioButton() dim sStyle as string sStyle = "POSITION:absolute; TOP: 2...more >>

Can I modify the Request object in ASP.NET?
Posted by Marc.gingras NO[at]SPAM statcan.ca at 4/21/2004 5:51:32 AM
Hi, I tried to modify the request object when my aspx page is loaded(or before). When I try to do it a received a "Read only" error message. Is it possible to modify a Request when the server received it? What I want to do is something like that: Me.Request.form.Item("Name")="NewName" ...more >>

.NET emailing problem
Posted by Mark Rodseth at 4/21/2004 4:05:13 AM
Okay, this is really annoying me so if you can help I'll be very gratefull. I am trying to send an email using the System.Web.Mail Namespace - MailMessage and SMTPMail classes - and something very strange is happening. When I set the EmailFrom field, for example "Joe Bloggs <joeblogg...more >>

Re: Redeply asp.net web pages
Posted by venrass at 4/21/2004 3:58:10 AM
I have deployed one asp.net project to my production server fro development server by creating a web setup project and installing th project in the server by clicking setup file. Now i had made some changes in the codebehind files of some web page in development server ...How will i reploy the...more >>

Threads for asp.net
Posted by kackson NO[at]SPAM yahoo.com at 4/21/2004 3:44:30 AM
Hi. When writing web application in java, I can have different threads running and a way to ensure that no one thread access/change the same data at the same time. How does microsoft handle this if I've my web application written using .net? Thank you....more >>

Connecting ASP.NET to SQLServer,Somebody,Please!!
Posted by Mohammad-Reza at 4/21/2004 2:41:04 AM
It is now 3 months that we are trying to connect ASP.NET to a SQLServer located on another system However we act,we get a fatal error We need someone to explain the way of connecting to SQLServer step by step from either VisualStudio.NET or FrontPage 2003 Our goal is to retrieve records from SQLS...more >>

WebRequest - internal server error
Posted by jeffs NO[at]SPAM mbasys.co.uk at 4/21/2004 1:35:57 AM
I am using System.Net.WebRequest to request an aspx from another aspx. If the remote requested page is accessed using a url in the form http://localhost everything works fine. However if the request is made using http://<machinename> I get an internal server error. The requests are made to th...more >>

Skinable web forms
Posted by SOS at 4/21/2004 12:19:03 AM
Hi , i am trying to write a skinable web site. i created several user controls for variuos operations such as login , page navigation and etc. how can i load some "custom controls" in these "user controls" ? i use of Page.LoadControl method on these user controls but i get this error : "object...more >>

Newbie: Please help!
Posted by J at 4/21/2004 12:05:11 AM
Hi :) I've just started using ASP so I know this will be very easy for most of you to answer; I an asp file/page. Here is the code: <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=is...more >>


DevelopmentNow Blog