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 > december 2004 > threads for thursday december 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

forms authentication
Posted by z f at 12/16/2004 11:59:22 PM
Hi, i have vb.net asp.net web application. i use forms authentication for security of folder. if the user is successfully logged in and redirects to the required forlder, but not in the folder's required role he is redirected back to the login page. in this case i need to show some kind of ...more >>


I need to write an ASP that requires a user to give a User Name and Password to run it.
Posted by Zachary Hilbun at 12/16/2004 10:58:15 PM
I need to write an ASP that requires a user to give a User Name and Password to run it. Whenever I've used this on the Web it displays a standard dialog and then offers to save the User Name and Password on my computer so that I don't have to enter it again. How is it that this standard dial...more >>

grid updating and stored procedure
Posted by Antonio Policelli at 12/16/2004 10:31:25 PM
I have this issue. I need to create a web page where the user can run some searches. They will get retruned to the web site 0, 1 or many records which I will put in a data grid. The user will then be able to update a single field in any of the rows. If they get 10 rows returned in their sear...more >>

How to save C# class generated from ASPX page?
Posted by derek at 12/16/2004 10:10:09 PM
I am using Visual Studio .NET Professional (first version) and am trying to view the generated C# file that is created from an ASP.NET (.aspx) page when its first requested. I can see where its being placed but it must be removed after the MSIL code is generated for it. Do you know any way t...more >>

window.onbeforeunload event in Netscape
Posted by Vladimir at 12/16/2004 8:59:16 PM
It appears that this event (window.onbeforeunload) does not fire at least in Netscape 7.0 and 7.1. But window.onload and window.onunload events do! I really need this event handling in my application as I need to show message after submit button click but before actual unload wich starts after cl...more >>

custom handlers & dumb question
Posted by Stelrad Doulton at 12/16/2004 8:47:55 PM
Hi, Apologies if this isn't the correct forum. I am writing a communication solution (actually on the Compact Framework) based on HttpWebRequests hooking up with custom handlers on the server side. My dumb question is this: how reliable is http? For example if I use PUT and call GetResp...more >>

Can I use SharePoint web parts in normal web apps?
Posted by George Durzi at 12/16/2004 8:31:49 PM
sharepoint has all these nifty web parts I'd like to use in my application. Is there a way to use them in a normal aspx app? ...more >>

controls not displayed properly on remote computer
Posted by (blackbur NO[at]SPAM aol.com) at 12/16/2004 6:36:14 PM
I have created an asp.net website that looks fine when I view it from my computer, but when I browse from another computer the controls are overlapping each other in some cases. In other cases the text in tables is wrapping onto itself. I don't understand because everything looks fine when viewed lo...more >>



get user enter value from prompt window asp.net
Posted by ambersaria420 NO[at]SPAM yahoo.com at 12/16/2004 6:19:53 PM
I need to prompt the user to enter ID. I can open up prompt fine using javascript code below. However I am not sure how to get value that user entered in user prompt window. I have to check this value to see if it exists in the database. Private Sub btnID_Click(ByVal sender As System.Object, B...more >>

Project is too big
Posted by Guillaume at 12/16/2004 6:05:35 PM
Hi, My project begins to be too big (too many pages, dll too big). Is there a way to split the project into multiple smaller projects and to have one dll per project ? BUT I need that all projects be in the same environnement session. I tried to change the root name of projects by putting th...more >>

get user enter value from prompt window asp.net
Posted by ambersaria420 NO[at]SPAM yahoo.com at 12/16/2004 5:55:36 PM
I need to prompt the user to enter ID. I can open up prompt fine using javascript code below. However I am not sure how to get value that user entered in user prompt window. I have to check this value to see if it exists in the database. Private Sub btnID_Click(ByVal sender As System.Object, B...more >>

problem with system.process
Posted by Prashant at 12/16/2004 5:31:39 PM
Hi, this is my code, below, I am executing a batch file that in turn executes multiple .sql files, my concern is if there is some problem with .sql files, the calling program should get the error back, that is not happening. do you have any idea how to trap the error with Process? thanks,...more >>

Required Field Validation question
Posted by VB Programmer at 12/16/2004 5:05:59 PM
Can you make a required field validator optional? I know it sounds crazy, but.... Let's say I have a signup form. It consists of 2 sections. The top section is a "GOLD MEMBER" section. It has required validators for name, address, etc... The next section is the "BRONZE MEMBER" section....more >>

Cache Dependency Question
Posted by Jason Dean at 12/16/2004 4:25:08 PM
Hello, Can anybody tell me if it's possible to create a dependency on the contents of a directory? For example, I've just built and ASP.NET image rotator that uses System.IO to loop through all the files inside a directory, stuff them into an array, then put that array into the ASP.NET dat...more >>

ms visual C# standard edition? okay?
Posted by jason NO[at]SPAM catamaranco.com at 12/16/2004 4:14:33 PM
Can you anyone tell me if: MS Visual C# .NET Standard Edition 2003 - G78-00077 http://www.buy.com/retail/product.asp?sku=20352990&loc=105&sp=1 ....is a viable alternative to buying the fulling visual sutie which will cost nearly a $1000? I assume I will be able to: 1. write simple C# a...more >>

Namespaces in a dll file
Posted by tshad at 12/16/2004 3:55:52 PM
If I create multiple .dll files with the same namespace, but different classes. Is this the same thing as creating one file with one Namespace and all the classes in that namespace? If so, is it better to create multiple files or just one big file? Also, what causes ASP to look at each .d...more >>

How to dynamically add TableRows in asp.net?
Posted by Jim Bancroft at 12/16/2004 3:38:34 PM
Hi everyone, I was wondering how best to dynamically add rows to an html table in asp.net. I've been reading up on PlaceHolder controls in .Net, but every time I add a new control to the collection it scrolls horizontally. I need a vertical column. Here's the ASP code I'm trying to por...more >>

ElseIF or Case Statement?
Posted by Leon at 12/16/2004 3:22:32 PM
Is there anyway I could clean-up all these ElseIF statements with a select/case or is this the best that can be done ("I can't think of a better way")? Private Sub Update_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Update.Click If Page.IsValid Then If Me.New...more >>

passing Oracle Nulls in ADO.NET
Posted by Craig G at 12/16/2004 3:10:19 PM
how do you pass a null into an oracle parameter? i am doing the following which works fine when there is data to be passed in but when the string is blank it wont accept "" or even as a system.dbnull 'Parameter for Address1 Dim parAddress1 As OracleClient.OracleParameter parAddress1 = c...more >>

pageload during trace.acx
Posted by Antoine at 12/16/2004 2:52:38 PM
Is there anything that can make my project run its pageload twice? I added trace lines throughout code, and then checked recently. Unless its a temporary issue (resolved by reboot etc) I definitely seem to see pageload trace item being fired more than once, and a sizeable delay for it to run t...more >>

.NET usage in GTA
Posted by Bijoy Naick at 12/16/2004 2:31:45 PM
Does anyone which large companies in the Greater Toronto Area make extensive use of .NET technologies? ...more >>

RequiredFeildValidator HELP!!
Posted by ACaunter at 12/16/2004 2:09:02 PM
Hi all, I am using the RequiredFeildValidator on my forms, which works well when i want to do Adding or Updating on that form, however.. If i go to that form, then try going to a different form, it won't let me leave because those certain textboxes require info in them, even though i only w...more >>

Adding a DropDownList to DataGrid dynamically in edit mode?
Posted by Dave at 12/16/2004 1:51:04 PM
Hi, I'm building a maintenance form for a table and some of the fields are textboxes (i.e name) and some should be dropdowns (i.e country of origin) When a user clicks 'Edit' in the <asp:EditCommandColumn> I want either a textbox or dropdown to appear when I check what is being edited. ...more >>

Need to design a website in ASP.NET- don't know where to start
Posted by David at 12/16/2004 1:36:29 PM
SUMMARY: If you don't want to read all of this, what I'm looking for more or less is ideas on how to implement websites using ASP.NET that have a templated look and feel and many pages that make use of a template design. Hi- I'm new to ASP.NET and have been working for about 2 weeks on lear...more >>

Refreshing the page after posting issue
Posted by -Karl at 12/16/2004 1:31:49 PM
Apparently, asp.net has a posting issue with refreshing. There seems to be several solutions to the issue but I was wondering if there is a final workaround for the issue? If so, can you please inform me what I need to do? I'm using ASP.NET 2.0 beta ...more >>

ASP to .Net migration project
Posted by Jean-Marc Pugin at 12/16/2004 1:21:19 PM
Hi, Do you consider CSHARP as THE language to be used for an ASP to .Net migration project. ASP .Net seems a "natural" choice but as .Net is "language neutral" and CSHARP is positioned as THE native language we are requesting some help/advice. Many Thanks....more >>

Best practice for identity when accessing SQL Server...L
Posted by Brian Muth at 12/16/2004 1:20:17 PM
We are in the final phases of rolling out an n-tier product that supports both a COM+ middle-tier, a Web Service, and a backend database (SQL Server 2000). The COM+ middle-tier application runs under a regular domain account, and accesses the database using Integrated Windows Authentication (a...more >>

Form-based Authentication
Posted by Asim at 12/16/2004 12:49:06 PM
I am trying to use Forms-based authentication. I followed MS Support Q301240 article. I want to control access to a folder (swhouse) and its contents. Below is the sample of actual web.config. <configuration> <location path="swhouse" > <system.web> <authentication mode="Forms"> ...more >>

TextChanged in Datalist(URGENT)
Posted by Mani at 12/16/2004 12:27:01 PM
Hi, Please can some one help me??? and let me know whether it is possible or not???? I have a Datalist, in template column I have a textBox. User will enter the data in textbox.I need to update the data in the Database. I dont have Edit Command or Update Command for the DataList???/ If I...more >>

Javascript can't delete server created cookie with no domain?
Posted by Wysiwyg at 12/16/2004 12:02:49 PM
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code behind and don't use a domain then I can not change or remove that cookie's value on the client. If...more >>

Clients Losing Session
Posted by JIsenstadt at 12/16/2004 11:43:15 AM
I would appreciate it if anybody can help with a issue I am having in an ASP.NET application that is timing out before a process has been completed. The scenario ASP.NET application under IIS 5 runs a crystal report (which has a lot of complex formatting) and returns over 6,000 pages. The t...more >>

"Object reference not set to an instance of an object"
Posted by Rock at 12/16/2004 11:34:51 AM
I am getting the above error on If arrFields is nothing or arrFields.Count=0, I don't understand why I am getting the error: dim arrFields as new ArrayList arrFields = CType(ViewState("arrFields"), ArrayList) --this is where I get the error: If arrFields is nothing...more >>

Automate Webform Printing
Posted by MrMike at 12/16/2004 11:31:07 AM
Hi. I have a webform which I need to print automatically to a specific printer once it is opened. I've searched all around but I can't find the code to achieve ths. Basically I assume I just some code in the Page_Load event that fires to print the webform when it loads. Could someone ple...more >>

StateItem Class
Posted by Rock at 12/16/2004 11:22:10 AM
I took this function on using viewstate from Microsoft MSDN at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuistatebagclasstopic.asp and am getting this error: System.Web.UI.Control.viewState is not accessible in this context because it is "Private"...more >>

Login Progress Bar
Posted by Ernie at 12/16/2004 11:18:59 AM
I have a unique issue... We are using Microsoft Commerce Server and Content Manager on our eCommerce Site. I have been requested to display a login status (Pic that says Please Wait) in a control that is located on multiple pages. Therefore I need to embed a code segment to be executed when a s...more >>

Drag-and-drop
Posted by Arthur Hsu at 12/16/2004 10:55:40 AM
Hello, I'm trying to implement drag-and-drop function on my web forms, say, drag an item from one box to another. Is there any starting point that I can refer to? TIA, Arthur ...more >>

Over Write Value in Session State?
Posted by Leon at 12/16/2004 10:37:29 AM
Can you write over a value in session or do you have to delete the value first then re-create it? **Example: I have the following value in session state... Statement 1 -- Session.Add("Email", "someone@ someplace.com ") And I want to change it to the following value... Statement 2 -- Sessio...more >>

webRequest object and PayPal
Posted by Stephane at 12/16/2004 10:17:02 AM
Hi, I'm trying to use PayPal and its Instant Payment Notification. In short, when a payment is made, PayPal send a post to my server and I post it back to PayPal. I'm using WebRequest to do this. I receive the PayPal post, but I can't post it back. It's always giving me a Time out. He...more >>

align my aspx page in the middle
Posted by ALI-R at 12/16/2004 10:02:59 AM
How do I allign all my content in aspx page in the middle of page like a lot of websites ? Dose it work with differnet screen resolutions? Thanks for your help. ...more >>

disable mouse scroll wheel > prevent problem with dropdown
Posted by nicholas at 12/16/2004 10:02:21 AM
Hi, If on an asp.net page the user has just selected a value in a dropdownlist and scrolls with the wheel of his mouse, the selected value of the dropdownlist will change. How could I avoid this. So how could I disable the mouse scrolling that dropdownlist. Or how could I disable the mou...more >>

help: problem with System.Web.Mail
Posted by hb at 12/16/2004 9:42:10 AM
Hi, Yesterday I applied an automatic Windows security update from Microsoft. Then, none of my web application can send out email using System.Web.Mail.SmtpMail.Send(); I don't see any errors. It just does not send the email. The to and from address are valid email addresses. I don't...more >>

a simple question
Posted by ALI-R at 12/16/2004 9:28:49 AM
Hi,, If I want to write an ASP.NET application for a computer other than my local machine (but within our interanet) ,what is the best strategy: 1) should I create the application from my computer on that computer by sharing a folder for my user and make an asp.net application on http://mys...more >>

Which one to use....
Posted by Jonathan at 12/16/2004 9:27:23 AM
Few days back I posted this question. Can anyone help me on this question. var myObj = new ActiveXObject("Msxml2.XMLHTTP"); var myObj = new ActiveXObject("Microsoft.XMLHTTP"); If my development environment is ASP.Net/VB.Net/.NetFramework 1.1/IE 5+ Which of the above statement I should us...more >>

Web Service Problem
Posted by Sunil Sabir at 12/16/2004 9:25:03 AM
Dear All, I have written a Web Service which is called from ASPX file(Web Form). It works fine on the local machine. On the local machine I am using the following command wsdl.exe /l:cs http://localhost/ReturnEvents/Service1.asmx?wsdl Now I want to use the same service on the Remote Ser...more >>

Unable to create temp file: Error
Posted by James Proctor at 12/16/2004 9:21:04 AM
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots of problems. Up until now ive managed to sort most of them, but now im strugling. When i run my a...more >>

Wrong ASP .NET version
Posted by jim at 12/16/2004 9:11:01 AM
Hi All, I use Visual .net C# 2003 try to create a new ASP .NET Web Application and got following errors: Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services. The development en...more >>

Classic asp date displays- changing over to aspnet date object displays
Posted by Chumley Walrus at 12/16/2004 9:04:29 AM
I'm changing an old classic asp script over to asp.net; it displays links corresponding to each day of the week <script runat="server"> Sub Page_Load(s As Object, e As EventArgs) </script> <% 'DateTime.Now will be the current date indicator dim currentDate,noshowyet,nu...more >>

Q: dump dataset to a table in SQL server
Posted by JIM.H. at 12/16/2004 8:51:09 AM
Hello, Here is part of my code to retrieve some data from FoxPro and populate DataGrid. It works fine. What is the best and easiest way to import data from Dataset to a table in SQL Server. ' populate dataAdapter and dataset cmdSelect = Conn.CreateCommand cmdSelec...more >>

automatic namespace importing
Posted by Natan at 12/16/2004 8:19:42 AM
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using System.Text.RegularExpressions; using System.Web; using System.Web.Caching; using System.Web.Sess...more >>

Visual Web Dev Express 2005 and VS2003 Co-Existance
Posted by tonelab at 12/16/2004 8:19:09 AM
I currently have VS2003 .net 1.1 installed with a number of 1.1 projects built in it. All of these projects create the /bin dll for deployment and have been running on remote servers that have the 1.1 framework installed. If I install Visual Web Developer Express Edition 2005 on my machine, i...more >>

Invalid length for a Base-64 char array
Posted by danc at 12/16/2004 8:13:05 AM
I keep getting this error. I have scoured the web and could not find any applicable information. It seems to have really started since I upgraded to the 1.1 framework. Any help is appreciated. Using: *ASP.NET 1.1 *Single machine (no clusters) *Simple postbacks (no postbacks to different pa...more >>

Multiple user problems
Posted by jsale at 12/16/2004 7:19:09 AM
Hello, I am having a problem with multiple users using my asp.net application - namely that if each user clicks save at the same time, some, or all, of the users crash out. Do I need to do anything in particular to 'queue' their requests or should asp.net do this? Any help would be very use...more >>

forms authentication error
Posted by Kurt Schroeder at 12/16/2004 7:13:05 AM
this is straight out of asp.nat unleashed chapter 19: the code listed below give the following error: Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being...more >>

Error, Collection is read only
Posted by leeronald1982 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 12/16/2004 6:52:41 AM
I have this error in Line 89. Collection is read-only. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NotSupport...more >>

re:Error, Collection is read only
Posted by leeronald1982 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 12/16/2004 6:52:41 AM
I am sure my database is not read only. Anyone have any ideas what is happening? What cause this error? *-----------------------* Posted at: www.GroupSrv.com *-----------------------*...more >>

Request.ServerVariables("REMOTE_ADDR") vs. Request.UserHostAddress
Posted by hn at 12/16/2004 6:45:01 AM
I would like to get the visitor's ip address. Which one is the appropriate one to use: Request.ServerVariables("REMOTE_ADDR") or Request.UserHostAddress? Thanks in advance....more >>

Freeware ASP.NET controls and components
Posted by Jon Schwartz at 12/16/2004 5:45:03 AM
Hello, and happy holidays! My company has bundled up a bunch of our own controls and components as freeware developer downloads. They've been hot downloads for the last few months mainly through blog reviews and word-of-mouth, but I just realized we hadn't yet posted on any of the develope...more >>

Problem enumerating Controls
Posted by Alejandro Penate-Diaz at 12/16/2004 5:19:59 AM
Hi. I need to iterate through the Page controls collection in order tu enumerate every control on it. I though this was enough as I read from 4guysfromrolla: void Page_Load(Object sender, EventArgs e) { foreach(Control c in Controls) lblControlList.Text += c.ToString() + ...more >>

Error while trying to debug asp.net appli...
Posted by Khurram Hanif at 12/16/2004 4:39:10 AM
Hello guys. When ever i try to debug an asp.net application it always throw an error "ERROR WHILE TRY TO RUN PROJECT. UNABLE TO START DEBUGING ON WEB SERVER. DEBUGING FAILED BECUSE INTEGRATED WINDOWS AUTHENTICATION IS NOT ENABLED." please tell me how can i remove this error and run my proj...more >>

Application Domain and Hot Deployment
Posted by sunil NO[at]SPAM volcanomail.com at 12/16/2004 4:15:40 AM
Thanks Scott, Nice article...I have managed to have a private bin path and shadow copy dlls from there...now for a small question... How do I create a new AppDomain and make the worker process use the new AppDomain instead of the existing one...I would like to copy some variables into the ne...more >>

Image loading with red x
Posted by csgraham74 NO[at]SPAM hotmail.com at 12/16/2004 3:54:36 AM
I have built a webcontrol in asp.net. When i run the application the images do not load on the control until i do the mouseover event yet the path is the same for the control image and the mouseover event image. I think this is a bit weird. Any ideas ??? thanks in advance...more >>

POST data to external site
Posted by Wayne P. at 12/16/2004 3:06:48 AM
I'm working on a shopping cart webapp and I need to perform a form POST of data to a 3rd party site (a payment processor, StormPay). I seem to be having problems doing this. I have an image button which when clicked performs the data validation. After successful validation, I need the browse...more >>

from staging to production
Posted by rom at 12/16/2004 2:16:43 AM
what do i have to more from staging to production every time i make changes? all the files only? what about the dll in the bin directory? if i copy the dll file do i also have to copy the aspx and aspx.vb files? thanks....more >>

VS.NET 2003 wan't start!!! after W2kSP4
Posted by Kenneth P at 12/16/2004 1:35:04 AM
Hi, I have a w2kprof w SP4 operating system on my computer. Yesterday I installed SP4, had SP3 before. Now I can't open any project in VS:NET 2003 because it says: Visual Studio cannot create or open the application because the Web server on this computer is not running. Start the Web s...more >>

ASP.Net Code to make Input button disappear immediately
Posted by csgraham74 NO[at]SPAM hotmail.com at 12/16/2004 1:19:59 AM
I have been working on a form to update a database when i enter details and click a button. My issue is that some of the users click the button twice. I want to remove the button when i click it and show a label saying "Processing" How can i do this using the attributes.add code ??? thanks...more >>

programmatically access Cascading Style sheets file
Posted by John at 12/16/2004 12:29:28 AM
I want to programmatically read a CSS file into an object model and access the style class name and style attributes. Anyone can let me know if there is an open source, or point me the right direction to do that. Thanks a lot! ...more >>

Build with every change to the code?!?!?
Posted by David Lozzi at 12/16/2004 12:04:26 AM
I am developing ASP.NET with VB.NET using VisualStudio.Net, and every = little line I change, I have to build the application. Why is that? Is = it by design? When I first started with the development, I never had to = Build it, now it is all of the time!! Thanks! --=20 David Lozzi Web Ap...more >>

More Specific Error Messages???
Posted by David Lozzi at 12/16/2004 12:02:48 AM
Howdy, I'm doing some simple database reading and loading severl values into = labels for readonly use. Here is my script: Dim selStoreID As String If StoreID.SelectedIndex > -1 Then selStoreID =3D StoreID.SelectedItem.Value 'lblStoreID.Text =3D StoreID.Se...more >>


DevelopmentNow Blog