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 > march 2004 > threads for tuesday march 16

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

Form object doesn't support submit
Posted by Hugo Wetterberg at 3/16/2004 10:23:14 PM
I have a real problem with this page. It simply refuses to perform a postback, claiming that the form doesn't support submit(). I cannot figure out what it's complaining about. Please help me with this one. /Hugo Wetterberg ICQ:7355985 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transition...more >>


How do I read the input stream in global.asax in c#?
Posted by Nigil LaVey at 3/16/2004 9:14:45 PM
greetings all, I am trying to read the input stream from global.asax before it output those streams to client side? I have a page called main.aspx <html> <head> <title></title> </head> <body> </body> </html> what I need is to search for "<title>" tagname and replace with some other s...more >>

Edit collection property from Property window...
Posted by nobody at 3/16/2004 8:15:12 PM
If I've got a property on my web control that is a collection (of strings), how can I have it allow the user to edit those strings through the property window at design time? The property on my webcontrol is defined as: Private WithEvents m_Choices As ChoiceList Property Choices() As ...more >>

Help! Refresh controls at design time.
Posted by nobody at 3/16/2004 6:43:13 PM
I've got a solution with two projects. One is my web application, the other is a Web Control Library. The .aspx page has an instance of my custom web control on it. When I make a change to the Web control's source and recompile the solution (both projects), the .aspx page still shows the old ...more >>

uploading files to a web service
Posted by Jim at 3/16/2004 5:05:11 PM
Hello, I need to create a web service that I can upload files to via a client browser. These files need to be relatively large (20 - 100 megs). I've tried making a simple asp.net file upload service using HtmlInputFile, but it always fails with large files. I can't seem to figure out how to ma...more >>

Open New Window Maximized
Posted by Bryan at 3/16/2004 4:21:07 PM
Does anyone know how to open a window maximized? I know how to open a window with a browser but I'd like for it to open maximized.... not fullscreen. Any help would be great!...more >>

Client Side Office Automation referencing ASP.net server controls
Posted by michael.shapleski NO[at]SPAM wipa.org.nz at 3/16/2004 4:13:18 PM
I am trying to write an aspx page that opens a populates a word document. As I understand it this Office automation should be done on the client side. However i can't get my Vbscript procedures referencing the ASP.NET dropdown list values There must be a simple way to do it, I have been 'l...more >>

how to determine opened web page
Posted by Ruby at 3/16/2004 3:57:39 PM
hi all, how can i determine weather my web page has already open or not in page.onload event thank Ruby ...more >>



ASP eating Javascript for VB code
Posted by Lloyd Sheen at 3/16/2004 3:30:02 PM
Read all my posts before you jump in with both feet please. The customer does not want to pay. The original web app was created with my copy of VS. If you create a page using the SDK you will have the same problem. If people do not complain about problems then they will not be fixed. Everyt...more >>

ASP.NET
Posted by Morys Kenworthy at 3/16/2004 3:14:30 PM
I am trying to find a web site where I can see ASP.NET code samples. Can somebody give me one? All I find out there is in VB code, I would like ASP.NET. Thanks again. ...more >>

Need help in ASPX!
Posted by Santosh at 3/16/2004 3:06:24 PM
Friends, I have a DLL which has a Method called WriteStream, which outputs to the screen just like a Response.Write (".......") I would like to use this in ASPX page, I have no problem instantiating this Object. But When I want to use this Inside a Procedure say <%@ Page Language="vb" au...more >>

ASP.NET - First, Previous, Next, Last record
Posted by Morys Kenworthy at 3/16/2004 3:04:08 PM
Can somebody give me a hand with this? How do I move the pointer to the first record, previous record, next = record or last record using ASP.NET? Some sample code would be = appreciated. Thank you in advance...more >>

Download Progress Title Bar
Posted by Jerry Camel at 3/16/2004 2:56:45 PM
When a user is downloading a file from my web page, the title bar has "x% of MyWebPage.aspx" rather than the name of the file being downloaded. Is there a way to make the title bar match the file being downloaded? Thanks. Jerry ...more >>

Dynamic Control in an Assembly
Posted by Lil' Dub at 3/16/2004 2:44:35 PM
I've written an assembly the dynamically generates a Table control and returns it. But, I can't seem to get it to draw on the page. It's called from the Page_Load and I've tried setting the ID of the Table control on the page the same name as the one returned from the assembly and I've tried ass...more >>

Templates
Posted by Ruslan Shlain at 3/16/2004 2:41:56 PM
I have been trying to find something online to get me started with this, but so far no result. I figured id try news groups. I need to be able to define a template and then based on the data that I get from the database, I need to display a printable format.(HTML, WORD, PDF). Is there a source t...more >>

can aspx app get startup path dynamically?
Posted by Rich at 3/16/2004 2:19:42 PM
When I copy files from one server to another I keep running into the problem that the app path directory keeps changing and I can't set a connection dynamically to like an mdb file. In a regular vb.net app I can say strPath = Application.StartupPath & "\myMdb.mdb" can I do something li...more >>

Dynamic Method/Event Invocation
Posted by RodBillett at 3/16/2004 2:14:19 PM
I guess I am just brain dead, but I cant figure this out for the world. in our asp.net application, I have a base page that ensures some logic is performed (or has been performed in the past) for some page. This logic consists of some setup and validation processes. I am wanting our custome...more >>

Web Service and Security
Posted by Matt Tapia at 3/16/2004 2:08:40 PM
I have a web app. that is on secure server (SSL) that calls a web-service on another service not secure (NO SSL). Is the data passed from the web service to the secure server protected because the server calling the web service is secure? Or is not protected at all because the computer with the w...more >>

namespaces + types
Posted by wh at 3/16/2004 2:05:56 PM
When I see a reference to a type, in most cases a comma seperates the type itself and what appears to be the name of an assembly, e.g. type="System.Web.UI.PageHandlerFactory, System.Web" My question is whether System.Web in the above example is the name of an assembly that the PageHandle...more >>

Server Application Unavailable error - HELP!
Posted by Bob H at 3/16/2004 2:05:24 PM
Hi, We're xfering an app from development to production server. When we try to call a page in the site we get 'Server Application Unavailable - please refresh..etc'. If I 'disable' the web config file, I can get a page up. Does our webserver guy need to add/change permissions for anything at...more >>

Finding field properties in SQL Server
Posted by Vik at 3/16/2004 1:50:43 PM
Is it possible to find out programmatically the properties of the fields as they appear in an SQL Server database - data type (char, text, money), precision, scale? Thank you. ...more >>

Getting the full name (not user name) of a user on an aspx webpage
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 3/16/2004 1:11:52 PM
Hi all, I'm trying to display the full name of a windows user (not their login name) using System.DiretoryServices. However, I keep getting the following error: Exception Details: System.Runtime.InteropServices.COMException: The network path was not found I'm using Windows 2000. I'm assi...more >>

basic login with database
Posted by Allen Anderson at 3/16/2004 1:06:15 PM
I've been reading a lot of articles on how to setup role based login and I don't quite get how it all comes together. What I want, is to be able to validate users against my database and allow them access to files/pages based on their user group (also in my own database). From what I've s...more >>

Every time have to compile twice
Posted by huayuli NO[at]SPAM yahoo.com at 3/16/2004 1:01:54 PM
I got a very strange compile error when I run the asp.net project from VS.NET. The strange thing is I ALWAYS have to run the project twice in order to see the page coming up. The first time if I click on the run button, it will give the following error and then if I run again everything will be ...more >>

Application Hangs .. HELP
Posted by Vince at 3/16/2004 12:56:06 PM
Not sure what my problem might be - I suspect it's something related to IIS though. I have 2 web applications on a server. 1 is the main application that accesses a couple of databases and gets user input. The 2nd app is just a single page that displays a label for testing purposes. Every once i...more >>

Forms Authentication
Posted by REB at 3/16/2004 12:49:12 PM
I use forms authentication to require users to enter a username and password <authentication mode="Forms"> <forms name="WebAuth" path="/" loginUrl="Login.aspx" protection="All" timeout="90"> <credentials passwordFormat="Clear"> <user name="MeMe" password="tester$" /> <user name="YouY...more >>

HttpStatusCode 404
Posted by Dan at 3/16/2004 12:24:36 PM
This status represents "Page Not Found". However, when I execute the code below with a purposely bogus URL, GetResponse throws an error before I can retrieve the 404 status. I've been told on this group that this is the way it's supposed to work. If that's so, why is 404 included in the HttpS...more >>

Still Trying to Understand Validation
Posted by Jonathan Wood at 3/16/2004 11:50:30 AM
Looking at the page loaded into the browser, I found the following inside of <form></form>: <input type="image" name="ContinueButton" onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " language="javascript" id="ContinueButton" src="http://localhost/[...]\Continue...more >>

DataGrid (web) question
Posted by Tim Mulholland at 3/16/2004 11:34:13 AM
(sorry if this is a repost - it never showed up in my newsreader) I'm not too well-versed on how the web datagrid works when you're both automatically generating columns, and setting some of them to be there manually. But here's my issue, maybe you can tell me how to solve it. I've got a dat...more >>

simple db-problem
Posted by Lasse Edsvik at 3/16/2004 11:17:21 AM
Hello Why i get: Compiler Error Message: CS1519: Invalid token '(' in class, struct, or = interface member declaration Line 10: Conn.Open(); with this code: <% @Import Namespace=3D"System.Data" %> <% @Import Namespace=3D"System.Data.SqlClient" %> <script language=3D"c#" runat...more >>

Keep button from triggering validation
Posted by Brett Robichaud at 3/16/2004 11:13:40 AM
I have a form with two buttons and a TextBox. If I use a Validation control then both buttons trigger the validation, I only want one of them to trigger it. Is there any way to keep one of the buttons from triggering validation? For example, how can I keep the Cancel button from causing valid...more >>

SqlCommand dispose and it's connection property
Posted by Big D at 3/16/2004 11:11:56 AM
If you define a sqlCommands connection property directly as in: mySqlCommand.Connection = new sqlConnection(connectionString) When you call dispose on the command, does it automatically call the dispose method of the connection? It seems like this is the reason to have a dispose property (i...more >>

If statements in repeater templates
Posted by amit NO[at]SPAM c4ppy.net at 3/16/2004 10:35:31 AM
Hi. I have a table row as follows in my repeater template <tr> <td class=error align=right> - </td> <td class=error colspan=4> <%# DataBinder.Eval(Container.DataItem, "Error") %> </td> </tr> Is there anyway I can put an if statement around the row so it only displa...more >>

Getting Away From Session-Level Variables
Posted by David Krussow at 3/16/2004 10:14:26 AM
Before refactoring my code, just wanted to get your opinion. My objective is to allow users to open a page, make some changes, and then possibly hours later post back to the server so their changes can get saved to a SQL Server database. Sessions necessarily time out, and are therefore not a good...more >>

Virus Checking during File Upload
Posted by Anil Arora at 3/16/2004 10:06:37 AM
Hi there, What would be the best possible way of Virus checking during file upload. Also, which would be a better way of storing the files.. File server or storing directly into a database if we are talking about a High Traffic website ? any comments ? ...more >>

redirect in global.asax
Posted by george d lake at 3/16/2004 9:47:25 AM
Hi, I know I cant redirect in the global.asax. I need to count how many users are connected to my intranet site, and once I reach a given number, I need to redirect to an error page. Can I do this form the Global.asax? or do I have to add the session var there and then redirect on each page?...more >>

page refresh
Posted by Patrick Nolan at 3/16/2004 9:26:11 AM
**C# Web App** How do I keep my pages from returning to the top of the page when my users click on a control such as a submit button. After clicking the button, I would like the page to return to the same place where the user clicked the button. Thanks, Patrick nolanpa@bcsd.com ...more >>

Text file reading / writing
Posted by Barry McGuire at 3/16/2004 9:23:48 AM
Does anyone have any ASP.NET code for reading or writing to/from text files? ...more >>

Need Help Understanding Validation
Posted by Jonathan Wood at 3/16/2004 9:03:29 AM
I'm new to ASP .NET and need help understanding validation. I have a large VB .NET Web application that is working and I'd like to add some validation to some additional fields. But I'm having the following problems. 1. There is a continue button on the form and I set a breakpoint there. Ho...more >>

Transaction in Codebehind Only?
Posted by localhost at 3/16/2004 9:00:47 AM
I currently use an ASP.NET transaction by putting the proper declaration in the .aspx page template. Instead, I would like to put the transaction declaration only in the code-behind (in one of the built-in System.Web.UI.Page lifecycle methods). How can I declare an ASP.NET transaction in th...more >>

file uploading
Posted by Philip Townsend at 3/16/2004 8:58:44 AM
I am having difficulties implementing a file uploader. Code is posted below. The txtFile control contains nothing when submitted, but the click event is definitely firing the appropriate method. Can any body help? protected System.Web.UI.HtmlControls.HtmlInputFile txtFile; protected Syste...more >>

use Thread.CurrentPrincipal instead of HttpContext.User in a web application?
Posted by 6tc1 NO[at]SPAM qlink.queensu.ca at 3/16/2004 8:52:24 AM
Is there ever an instance in which a developer should use Thread.CurrentPrincipal in a web application instead of HttpContext.User? By this I mean should I be assigning the object (whose class extends IPrincipal) that represents a particular web user to: HttpContext.User in all instances ins...more >>

What would cause Sourcesafe to become "disconnected" on a project?
Posted by me NO[at]SPAM privacy.net at 3/16/2004 8:40:24 AM
I have 2 projects I bring into VB .NET just about each day, and all of a sudden one of them is showing up as being "disconnected" in that the Get Latest Version, Check In are missing. I can still check stuff out, but it gives me a "disconnected" message, and is a big pain to move stuff in & out....more >>

WebForm class functions in JavaScript
Posted by tomana NO[at]SPAM inprop-dot-sk.no-spam.invalid at 3/16/2004 8:20:50 AM
Hi, Can anybody advice me please,how can I use my WebForm members (defined in codebehind, e.g. index.aspx.cs) in JavaScript script in index.aspx. For example: public class WebForm1 : System.Web.UI.Page { public void XY() { ... } } [index.aspx] ... <script language...more >>

Machine.config file no longer likes App
Posted by mklapp at 3/16/2004 8:11:05 AM
Hello So, I am doing my developer thing, modifying some code in a web form 2 levels down in a web application. I try to run the App (It is worth noting here, I have run the Application 50+ times a day for the past 2 days) and I get an exception page (Note below). Any Ideas as to what cau...more >>

Re: HttpWebRequest.GetResponse throws error on "Not Found"
Posted by Dan at 3/16/2004 7:37:32 AM
See responses below. Dan" <dan@dontspamme.com> wrote in message news:O5uIJytCEHA.576@TK2MSFTNGP11.phx.gbl... > When I execute the following with a purposely bogus URL, GetResponse throws > an error before I can retrieve the HttpStatusCode. Why is that? > > try > > { > > HttpWebResponse...more >>

Run Multiple .aspx Pages in VS Programming Environment
Posted by George at 3/16/2004 2:24:49 AM
VS.NET 2002/VB In my project, two different .aspx pages need to be open by the user in different browser windows. I need a small amount of information in the first form to be available to the second form. I'm not even sure I'm doing this right, but I have created a public array in the first f...more >>

Checking for unitialized Session key
Posted by salimma1 NO[at]SPAM yahoo.co.uk at 3/16/2004 1:28:23 AM
Hello, In my application I am trying to check if a HttpContext.Session key is set, and if not, retrieve its value by making a function call. The code excerpt as it stands: Dim userEntry As LdapEntry = HttpContext.Current.Session("userEntry") If userEntry Is Nothing Then ...more >>

MS get the docs correct please please please
Posted by Lloyd Sheen at 3/16/2004 12:55:02 AM
I am trying to extract string from web.config. Example in MSDN has the following line: Me.SqlConnection1.ConnectionString = CType(System.Configuration.ConfigurationSettings.AppSettings.GetValues("SqlC onnection1.ConnectionString") No way this will compile. ASP really does not like this. ...more >>


DevelopmentNow Blog