Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > may 2004 > threads for saturday may 15

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

ASDF
Posted by ASDF at 5/15/2004 11:56:02 PM
ASDF...more >>


Problem with binding ListItemCollection with DropDownList
Posted by RAMADU at 5/15/2004 11:56:01 PM
Hi There is a ListItemCollection containing ListItems (of course), each of whose Value and Text properties have been set. The Value and Text's values are different i.e. ListItem[0].Text = "Name0" ListItem[0].Value = "ID0" ListItem[1].Text = "Name1" ListItem[1].Value = "ID1" The above List...more >>

validateRequest="false" not working in web.config or page directive
Posted by Tim Zych at 5/15/2004 10:44:31 PM
I'm trying to stop .Net from validating data entered into a textbox. When I enter < or > .Net returns an error: potentially dangerous Request.Form value was detected from the client... so a search on google indicates a couple of options: 1. Add validateRequest = "false" in the page directi...more >>

aspnet test app
Posted by Tim Reago at 5/15/2004 9:30:23 PM
We just installed visual studio .net 2003 and ran a simple vb application that pull up a main application window. It compiled and ran. We also tried to do the same for an asp.net application: New Project | ASP.Net Web App | Default: http://localhost//WebApplication1. Error message: visual s...more >>

beginner asp.net question
Posted by suzy at 5/15/2004 9:11:49 PM
hi, if i have a web page (lets say a contact us page), where a user enters their details then clicks "send" at which point an email gets sent to the webmaster. now i have created the contact us page using the designer so the page contains plenty of text boxes etc. i want to display a sim...more >>

User Account Running at Application_end
Posted by Alphonse Giambrone at 5/15/2004 8:21:29 PM
I have a small asp.net web app running on a shared host. It uses a Jet (Access) database. I included a routine to compact the database when the application_event fires if it has not been compacted for a certain period of time. A compact must be done into a new file. In other words mydb.mdb compa...more >>

Web servere not running ASP.NET 1.1
Posted by TJ at 5/15/2004 7:42:33 PM
Just installed Studio and tried to create a new ASP Project and I get the error that my Web Server isn't running the correct version of ASP.NET. Just installed. Is it possible my MSDN subscription came with incompatable applications? Any Ideas... Thanks ...more >>

ListBox items changed client-side are not available server-side
Posted by Valerian John at 5/15/2004 6:57:03 PM
I have a ListBox webcontrol on an aspx page. Items are added to the ListBox using client-side code. However, when the page is posted back the items are missing/not available. (It is like the page does not know the items were added client-side.) TIA, Val ...more >>



Very easy question about writing to files
Posted by Dano at 5/15/2004 6:41:43 PM
Hi all, I am trying to do something incredibly simple, but unforunately the Naziesque Security won't let me do it. All I want to do is write text to a file. That's it! But everytime I do I keep getting an error that says Access is Denied to that path, regardless of which path I choose. S...more >>

Cannot shutdown W3SVC
Posted by JBMC at 5/15/2004 5:29:20 PM
Hi, I've just installed ASP.NET 1.1 (I have previously been using 1.0). Now I am unable to create a new asp.net application in VS.NET. The problems is as follows..... It appears that the W3SVC service is 'frozen' in ShutDown mode. When I do a 'NET STOP W3SVC' from the command line I get t...more >>

IIS Problem
Posted by Reza Alirezaei at 5/15/2004 4:46:49 PM
when I try to run an asp page in my IIS ,,I get the following Error: Event Type: Error Event Source: COM+ Event Category: Unknown Event ID: 4689 Date: 5/15/2004 Time: 4:43:29 PM User: N/A Computer: ALIREZAEI Description: The run-time environment has detected an inconsistency in its in...more >>

Re: beginner asp.net question
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 5/15/2004 3:16:50 PM
Suzy, There is a really simple way to impliment this functionality, all you have to do is wrap all your TextBoxes and the Submit button with a Panel control; System.Web.UI.WebControls.Panel. Then once the page has been submitted and you've sent the e-mail all you need to do is tell the Pane...more >>

httpModules :: BeginRequest Behavior
Posted by greg NO[at]SPAM thirdstone.net at 5/15/2004 2:41:12 PM
I'm trying to implement some kind of page controller, a class that will intercept all incoming requests and route them appropriately. More specifically, I'd like to intercept a request for a non-existent url, say "http://www.somesite.com/view/UserName", and have that request URL parsed so that I...more >>

Questions about SmtpMail class of ASP.NET
Posted by Edward at 5/15/2004 12:15:44 PM
Hello, everybody, I tried to send Email out using ASP.NET, but failed, here is the code = of sending: -------------------------------------------------------------------------= ------- Try Try 'SmtpMail.SmtpServer =3D "smtp.citiz.net" SmtpMail.Send(msg)...more >>

Re: Dropdown list is getting cleared after button_click event
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 5/15/2004 11:34:55 AM
Tim, 1. Ensure that the EnableViewState directive is set in the Page tag on the .aspx. 2. Wrap your code in the Page_Load Event with an if (!Page.IsPostBack){} Does this help? Phil Winstanley Microsoft ASP.NET MVP http://www.myservicescentral.com ...more >>

Re: caching a XML Document and binding it to a custom control
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 5/15/2004 11:32:30 AM
Henri, You can do exactly this with the Cache classes. Take a look here: - http://aspnet.4guysfromrolla.com/articles/100902-1.aspx http://aspnet.4guysfromrolla.com/articles/022802-1.aspx http://aspnet.4guysfromrolla.com/articles/022802-1.2.aspx Does this help? Phil Winstanley. Micr...more >>

Re: Generate the rss feed at a given time ?
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 5/15/2004 11:29:35 AM
Hi, There are a couple of ways to do this: - 1. Use the Session_OnStart event in the Global.asax and use Application variables checking the time and then after a specific time Generate RSS Feed. 2. Use Caching with an Expiry Time of 09:59 the Next Day. Does this help? Phil Winstanley. ...more >>

Page.Render do not render complete page
Posted by Lau Lei Cheong at 5/15/2004 11:09:30 AM
Hello, I'm writing a web page using ASP.NET that with send the page's HTML content to user through e-mail. My plan is to dump the content to a file then email it to user as attachment. The following the part of the code I used: [Begin of Quote] StreamWriter MyWriter = myfile.Create...more >>

How to sign out using forms authentication?
Posted by Keith Selbee at 5/15/2004 10:35:29 AM
I want to have a logout button on my page and tried putting FormsAuthentication.SignOut() behind it but it doesn't work. Anyone have any ideas?? Keith ...more >>

Serializng objects for SQL State management
Posted by GSK at 5/15/2004 9:49:00 AM
Hello all, I am trying to migrate my site from In-proc state management to out-of-proc SQL state management. I am having problems with the serialization of my classes. I have added the [Serializable] attribute to the classes, which works, but some of the classes' objects (XmlDocument is o...more >>

Setting Web Colors in C#
Posted by Alex Maghen at 5/15/2004 9:36:03 AM
I'm having trouble figuring out which objects and what syntax to use to set Web Control Colors using RGB values from Code-Behind Let's say I have a control WebCtl and I want to set it's BackColor to "#ffee22" dynamically in CS code. I can't find a color object that I use. Is it this COlorConverter...more >>

delete loop
Posted by G. Dean Blake at 5/15/2004 9:34:40 AM
When I do this..... myDA.SelectCommand.Parameters("@SCID").Value = scid Dim dt As New DataTable myDA.Fill(dt) If dt.Rows.Count > 0 Then Dim myRow As DataRow = dt.Rows(0) For Each myRow In dt.Rows dt.Rows.Remove(myRow) ...more >>

Re: How to sign out using forms authentication?
Posted by Phil Winstanley [Microsoft MVP] at 5/15/2004 7:55:59 AM
Keith, All that FormsAuthentication.SignOut() does is remove the Cookie from the client that says the user is Authenticated. After it's been called you might want to do something like: - Response.Redirect("Login.aspx"); If you take a look at the IsAuthenticated() method on the FormsIden...more >>

Re: Fetch data from two different database -Datagrid control
Posted by Phil Winstanley [Microsoft MVP] at 5/15/2004 7:44:43 AM
Hi, Can you just append all the DataRows from both the Sql Server and the Oracle source in to the same DataTable, then just use that table as the DataSource of your DataGrid? Hth, Phil Winstanley Microsoft ASP.NET MVP ...more >>

DropDownList template column in DataGrid
Posted by mg at 5/15/2004 7:41:02 AM
I have a DataGrid (WebForm - C#) that has a template column that contains a dropdownlist named "DdlTest" In DataGrid1_UpdateCommand, the lin DropDownList ddlTest = (DropDownList) e.Item.FindControl("DdlTest") enables me to work with ddlTest - with, for example, ddlTest.SelectedValu However,...more >>

Re: Serializng objects for SQL State management
Posted by Phil Winstanley [Microsoft MVP] at 5/15/2004 7:40:40 AM
Or another option is to just output the XML Document as a string containing the XML. That should Serialize fine. Hth, Phil Winstanley Microsoft ASP.NET MVP ...more >>

best way to dynamically alter page contents and speed
Posted by martinthrelly NO[at]SPAM yahoo-dot-com.no-spam.invalid at 5/15/2004 4:59:38 AM
the lower part of my page consists of a dataList along with other server controls and HTML markup. this is my data display section. the upper part of my page is a data entry section. what I want to do is give the user the option of displaying the data below OR NOT. i.e. I am hoping that if th...more >>

Re: Dispose pattern in ASP.NET pages
Posted by Phil Winstanley [Microsoft MVP] at 5/15/2004 12:51:47 AM
I personally find it better to Instantiate the object, populate any variables that need populating (not assigning them to controls or anything just holder variables) then destroying the object. Then once that's done, you can use your values, open and close as quickly as possible. Phil Winst...more >>

Application Block ExceptionManager- problem
Posted by Makarand at 5/15/2004 12:51:02 AM
Hello All I have a web application in which I am using Microsoft.ApplicationBlocks.ExceptionManagement to Publish the Exception details in Event Log I have Windows Authentication set for application and Intergrated Windows Authentication (with "NO" Anonumous Access) set in IIS Even though I ge...more >>


DevelopmentNow Blog