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 > november 2003 > threads for friday november 7

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

DataAdapter/Update problem
Posted by Elmo at 11/7/2003 11:24:21 PM
I've got a situation where I'm trying to fix an existing table - - The Fname Field has both First & Last Names... So - I've populated a Dataset with the ID, First and Last names - - - I'm iterating through the datatable, Fixing the datat and assigning the First and Last name to variables, wh...more >>

Client side validation on Mozilla..
Posted by Rocky Moore at 11/7/2003 11:22:54 PM
Has anyone got CustomValidators to work on Mozilla at all? If not, do you have idea where .NET's client side code is breaking on Mozilla? Is there any other way to validate a checkbox is checked on the client side other than a CustomValidator? Rocky Moore www.GotTheAnswerToSpam.com ...more >>

ASPX pages show source instead of loading.
Posted by rooster575 at 11/7/2003 10:42:02 PM
Anyone ever see this? It's as if IIS doesent know what to do with .aspx pages. Yes, the .NET framework is installed, and reinstalled. Thanks ...more >>

asp.net and microsoft access
Posted by Benny at 11/7/2003 10:23:43 PM
hello all, i want to implement an asp.net web application using microsoft access as its databse. im looking for some articles that describle how to security a microsoft access database. thanks, benny *** Sent via Developersdex http://www.developersdex.com *** Don't just participate ...more >>

asp.net and microsoft access
Posted by Benny at 11/7/2003 10:23:42 PM
hello all, i want to implement an asp.net web application using microsoft access as its databse. im looking for some articles that describle how to secure a microsoft access database. thanks, benny *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in...more >>

how to detect if a file is a valid jpeg file ?
Posted by THY at 11/7/2003 10:21:58 PM
Hi, After we let the user upload file to the server, how do we actually detect if that is a valid jpeg file ? thanks, Tee ...more >>

User Controls
Posted by migeorge NO[at]SPAM acer-access.com at 11/7/2003 8:17:01 PM
Thank you for any help you can provide. This is what I have: index.aspx - contains nothing but a form with runat = server header.ascx - contains asp image box welcome.ascx - contains text footer.ascx - contains text login.ascx - contains asp/web labels and text boxes. The index page is si...more >>

asp.net problems
Posted by Kim Kitchen at 11/7/2003 8:08:30 PM
I have an ASP.NET app on winXP, worked before, now suddenly I get "Server Unavailable", it serves plain asp and html pages, but is seems the .net choked wtf? ...more >>



removing the time portion of date field
Posted by Serge Poirier at 11/7/2003 6:41:26 PM
Good Day Folks, I'm displaying a date field from an Oracle table in a datagrid with the following template. <ItemTemplate> <asp:Label id="hiredate" runat="server" Text='<%# DataBinder.Eval (Container.DataItem,"hiredate","{0:d}") %>'> </asp:Label> </ItemTemplate> Does anyone kn...more >>

Strange question
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/7/2003 6:25:02 PM
Hello Guys, I have a strange question regarding session. When I refresh a page, would the session objects be retained or discarded? What about the values in the hidden fields and text boxes of .aspx file? TIA!...more >>

Why do all my .NET pages expire?
Posted by DesignerX at 11/7/2003 6:03:55 PM
I have forms, the user enters the data and submits. This continues through several pages. If I try to go back (using the back button) the page has expired. I'm not setting the page expiration tho. Very frustrating that I can't simple go back to a post submitted page (without having to resubmit)....more >>

how to open a new window with no toolbar after login
Posted by chiragk21 NO[at]SPAM yahoo.com at 11/7/2003 5:46:43 PM
I have a one single login page with two textbox of Username(txtUsername) and password (txtPassword) and two buttons with one Login(cmdLogin) and Cancel(cmdCancel). Now in the code behind I have code like Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...more >>

DLL problem
Posted by Janaka at 11/7/2003 5:41:13 PM
I've recently migrated to a new Windows 2003 server set-up. I've got a dedicated File storage server which contains all the physical files. Another server is the actual web server which uses a network share to the File storage machine. All the files seem to be referenced correctly and if I run...more >>

How to trap browser close event in SERVER side?
Posted by Denon at 11/7/2003 5:17:42 PM
How to trap browser close event in SERVER side? I read a lot of forum message, it talk about onclose(), onunload() and even onbeforeunload() event. However, all of theses are based on javascript written on the client browser , like IE. To send a POST to web server to acknowledge its close event....more >>

how do I force IIS to single thread my web service??
Posted by Jason at 11/7/2003 4:51:30 PM
I have a web service running on IIS 5.0. We know the web service is not threadsafe, and want to force aspnet_wp.exe to only run one instance of our web service. What settings do we use to do this. I have tried modifying the machine.config file and setting maxWorkerThreads=1. However, t...more >>

Web.config file
Posted by Murat Dikici at 11/7/2003 4:19:06 PM
Hello, The file structure on the server is: /FileUpload - Web.config - upload.aspx I try to run the upload.aspx but it gives me a runtime error message like this: ---------------- Description: An application error occurred on the server. The current custom error settings for thi...more >>

accessing problem in subwebs
Posted by Peter at 11/7/2003 4:18:38 PM
Hi, I'm getting the following error when I run/debug my application: Could not load type 'MyApplication.SomeNamespace.SomeClassInNamespace' To give you more background information I have an application, with the following folder structure: MyRootFolder - MySubFolder ...more >>

How to get the width/height of the active area in a browser?
Posted by Jim Ciotuszynski at 11/7/2003 3:13:36 PM
Anybody know where I can find an example or documentation on how to get and possibly set the width/height of the active browser's window. Thank in advance, Jim Ciotuszynski ...more >>

FTP and aspx
Posted by GSK at 11/7/2003 3:04:13 PM
can someone do ftp and download all aspx pages from a web site.? Is there a way to stop this.? Thanks...more >>

XML
Posted by Mark Fox at 11/7/2003 3:03:09 PM
Hello, I'm new to XML in ASP.NET and have some XML: <Reason> <ReasonCategory>Death</ReasonCategory> <Contacts> <Contact> <Name></Name> <Phone></Phone> <Address></Address> <CityStateZip></CityStateZip> <Relation></Relation> <Is...more >>

Web Farms
Posted by Cathie at 11/7/2003 2:59:47 PM
Can any one point me to a good article covering things I have to consider when deploying to a web-farm and/or how to deploy my ASP.NET application to a web farm? I realise the session state needs to be set to remote server or SQL and I am using windows authentication, so the forms authentication...more >>

Locking a DB while updating...
Posted by Bucko at 11/7/2003 2:51:46 PM
How important do you guys feel locking a database is while updating/adding information? Do you do it with every app you make? Only very high volume (traffic) apps? I'm trying to decide if my app needs it. ...more >>

how would you do this?
Posted by Brian Henry at 11/7/2003 2:43:46 PM
I have a dynamically generated page, which shows a repeater control on it with data. then a link to add a new item, i want the link to open up a small window which lets you input data (a javascript window.open command to open inputdata.aspx) then when the user clicks on the add button the data i...more >>

Errro when running project
Posted by John at 11/7/2003 2:39:01 PM
Hi When I try to run my project in vs.net 2003 I get this error; "...Unable to start debugging on the server - error...". I am using windows 2000 server. What do I need to do to fix this? Thanks Regards ...more >>

scrollbar width
Posted by Brian Henry at 11/7/2003 2:32:58 PM
is there anyway to get the width of the scrollbar from the client machine to be used in the asp.net codebehind? thanks ...more >>

Which config file?
Posted by Erik J Sawyer at 11/7/2003 2:20:43 PM
Is there any documentation on using config files with multiple assemblies? For example, I have a class library installed to the GAC. This is then used in several ASPX pages. If the class library requests settings from a config file, whose will it get: - the app.config that was built wi...more >>

Resolving a shortcut
Posted by Anita C at 11/7/2003 2:11:16 PM
Hi, How can one resolve a shortcut in asp.net(c#) ? I'd like to find the value of the targetpath property of a particular shortcut, by providing the path to the .lnk file. A code sample will be great. Thanks in advance ...more >>

Cancelling a HTTP data post
Posted by del at 11/7/2003 1:52:30 PM
Is there a way to cancel a file upload after receiving the header of the file? Basically, I want to allow the user to upload files (with a certain size limit) to the server. Any files larger than the preset size should be ignored. Once the user submits the form I parse the http request...more >>

404 Error in ASP.NET pages under Windows Server 2003
Posted by Matthew Louden at 11/7/2003 1:39:50 PM
My ASP.NET application is working fine when I run under IIS Personal Web Server in Windows 2000 machine. However, after I upload all the files to the Windows Server 2003 machine, and tried to run the application, it has 404 error on all .aspx files. Even I re-compile and build the whole project i...more >>

OT: Shopping cart reccomendations
Posted by John at 11/7/2003 1:26:27 PM
Hi I am looking for a well designed asp.net online cart/shop that can also be extended as needed. Thanks Regards ...more >>

TextReader in Cache Leaks?
Posted by hifchan NO[at]SPAM yahoo.com at 11/7/2003 1:25:45 PM
Got in a difficult situation of storing and retrieving TextReader in Cache, but found no such post yet. Tried to store a textreader into Cache object in a similar way illustrated in .NET's SDK doc ("Retrieving Values of Cached Items"): ' ----------------------------- ... Dim CPCache As...more >>

Accessing cookies in base class
Posted by Luca Bertoldi at 11/7/2003 1:16:02 PM
Hi all, I developed a base class that inherits from System.Web.UI.Page and I'd like to check some cookies in the constructor of the class. I tried with if (Context.Request.Cookies["login"] == null) { Context.Response.Write("<script language='javascript'>document.location='/" + currContext.Requ...more >>

What happens when you change the aspnet user password?
Posted by jn148 NO[at]SPAM yahoo.com at 11/7/2003 12:56:57 PM
I administer three IIS6 servers for a large company where the programmers are now requesting that we change the password for the local aspnet user account on the server to a known password (no longer windows controlled). Can I expect any additional fallout from this change - or is this relati...more >>

Caching and Filter?
Posted by George Ter-Saakov at 11/7/2003 12:48:30 PM
I have a Response.Filter set. Will it affect caching (by ASP.NET) of my page? Basically the question is caching happens before or after filtering? My understanding ,because partial caching is possible, it happens before filtering. Thanks. George. ...more >>

Querystring length
Posted by Kevin Bilbee at 11/7/2003 12:34:36 PM
can anyone tell me the limitation of the querystring length for IIS on WIN2k and WIN2k3 Kevin ...more >>

newbie: Dynamically added controls are lost after postback
Posted by NotYetaNurd at 11/7/2003 12:31:35 PM
Hi , Am very new to asp.net i did somethign like this CheckBox cbox = new CheckBox(); cbox.Text=txtTask.Text; MainPnl.Controls.Add(cbox); and when i call the same routine again the checkboxes are replaced with the new ones... regards, ..... ...more >>

HTTP Handler???
Posted by dwa at 11/7/2003 12:27:42 PM
I can't get the httpHandlers settings to work my web.config file My httpHanders section in web.config looks like this: <httpHandlers> <add verb="*" path="*.spud" type="async.AsyncHttpHandler,async"> </httpHandlers> In my service's code-behind, I've got an AsynhHttpHandler implement...more >>

Finding out if any files exist in a directory
Posted by Anita C at 11/7/2003 12:01:20 PM
Hi, What code do I use to find out if any files exist in a particular directory, using the Directory /File object ? Thanks ...more >>

DataGrid Paging Question
Posted by Matthew Louden at 11/7/2003 11:49:31 AM
I created data grid that retrieves data from the database. In Paging property, I set "AllowPaging" to True, and "PageSize" = 5. If I have 10 records to display, I assume ASP.NET will partition in 2 different pages to display the records. When I run the application, it has an arrow on the datag...more >>

'Access Denied' when using javascript to change page location
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/7/2003 11:40:57 AM
Hello, I have a problem when I try to do this on a aspx page.. Is there anything wrong with this approach? This is the javascript function <Script Language='JavaScript'> function OpenLink(Link){ parent.right.document.location=Link; }</Script> And I call it like this: <A...more >>

ViewState, Dynamic UserControls, and the Back Button
Posted by john NO[at]SPAM snapjax.com at 11/7/2003 11:34:18 AM
My web application dynamically creates a UserControl and saves it to a Session variable called LastControl. When a postback occurs, I simply load the LastControl and everything works great. The problem occurs when the user hits the Back button. Then the "LastControl" might be a different Use...more >>

help: image upload and saving as optimised?
Posted by mark | r at 11/7/2003 11:24:16 AM
anyone know a tutorial or sample code for uploading an image to a web server and optimising it and saving the optimised file to a folder? also can you mix .net and regular asp on the same page? ....oh and while im at it, anyone know a site that tells you how to make querystrings into frien...more >>

ASP.NET application works in IIS PWS, but not in remote IIS.
Posted by Matthew Louden at 11/7/2003 11:21:54 AM
My ASP.NET application is running without error in my local machine (IIS PWS). However, once I upload all the ASPX files to the remote IIS machine with Windows Server 2003 OS, it no longer works. Here's the run-time error, any ideas?? Server Error in '/' Application. Runtime Error De...more >>

Returning a DataSet from a Web Services
Posted by Boffo Jinko at 11/7/2003 10:53:37 AM
This should be obvious, but I can't figure it out... I have the following web service: <WebMethod (Description:="Returns a dataset of all people from the database.")> _ Public Function GetAllPeople() As DataSet Dim objConn As New OleDbConnection(Application("dbString")) ...more >>

how to create stand-alone page in VS
Posted by Tom Hartnett at 11/7/2003 10:39:14 AM
Let's say that for whatever reason I want to write a simple ASPX page with no code-behind; all the code will be in the SCRIPT tag. I don't want to write out the code for the server controls in notepad, but I also don't want to create a whole web app project in Visual Studio. Is it possible to ...more >>

Please help with Radio buttons
Posted by momo at 11/7/2003 10:19:34 AM
Hello all, I need some help with radio buttons. This is what I have. I have 15 groups of radio buttons and each group contains three radio buttons which non of them are selected. I need a way to see which button in each group was selected. All these radio buttons are optional, meaning it do...more >>

Retrieve Page Name in asp.net page
Posted by Ersin Inan at 11/7/2003 10:07:53 AM
Hi All, Is there a way to get page name in asp.net code behind? I use this to log error messages in DB ( and in which page the error occured ) For instance , if it is welcome.aspx , then in C# code , I want to get this page name to store in DB ( There is a way with Request object , but I want t...more >>

can someone help
Posted by Marc Bishop at 11/7/2003 10:05:38 AM
I'm trying to get this to work but i'm at a loss as to how. i've searched google without much help code Dim ArrCart As new ArrayList() ArrCart = CType(Session("sesCart"), ArrayList) ArrCart.add(sID & ",1") Session("sesCart") = ArrCart So what i want to do is maintain my Arraylist of items...more >>

active directory and asp.net error.
Posted by Jamie at 11/7/2003 10:02:14 AM
I'm getting the following error exception when using the code below. I've seen a number of people post the same problem. Many of the solutions say to use impersonate=true in web.config, or update machine.config to specify the username and password in the processmodel element, or to use delegat...more >>

Hot to show user control on the toolbar.
Posted by George Ter-Saakov at 11/7/2003 9:49:53 AM
I have a user control. Can I put it on the toolbar? The control is part of the same project. Thanks. George. ...more >>

Having One Page Produce Multiple Views
Posted by Tim Rogers at 11/7/2003 9:49:45 AM
I'm trying to figure out how to make one aspx file produce multiple views depending on the value of a query string, etc. I've done this in classic ASP before where you might key off a URL like www.mysite.com/myfile.aspx?step=3. So, in myfile.aspx I would be checking the value of 'step' and wou...more >>

Email From Forms with asp:panel.(s) Only one panel works?
Posted by harrysingh1976 NO[at]SPAM hotmail.com at 11/7/2003 9:16:40 AM
Hi, Can anyone help. I have a asp.net page (c#), with two panels, both of which have asp:textboxes on. When I press the first button, the second panel shows fine. When I press the button in the second panel, it triggers the script to send the form details by email. Problem is, the field...more >>

validation controls and custom javascript functions
Posted by Chris Barrow at 11/7/2003 8:47:17 AM
Hi everyone, Does anyone know if it is possible to append your own javascript function onto the end of a button's onclick method when validation controls are used? Here is an example of the script that is generated when validation controls are use on the form: onclick="{if (typeof(Pag...more >>

ASP.NET, works on XP but not 2000 ??!
Posted by harrysingh1976 NO[at]SPAM hotmail.com at 11/7/2003 8:36:21 AM
Hi, Bit of a weird problem here. I have a development PC (XP Pro) that I work on. For example I have created a page with RequiredField validators that work fine when I test the page. Problem occurs when I upload to my server (2000), the page appears ok, but things like the RequiredField ...more >>

Unspecified error | FrameWork 1.1 | ASP.net | SQL 2000
Posted by GotdotNet at 11/7/2003 8:36:19 AM
I get this error once in a while and I normally could fix it by restarting IIS. However, I would like to find out what causes this. Can anyone help? -----------------------------error screen----------------------------------- System.Data.OleDb.OleDbException: Unspecified error at System.Data.OleD...more >>

CDO Message Object ERROR
Posted by dwa at 11/7/2003 8:33:46 AM
We're trying to use the CDO Message object to send an SMTP message with ..NET. Testing the code on a machine with FAT32 file system, everything works fine. Running under XP or Win2K with NTFS, we receive a message to the effect: "Unable to access CDO.Message object". This would seem to be...more >>

System.Data.OleDb.OleDbException: Unspecified error
Posted by T8 at 11/7/2003 8:06:19 AM
I have a asp.net (framework 1.1) site interfacing against SQL 2000. It runs like a charm 99% of the time but once in a while I get the following "unspecified error". Sometimes it would resolve by itself (asp.net recycled?); it also can be solved by restarting IIS. Any ideas what cause(s) this to h...more >>

Server Application Unavailable HTTP 500 error
Posted by Keith at 11/7/2003 7:59:23 AM
All, I have been told this is an ASP.NET issue and not an IIS issue, so I am posting this here. I have a problem with ASP.NET returning an HTTP 500 error when trying to run ASPX pages on Windows Server 2003 Enterprise Edition Only. This works on Windows 2000, Windows 2003 Web Edition ...more >>

Session Problem
Posted by acko bogicevic at 11/7/2003 7:37:38 AM
Hi I have a session variable "sUser" On Page_Load on Page1 i give a value for sUser like this Session("sUser")="User1" When i go to Page2 from Page1 this code works fine: Response.Write(Session("sUser") But when i go to Page3 from Page2 code above does not work fine. I always get ""...more >>

Re:This is for the nth time I am posting. Is there no one to help!
Posted by ani at 11/7/2003 6:47:34 AM
This is how the presentation code look like. If I use runat = server, ie; when I try to use onserverclick on the button the javascript doesn't work . The displayanswers method in the form returns a string of html text,basically a table with radiobuttons or checkboxes aligned in it. <form...more >>

Installing ASP.NET before IIS
Posted by Andrew at 11/7/2003 5:16:53 AM
Hi, I have a problem. I installed the ASP.NET Framework prior to installing IIS on my new computer. Now I am getting messages that say asp.net is not registered. Can anyone help with this? Thanks, Andrew ...more >>

IIS and ASP.NET
Posted by Andrew at 11/7/2003 5:03:07 AM
HI, I ...more >>

Basic question
Posted by Paul K at 11/7/2003 4:40:10 AM
I'm having a bit of trouble understanding how to get an asp.net page to look and feel like the asp page I have already created. It's a basic login page, which I have attempted to create in the vs html editor as so (just the form code): <form id="Form1" method="post" runat="server"> <a...more >>

'Access is denied' error
Posted by David at 11/7/2003 4:19:41 AM
I'm developing an ASP.NET application to run on Win2K server with IIS 5.1, which has run perfectly happily in various development, test and staging environments. I've recently deployed it on one of our production servers and I'm getting an intermittent 'Access is denied' error when pages a...more >>

help me about asp.net
Posted by aluka at 11/7/2003 4:19:41 AM
Question about VS.net2003: "Visual Studio .Net has detected that the Web Server is not ASP.NET 1.1 Version. You can not run ASP.NEt Web Application or Service" What should i do:? i have already installed .Net Framework 1.1,but it still prompt this error again!...more >>

How to upload file to server ?
Posted by THY at 11/7/2003 3:47:24 AM
Hi, can anyone give me a sample of browse to select file, and then upload it to server ? thanks. ...more >>

ASP.Net - Help
Posted by Abhishek at 11/7/2003 3:36:02 AM
I am having problem in using ASP.Net server side controls. The user has to fill a form with has few server side controls. The page is bit long and the user has to scroll down and access few controls. If the user scrolls down and access a server side control, the page gets refreshed and doe...more >>

To John Saunders
Posted by Chance Hopkins at 11/7/2003 3:33:04 AM
Hi, I just wanted to apologize for my post the other day. I tried to in that thread, but it's not showing up here for some reason, maybe I got censored ;-). Wanted to make sure I got through. Have a nice life. ...more >>

convert gregorian date to jalay date
Posted by h_ghanaty at 11/7/2003 2:38:14 AM
how i can convert gregorian date to jalaly(Iran date) with vb.net...more >>

cookies....
Posted by Jenny at 11/7/2003 2:09:03 AM
Hi guys I dont know, what I'm doing wrong but meanwhile I hate the cookie subject.... This is my source Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cookie As New HttpCookie("TestCookie") cookie.Name = "TestCookie" ...more >>

basic help needed on using members in asp pages
Posted by francoismalgreve NO[at]SPAM hotmail.com at 11/7/2003 12:47:38 AM
I have the following ASP.NET page : <!-- event.aspx --> <%@ Page Language="C#" %> <html> <script runat=server> protected int counter; protected void OnClickMyButton(object src, EventArgs e) { counter++; _message.InnerText = "You clicked the button " + counter + " times!"; } prote...more >>


DevelopmentNow Blog