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

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

How can I set the request encoding of a webform?
Posted by krondor NO[at]SPAM dreamwiz.com at 2/12/2004 11:41:07 PM
Hi everybody. I have a webapplication that use UTF-8 for request & response encoding. but.. One aspx page should get request with other encoding(ks_c_5601-1987), and response with utf-8 ( This page call by other systems. ) without changing web.config, How can I set the request encodin...more >>


Bizarre loss of session state
Posted by Michael Carr at 2/12/2004 11:19:44 PM
I have created a website that responds to the following two domain names: logintest.carr-engineering.com logintest.onualumni.org If you open either of these websites on their own, everything works fine. However, if you open both of them simultaneously in two frames of a frameset, wierdness ...more >>

Application_Start()
Posted by RB at 2/12/2004 11:01:25 PM
Hi! Is it guaranteed that Application_Start() will only run once per application start? In other words, what happens if 2 users simultaneousy hit a "fresh" app? Does ASP.NET know to run only one thread? Thanks! RB ...more >>

View External CSS and .js on Client Side
Posted by Guadala Harry at 2/12/2004 10:34:15 PM
Is it possible to view the contents of an external CSS style sheet that is referenced from any web page being viewed in the browser (IE6)? If so how? The css file physically lives on the server, however, it must be sent down to the browser so that the browser knows what rules to apply to the link...more >>

Forms Authentication question: How to have some pages open and some requiring forms authentication
Posted by Eric at 2/12/2004 10:32:29 PM
I am trying to build an app where the stuff in the root directory is open to all, but anything under the Restricted directory requires you to login and I want to use Forms to do it. I'm having trouble getting the web.config to work properly. First I tried to have a second web.config in the su...more >>

load testing
Posted by sviau at 2/12/2004 10:21:47 PM
whats the best way to test the load on the website which is similar the live load. we havea high traffic website (6 million page views per day). how can i use the iis logs from the live site; to to stress test the test site? thanks stephane ...more >>

Dropdown list box.....
Posted by San Smith at 2/12/2004 9:49:13 PM
I have a dropdown list box with list of item. When I read the data from database I want to display that value(one of the item in the drop down box) in the dropdown list box. How to do that in a dropdown list box ? San ...more >>

URL link plus parameters
Posted by Boris Condarco at 2/12/2004 9:34:39 PM
Hi gurus, Does anyone of you know how to make a URL link wihtout showing the parameters in the address text box, i would like to keep it just with the root path. Thanx a lot... Boris ...more >>



ASP.NET web site registration service broken
Posted by Charax at 2/12/2004 9:26:51 PM
If anyone here is registered on the ASP.NET web site, please let them know that their automatic registration responder is broken. No password is sent after registering. And the "forgotten password" service is also evidently out of service. Since I can't get registered, I can't leave a messag...more >>

How to insert URL in ASP.Net e-mail message
Posted by Peter Afonin at 2/12/2004 9:08:12 PM
Hello, I created an e-mail form pretty much as described in this article: http://www.4guysfromrolla.com/webtech/080801-1.shtml. It works great, but I cannot figure out one thing: I need to insert a URL at the bottom of the message body. How would I do this? If I insert just HTML - it displa...more >>

What type of object is it?
Posted by Michael Murschell at 2/12/2004 8:31:05 PM
In vb, how do I find out what type of control an object is? In other words, I want to find out if the Object LastName is a textbox or an image object. ...more >>

Page.FindControl not working on ASCX
Posted by Michael Murschell at 2/12/2004 8:29:46 PM
If I call Page.FindControl() on an aspx, it finds the control, but if I call it on an ASCX, it does not. Why not? And how would I call it? ...more >>

aspnet_wp.exe not killed in Oracle connection session
Posted by Steve Foo at 2/12/2004 8:01:06 PM
I have been posting this question in google group, EE, and Oracle OTN forum and still no cannot find a suitable solution for it. I have contacted Singapore Microsoft support regarding the problem .Unfortunately they are not able to help me and eventually direct me here i'm not 100% sure if this ...more >>

How to email a datagrid
Posted by Dave Tichenor at 2/12/2004 6:28:54 PM
how to you email a datagrid as a html email message. this is what i have Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Create MailMessage instance, set properties, and send Dim Mail As New MailMessage Dim sw As New Sy...more >>

Gaining Access to an Identity value
Posted by Jerry Camel at 2/12/2004 6:27:56 PM
When I add a new row to a table that has an Identity column, how can I access the value of the identity column for the row that I just added. Do I have to re-fill the dataset through the adapter? If I do that, how can I tell which is the row I just added? Thanks Jerry ...more >>

Validation Controls
Posted by Janaka at 2/12/2004 6:02:13 PM
I've got a couple of validation controls on a page that work fine. The problem is that I've got 2 buttons on the page, one to update a value and another to submit the page. I only want the controls to be validated if i click on the submit button. However, doing any postback to the server mak...more >>

Checking to see if a cookie exists
Posted by CES at 2/12/2004 5:54:56 PM
I'm sorry for the 101 question but I can't seem to get this to work... I'm tiring to test if a cookie has been created before. Everything I've seen indicates that Request.Cookies works the same in .net as it did in old asp but for some reason I'm getting "System.NullReferenceException: Object ...more >>

Data Access Issues
Posted by Jerry Camel at 2/12/2004 5:31:48 PM
I'm trying to update a table on a SQL Server from a web page. I'm not = having any problems reading the data, but I can't seem to update it. = From the code below can someone please tell me what I'm missing? I'm = sure I've kludged it up a bit with all my attempts. Thanks. Dim sFileName As...more >>

System.Web.Mail embedding images?
Posted by Tim T at 2/12/2004 5:19:10 PM
Hi, I hope there is someone reading this that has the answer, Please Help! I have the need to send a html email via asp.net. its easy enough to send an html email and add attachments. My question is, how to you set the Content-Location of each attachment in the mail headers so that the images...more >>

Validation in a datagrid
Posted by Jason at 2/12/2004 5:10:47 PM
I have created a datagrid with several template columns and included validation controls in the template columns. I also have a button column with edit-update-cancel. When the datagrid item is in editmode I can change the values of the data with textboxes. If I actually enter data in the tex...more >>

inserting Checkboxlist input into database
Posted by jeremy NO[at]SPAM wjer-dot-net.no-spam.invalid at 2/12/2004 5:00:14 PM
I've successfully bound a checkboxlist control to a sql server table to populate the list - now I want to take the user's selections and store each checkbox in the list's input in a different field in the database. No idea how to do this, and I can't find any samples online. I'm pretty sure I ne...more >>

How to scan the uploaded file for virus.
Posted by Raj Dhrolia at 2/12/2004 4:59:02 PM
Hi, In my ASP.NET application, I want to scan the files uploaded by users for virus. The only option i have right now is to use the command-line exe of my local antivirus. The exe generates a html file on which i do string processing. But this does not seems to be an ideal solution. ...more >>

file access
Posted by Richard at 2/12/2004 4:50:12 PM
I have a web application that is to read our log file. That file is not in the same tree and the web folders but I do have access to the folder via ftp. I setup my app with windows authorization and authorize with my ftp id and password but I still get an exception "access denied" when I attem...more >>

How to Close DataView?
Posted by Ismail Rajput at 2/12/2004 4:39:52 PM
Please give me any example to close or reset the dataview , i am having problems because it is protected method. ...more >>

Moving through a Dataset
Posted by Mark at 2/12/2004 4:39:02 PM
hi, i'm trying to cycle through a dataset to test if a row/column in a grid is the same as in the dataset. Just wondering if there's an easier way, the recordsets in old ado/asp seemed much easier to use and datareaders only being forward only is a pain. Dataset are very complex too. Cod...more >>

Help with a project
Posted by REB at 2/12/2004 4:13:48 PM
This fall I am taking a extended vacation to backpack across Australia and want to keep a daily online journal of the trip with images from my camera attached for each day so my friends and family can monitor my progress. The problem with this wish is that I will not have internet access on a re...more >>

simple hyperlink problem...
Posted by Doug Swanson at 2/12/2004 3:41:51 PM
So I've added a hyperlink to a screen based on a url stored in a database. The problem is that the hyperlink text is not underlined....but it becomes underlined when you hover over it. Small thing but it's what the users want... The screen/window that it is on is a popup window if that makes an...more >>

How do I grab a session from the server by sessionID
Posted by Shawn at 2/12/2004 3:36:05 PM
Is it possible to grab a session object from the server for a given session ID? I have two URLs that go to the same location... one secure and one not. I would like to pass the session over when the user goes from the first URL to the secure URL. However, since the cookie is not sent on the se...more >>

ArrayList versus HashTable
Posted by D. Shane Fowlkes at 2/12/2004 3:15:16 PM
I've been reading up on Arrays in ASP.NET. I'm going to create an two dimensional array of some type to contain 5 columns but a variable amount of rows. I read up on the ArrayList function and the HashTable as well. In the two books I have, there's no mention of the limitations of an ArrayList...more >>

redirect on Session Timeout
Posted by Weave at 2/12/2004 3:01:00 PM
I would like to redirect to a logout page after a session has timed out. I have placed a response.redirect "loggedoff.asp" in the Session_OnEnd subroutine in the global.asa, but it does not move to the page after timeout occurs. Any suggestions? Thanks in advance .... ...more >>

IIS 5 and ASP.NET
Posted by James A. Snyder at 2/12/2004 2:59:26 PM
Can IIS 5 host ASP.NET applications or is IIS 6 required? If so, is it as simple as installing the dot Net Framework in order to get asp.net pages working on IIS 5? - James ...more >>

Conditional Colors in a DataList Control
Posted by Jerry Camel at 2/12/2004 2:26:28 PM
One of the fields in my datalist is an expiration time. How can I make that time show in red if it is less than one hour away? Thanks. Jerry ...more >>

Problems with money, decimal numbers after migration to Framework 1.1
Posted by Artek at 2/12/2004 2:19:12 PM
Hello, after installing .net 1.1, ASP.NET works fine, but there is a problems with extra zeros added to the numbers at the end. In Sql 2000 SP3a there is for example a table with one column col1. Col1 is type of money ( four digits after decimal point). Table has one row with data : col1=5.2...more >>

Displaying datagrids
Posted by Jon at 2/12/2004 2:16:59 PM
Hi, suspect there might not be a good answer to this one. Using vb.net I have a page like this some text datagrid repeater Now the repeater is populated from a simple query that takes no time to execute but the datagrid relies on some processing that takes around 15-20 seconds. Is there an...more >>

LoadControl and PostBack
Posted by Craig Buchanan at 2/12/2004 1:43:01 PM
I am trying to build a tabbed-style interface to capture information about a person. I have one control that captures info about the person and a second webuser control that captures information about the departments to which the person is assigned. When a user clicks a tab, the appropriate WUC...more >>

test please ignore
Posted by jaffer the but at 2/12/2004 1:21:50 PM
test please ignore ...more >>

How to increase the memory alloc for aspnet_wp.exe?
Posted by Bob at 2/12/2004 1:07:13 PM
Our production server has 2GB of RAM but aspnet_wp.exe only uses up to 150MB. The site gets pretty heavy traffic and I'm wondering if increasing the memory useage for aspnet_wp.exe would help the performance? If so, how to increase it? Thanks a lot Bob ...more >>

setvalue of asp:Label with JavaScript
Posted by Anton ml. Vahèiè at 2/12/2004 12:58:10 PM
Hi, Can anyone tells me how can I set value of asp:Label field with JavaScript? Anton, ml. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.583 / Virus Database: 369 - Release Date: 10.2.2004 ...more >>

PDF "Title" and "Comments" field retrieval
Posted by George Sew at 2/12/2004 12:49:54 PM
Hi there, When you right-click on a pdf file in Windows, you can visualize the "Title" and the "Comments" fields under the "Summary" tab. I am trying to retrieve these fields so that I can put them in a DataGrid. Unfortunately, the fileinfo class does not provide this information. Is th...more >>

Server Error in '/' Application.
Posted by Martin Robins at 2/12/2004 12:49:47 PM
I have never dabbled with ASP.NET until now so be warned! I have created a web application with the single default form: WebForm1.aspx and when I try to display it I get this error. My understanding was that ASP.NET was supposed to set itself up, especially as I am using Windows Server 2003. ...more >>

Trace.axd
Posted by cameron at 2/12/2004 12:46:49 PM
I have a bunch of custom error handling, (page and application), and when an error occurs I get it to email me the error, the form data, the querystring data, the cookie data and the Server variables.This data is great and has helped solve a lot of bugs but I would also like the trace inform...more >>

Debugging across a LAN
Posted by Jerry Camel at 2/12/2004 12:35:42 PM
What do I need to do so I can step through code in an ASP .NET app if VS is on one machine and IIS is on another? Thanks. Jerry ...more >>

Disappearing Controls
Posted by Jerry Camel at 2/12/2004 12:31:32 PM
Has anyone had this issue... I working on a simple ASP .NET app - three web forms. I'm working on page three and when I swith back to page 1 in VS, half of my controls are missing. I add them back in, but it takes a while before the new controls are recognized by VS (Compiler kept telling me...more >>

asp:net button and javascript
Posted by Anton ml. Vahèiè at 2/12/2004 12:09:31 PM
Hi, Can anyone tell me how I convince my <asp:Button id="Button1" onclick="stopClock()" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 136px" runat="server" Text="Button"></asp:Button> that will run javascript function - stopClock() Regular html button does not seem to have a pro...more >>

Creating a validationsummary
Posted by winterdk NO[at]SPAM hotmail.com at 2/12/2004 12:06:06 PM
Hi all! I recently created a MessageBox webcontrol for asp.net. This can be used as is, but I also want to take ude of it in other webcontrols. Right now i creating a ValidationSummary control, that makes use of my messagebox to show the summary of failing validators. So far I've been succe...more >>

datagrid question
Posted by Steve Chatham at 2/12/2004 12:04:21 PM
I have a datagrid I want to display in a web application, that's being read from a sql table. So far, things work fine. What I'm having a problem with though is the formatting of it. It's a list of customers. All of the columns in question are of varchar type. The problem is, they seem t...more >>

Can't get TagPrefix to work for custom Web control
Posted by Michael Skelton at 2/12/2004 12:01:05 PM
Hi I've created a new custom Web control. I have tried to customize the assembly attribute TagPrefix . However, each time I drag my custom control onto a form, it's TagPrefix is still "cc1". What am I missing here My control is nested within two namespaces: for example, OuterNamespace and InnerN...more >>

asp.net impersonation
Posted by adam_scheich NO[at]SPAM yahoo.com at 2/12/2004 11:39:20 AM
I really need help with this. I pass an xml string to a web service that sits on a remote machine. Part of the process is to read the xml and move relevant files from a shared computer to an ftp server. This works fine when I test it on my computer, but when I reference the source document th...more >>

access codebind properties in ascx?
Posted by Craig Buchanan at 2/12/2004 11:36:03 AM
If a usercontrol's codebehind page declares a protected variable named 'PersonId', can I access that in the HTML of the ascx? If so, how? I've tried <%# Me.PersonId #>, but that doesn't seem to work. Thanks, Craig Buchanan ...more >>

ASP.NET bug tracking web application ???
Posted by gicio NO[at]SPAM gmx.de at 2/12/2004 10:58:23 AM
Hi!!! I'm looking for an ASP.NET bug tracking web application. ´ Or some others that are based on the web. What kind of bug tracking applications used Microsoft to track bugs? Or what kind of web based bug tracking application would you suggest me? best regards, gicio ...more >>

Autopostback and keeping position
Posted by Hai Nguyen at 2/12/2004 10:42:54 AM
Hello everyone I have a very long form there is a textbox on the bottom of the page needs to trigger postback. I want the page after post back it still keeps the same position where it is. Is there any way I can do this? Thanks ...more >>

Webblocking software and using Request.ServerVariables("HTTP_REFERER")
Posted by Elliot M. Rodriguez at 2/12/2004 10:40:56 AM
..NET Framework 1.1 Has anyone reported or experienced NullReferenceException errors when accessing the HTTP_REFERER value on clients that are behind web blocking software? At least one of our customers uses the WatchDog WebBlocker product. Our web app would throw NullReferenceException err...more >>

AddHandler question
Posted by Craig Buchanan at 2/12/2004 10:34:40 AM
I have two AddHandler statements in the Page_Load sub. Do these only fire during a postback? Thanks, Craig Buchanan ...more >>

FindControl() Question
Posted by DotNet at 2/12/2004 10:11:40 AM
I'd like to capture an attribute of one control from another control called in the same ASPX page. I can get the ID value, but no other attributes. How does one do this? Control MyControl = Parent.FindControl("HeaderTemplate"); if(MyControl != null) { Response.Write("V...more >>

IIS 6 Application Pooling rather than Impersonation
Posted by Mark at 2/12/2004 10:02:18 AM
A consultant mentioned that IIS 6 Application Pooling could be used in place of Impersonation when authenticating on a windows network between two different servers on the same domain - one with IIS and the other with SQL Server. However, it appears that like Impersonation, we're going to have t...more >>

submiting of page...
Posted by Seth Broomer at 2/12/2004 9:42:21 AM
I have gotten stuck, and i need some help. I have a page, what happens is that their is a calendar on it (like the type on airline reservations) When you click on a date it needs to refresh the page (which works fine) However I do not know how to make it act as a serverclick and not a client c...more >>

Framework 1.1 broke ado
Posted by martin at 2/12/2004 9:32:30 AM
Hi, I have an intranet that runs on a win 2k box. This win 2k box is a domain controller. The intranet has absolutly nothing to do with .dot net all. It is wriiten in classic asp and uses ado to talk to an access database. well all has been fine with the this intranet, however recently fram...more >>

whidbey ?
Posted by simo sentissi at 2/12/2004 8:43:06 AM
Hello I just started reading about the next asp.net. I want to know when it is going to be out ? and if anyobdy knows when ? Simo ...more >>

Page Directive
Posted by Keith at 2/12/2004 8:30:03 AM
I am trying to create the Chart application from Chapter 27 in ASP.net = Unleashed. When I go to load my page I receive the following error = message: Server Error in '/' Application.=20 -------------------------------------------------------------------------= ------- Parser Error=20 D...more >>

using a condition in a repeater control
Posted by Bernie V at 2/12/2004 8:27:24 AM
Hi group, Is it possible to use a condition in a repeater control ? I 'd like to use a condition to create this <a href='<%#DataBinder.Eval(Container.DataItem,"nieuwsid")%>.aspx'> part of the repeater At the moment I use "nieuwsid" to make the url but in some cases it has to be <a href='wch...more >>

share WebUserControls between asp.net projects?
Posted by Craig Buchanan at 2/12/2004 8:15:59 AM
Is it possible to share webuser controls between asp.net projects? If so, what is the downside to doing this? Currently, I'm copying objects. I was hoping for a better way. Thanks, Craig Buchanan ...more >>

Session Object Clear-up
Posted by Mike Z. at 2/12/2004 7:56:06 AM
I saved Socket Objects in Session to enhance the performance in my ASP.NET app. I have two questions. 1) Does ASP.NET Logon expire the same moment as Session Expire? I use Form Authentication in my ASP.NET Application. 2) I want to Close/Shutdown all socket objects at Session_End() in Global.a...more >>

Problem with Sending Email outside of Domain
Posted by Pauravi at 2/12/2004 7:41:08 AM
Hi I am making a project that sends emails.I m using System.Web.Mail and smtpMail.Send() to send emails i have set my SmtpMail.SmtpServer to my remote serve The problem is I m not able to send emails outside of my domain that is to hotmail ,yahoo or indiatimes,etc.But i m able to send thru Ou...more >>

ResourceManager and localization problem with Windows Server 2003
Posted by rmassy NO[at]SPAM lanexpert.ch at 2/12/2004 5:00:55 AM
We are writing an ASP.Net C# application (VS 2003) and plan to use embedded resources files for french, german and english UI. I created resx files named _todo.resx and _todo.fr-CH.resx Here is part of the code: .... string txtReturn = "?"; ResourceManager locRM = new ResourceManager("my...more >>

page viewstate
Posted by jzink at 2/12/2004 4:56:06 AM
How come I can use the following line in my page_load ViewState["abc123"] = "xxxx" But when I try the same line of code in another function I get the following compile error An object reference is required for the nonstatic field, method, or property 'System.Web.UI.Control.ViewState Do I need ...more >>

Access controls on a Multipage control
Posted by Marc Robitaille at 2/12/2004 4:35:32 AM
Hello, Why I can't select controls that I have put in a Multipage from the design view? Is there a way to access those controls whitout to have to go in the HTML view to find the control that I want to change it's property? Thank you Marc ...more >>

New version of .Net
Posted by Lydia at 2/12/2004 4:11:05 AM
Dear All Does anyone know when the new version of .Net is being released?...more >>

general ASP.NET web programming question
Posted by David at 2/12/2004 2:18:48 AM
I am running into situtations where confining all forms to just one window (instance of broswer) is becoming overly restrictive. Does ASP.NET provide ways to have multiple windows to interact with each other (For example, use a "child" window to fill out an order item. Once the save button is ...more >>

retreving dynamically added controls using C#
Posted by Amit Pandya at 2/12/2004 1:21:06 AM
Hi This is all using C# and i am new to it. I have a checkbox control that is added programmtically in the page_load event. Now on button click i want to retreive the checkbox control but i am not able to retreive. For retreving i am using FindControl method but i am not getting it. ...more >>

Performance related Question.....
Posted by Cris Rock at 2/12/2004 12:07:03 AM
In my ASP.Net application I am using webcontrols.TextBox to display data. I can use the Label control to display my data here since I am using this edit box as read only. Will there be any advantage of using label box instead of text box in terms of memory usage or any other performance issue ? P...more >>


DevelopmentNow Blog