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 > september 2005 > threads for thursday september 29

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

HOW to solve ... System.Net.WebException: Connection closed
Posted by etantonio NO[at]SPAM gmail.com at 9/29/2005 11:43:59 PM
Good morning, I've a problem, in the past I translate my site from google or altavista with a code similar to this : <%@ Page Language="c#" Trace="true" Debug="true" %> <%@ import Namespace="System.Net" %> <%@ import Namespace="System.IO" %> <script runat="server"> void Page_Load(Object ...more >>


Not all images are loaded correctly
Posted by etantonio NO[at]SPAM gmail.com at 9/29/2005 11:23:01 PM
Good morning, I've a web page where I have put about 30 little images (4kb each) coming from other sites, the problem is that not all are showed and the images showed are random, I don't know if it is a problem of the http protocol, but how I could solve the problem and force the browser to loa...more >>

Value of variable in my user control keeps getting reset
Posted by Nathan Sokalski at 9/29/2005 11:19:43 PM
I have a user control that contains three variables which are accessed = through public properties. They are declared immediately below the "Web = Form Designer Generated Code" section. Every time an event is fired by = one of the controls contained in the User Control, these variable are = rese...more >>

Browser Refresh needed for .js and HTML??
Posted by milkyway at 9/29/2005 11:15:06 PM
Hello to all ;-) I am using the Visual Studio 2005 .NET framework. Basically, I have file that is served up as an HTML file on the client side (generated from a .aspx file). But - the HTML file is using javascript to implement a button click (on the client side). Ex: <INPUT onclick="aler...more >>

Forms Authentication with Active Directory LDAP Problem
Posted by Tdar at 9/29/2005 10:02:04 PM
Sorry for the dup post but looking for a response and this is being posted under my MSDN managed newsgroups handle and in a different newsgroup Hi, As I said in the past post I am using this Article http://msdn.microsoft.com/security/default.aspx?pull=/library/en-us/dnpag2/html/paght000026....more >>

Auto scroll the page?
Posted by Daniel at 9/29/2005 7:47:01 PM
Hi All, i have problem to scroll the page the the specific section of the page after click a command button. I have tried using <a name="f"> and use response.redirect("xxxx.aspx?#f"). Although it works but i dont wan to reload the page. I also used hyperlink to goto the "f" section. It wo...more >>

Is there any search engine source code for reference?
Posted by ABC at 9/29/2005 6:33:24 PM
Hi, All Is there any search engine source code for reference? Thanks ...more >>

Redirect("/") ??
Posted by PhillipBD at 9/29/2005 6:33:02 PM
Quick question. What does the URL "/" argument do in the Response.Redirect method?...more >>



Problems setting a cookie that already exists
Posted by Alan Silver at 9/29/2005 6:31:05 PM
Hello, I have discovered that if I try and add a cookie when one by that already exists, nothing happens. No error, but the cookie is not set to the new value. For example (this is running in a DLL, which is why I use HttpContext)... HttpCookie cookie = new HttpCookie("fred", "ferret"...more >>

Hyperlink event.
Posted by Daniel at 9/29/2005 6:23:02 PM
Hi All, Does anyone know to send click event to the hyperlink?? What i mean is the user click on the button and the hyperlink click event will be trigger instead of persoanlly click on the hyperlink. Purpose of doing it, i need to filter some request from and direct to the suitable link. ...more >>

ASP.NET 2.0 in IIS is giving me error.
Posted by washoetech at 9/29/2005 6:11:19 PM
Hello, I have tried to run my ASP.NET 2.0 application from IIS and I get a page not found error. When I debug from within Visual Studio.NET 2005 my application works fine. Any ideas? Thanks, washoetech ...more >>

Web Parts in a Master Page
Posted by stefan at 9/29/2005 6:10:46 PM
Hi Everyone, I have been playing around with Web Parts recently in ASP.NET 2.0 and I ran into a problem when using them on a Master Page. The problem is that each page remembers the Web Part settings individually. So if I add a Web Part to page foo.aspx it will not show up on bar.aspx even ...more >>

SelectedIndex is not submitted with post
Posted by Nathan Sokalski at 9/29/2005 6:07:52 PM
I am working on a simple user control composed of 3 DropDownLists that = will be used to select Dates. The purpose of the control is to all the = user to choose a date using dropdown lists but not need to worry about = choosing a non-existing date (due to different months having different = numb...more >>

Is possible to use classes in an asp.net application from a console application?
Posted by Rabbit63 at 9/29/2005 5:54:06 PM
Hi: I want to use the classes of my asp.net application from my a console program. May I do that? Thanks Q....more >>

Send email in Asp.Net question - Name
Posted by Shapper at 9/29/2005 5:17:32 PM
Hello, I created a script to send an email from a contact form. Is it possible to send the name of the sender? I know I have the fields: mdg.From msg.To msg.Subject msg.Body But what about the person's name? I checked msg.Name but no success. Thanks, Miguel ...more >>

DataGrid Won't come back(2)
Posted by Tina at 9/29/2005 4:47:29 PM
This message refers to the one I left an hour ago. It's another way to ask a question that will help me solve my problem. Below is a working ASPX program. It has two buttons and a DataGrid named dg on it. There is a dataadapter and an associated typed dataset that is the source to the da...more >>

DataList ItemIndex.
Posted by Adam Knight at 9/29/2005 4:37:32 PM
Hi all, I have asked this question previously, but haven't recieved an adequate answer. I am wanting to output a datalist ItemIndex in a page. I know to display a data item i using <%# DataItem("mycolumn")%> and i know how to append variables. What i am missing, is how to retrieve a Da...more >>

Filter Question
Posted by Matías at 9/29/2005 4:24:04 PM
I have a list of elements. The elemets has id1, id2, id3,..... Now, I want to filter this list for "id1" or other id, How can I do that. Thanks in advance. ...more >>

Back button question
Posted by DougS at 9/29/2005 3:59:24 PM
I have an ASP.Net app and I'm trying to prevent the user from hitting the back button to get back to page2.aspx from page3.aspx. I put this code in page_init, page_load and page_prerender and it never fires except when I'm coming into the page or posting back. When I go 'back' to the page it...more >>

"Server Application Unavailable"... ?
Posted by PJ6 at 9/29/2005 3:53:28 PM
Other ASP.NET web projects are running OK, but one in particular is giving me a "Server Application Unavailable" error. The event log shows, "Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied." This was working earlier today, and I ha...more >>

<% %> tag to get value
Posted by Magnus Blomberg at 9/29/2005 3:45:50 PM
Hello! I am trying to write a simple aspx page with You are logged on as <% = getuser(); %> in the body text. In my code-behind I write (for test: public String getuser() { String s =3D Environment.UserDomainName + "\\" + Environment.UserName; return "testing"; // s; } Nothing is return...more >>

Uploading file input clearing on postback
Posted by tshad at 9/29/2005 3:22:48 PM
I have an upload file input as: <input id="MyFile" style="width:300px" type="File" runat="Server"> This works fine, but I find that if my page doesn't pass validation during postback, the page comes back with all the data intact, except for the upload object. The text box for "MyFile" (my e...more >>

Datagrid dynamically generated template columns dissapearing
Posted by abigblackman NO[at]SPAM gmail.com at 9/29/2005 3:03:14 PM
Hi, I have a datagrid that is programatically generated with template columns. There seems to be something happening where only the last record is rendered with any data. I start by creating the template columns like this: <code> TemplateColumn tc.HeaderText = "Name"; ColumnTemplate ct...more >>

Referencing External Class
Posted by Mike at 9/29/2005 3:02:43 PM
Hello, I am attempting to develop a class that will inherit from System.Web.UI.Page to serve as a the base class for all of the code behind classes in my web application. I would like to store the class as a single file (basepage.cs) and not in an assembly. (The class does not have access to...more >>

DataGrid Won't come back
Posted by Tina at 9/29/2005 2:42:24 PM
I have, dozens of times, displayed datagrids, datasourced by an .xsd dataset, with textboxes in template columns and always been able to spin through those grids on, say a button click event. In a new project I am dynamicaly populating the datagrid columns, after which I retrieve data and d...more >>

Help me in Specifying Connection string to SQL server 2000 running on remote machine
Posted by vighnesh at 9/29/2005 2:21:39 PM
Hi All I am dealing a project in ASP.NET in which I have to establish a connection to SQL Server 2000 database,where the database was located on a remote system. For this I have used SQLConnection object and specified the connetion string.But when it comes to establish a connection its giv...more >>

User Control Event Not Firing
Posted by Landley at 9/29/2005 2:08:19 PM
Hi All, I am trying to raise a custom event from a user control. I have supplied my code below. It calls OnSave method that attempts to raise the save event, but it never gets to the handler in the default.aspx.vb file. [registration.ascx] Public Event Save(ByVal sender As Object, ByVal e...more >>

Dates dates dates dates... SQL and ASP.NET
Posted by David Lozzi at 9/29/2005 2:03:12 PM
Howdy, Users can specify a date in a field labeled dtDate. This field in SQL is a smalldatetime. When I vew the raw data in the table, it displays 9/29/2008, and when a user doesn't specify a date it displays as 1/1/1900. Issue 1) When displaying the records in a datagrid, using basically ...more >>

Send A System Alert to a User
Posted by Kenneth Keeley at 9/29/2005 2:02:39 PM
Hi, We are creating an online help desk package for our staff intranet site. We would like to have a popup message (like you get when you print to a network printer) sent to the IT support staff when a user submits a new help desk problem. can this be done with ASP.net and if so could somebody...more >>

asp:RadioButtonList help
Posted by Chris Kettenbach at 9/29/2005 1:41:00 PM
Good Afternoon Everyone, Is there any way to set the font of the listitems inside a radiobutton list? I have tried spans, tds, and tables and I can seem to get it to work. The html redered by this control is a label for each radio button in the list. How can I manipulate this font? It appear...more >>

Calendar!
Posted by Adam Knight at 9/29/2005 1:38:24 PM
Hi all, I have a page containing a aspx calendar. This page appears in a pop up window via a javascript open window command. What i want it to do next (of course) is respond to a users selection by passing back the value selected to the calling window. I don't see why a post back would ...more >>

DataView.RowFilter problem
Posted by Dave Hagerich at 9/29/2005 1:24:49 PM
I'm using a DataGrid with a DataSet and I'm trying to filter the data being displayed, using the following code as a test: DataView theView = new DataView(theDataSet.Tables["Access Viewer"]); theView.RowFilter = "'Record ID' = '0'"; theView.RowStateFilter = DataViewRowState.ModifiedCurrent; D...more >>

Language in Page directive in VS 2005
Posted by rjack NO[at]SPAM elegancetech.com at 9/29/2005 1:07:26 PM
I'm using VS 2005 Beta 2. In VS 2003, the Page directive in an aspx page has Language and CodeBehind attributes. You can have the language be different than the code behind file language. For instance, you can have Language="vb" CodeBehind="classA.cs" In VS 2005, the CodeBehind attribute...more >>

Nested datagrid event firing - item index of parent grid
Posted by Andy at 9/29/2005 1:00:50 PM
Hello, I have a datagrid within another datagrid. The innder datagrid contains a dropdownlist which fires an event as index change (OnSelectedIndexChanged). I can get the ItemIndex of the dropdownlist using this code below: ((DataGridItem)((DropDownList)Sender).NamingContainer).ItemIndex;...more >>

can't access: System.Web.HttpContext.Current.Cache
Posted by xzzy at 9/29/2005 12:58:23 PM
A. I need to access: System.Web.HttpContext.Current.Cache but get this error: "Object reference not set to an instance of the object" B. System.Web.HttpContext.Current.Cache is accessible outside of this class. I have listed the code below and the offending line of...more >>

dll read config file
Posted by NuB at 9/29/2005 12:50:05 PM
I'm creating a C# class file(DLL) that will be used by an asp.net application. In the DLL I want to read a web.config, or app.config file so some information can change without having to go into the code itself. How can I have the dll read a app.config or web.config file for data? The infor...more >>

How do I iterate through a listbox without using FOR EACH
Posted by COHENMARVIN at 9/29/2005 12:33:24 PM
I've been doing a simple for-each loop to remove multiple selected items from one listbox, and to dump them in another listbox. for each item in LeftListBox.Items if (item.Selected = true) Then RightListBox.Items.Add(item) LeftListBox.Items.Remove(item) End If Next The p...more >>

memory/time problem, windows authentication for a asp.net web service
Posted by leo_junquera NO[at]SPAM hotmail.com at 9/29/2005 12:30:28 PM
I am trying to use windows authentication on an intranet to call a web service. When I make my first call to the service after connecting from a client app using: ws.Url = ServiceUrl; ws.Credentials = System.Net.CredentialCache.DefaultCredentials; ws.UnsafeAuthenticatedConnectionSharing = tr...more >>

Thread not starting
Posted by Gürkan Demirci at 9/29/2005 12:21:49 PM
Hi, i am building an ASP.NET web project with J#. I have the problem, that a Threads run() method isn't invoked after Thread.start(). It's working in one project, but it isn't in an other one. Are there any settings involved in this ? regards, gürkan ...more >>

Error handling in a 3 Tier architecture????
Posted by Annie at 9/29/2005 12:11:53 PM
hello guys, I have a GUI, Business Object layer and data layer. What is the best way to handle errors in these layers? Do I need to catch errors in all these layers? Or simply as all the errors will fall to the GUI layer ultimately I just need to handle the errors in the GUI layer and th...more >>

Response.writefile question
Posted by lanem at 9/29/2005 11:56:13 AM
I am using Reponse.WriteFile to stream pdf documents to users on my website. This works fine if the documents are physically on the website (in wwwroot somewhere). But, how can I get it to have the same functionality with the documents stored in some other directory on the server, i.e. C:\pd...more >>

Validation of CheckBoxLists
Posted by Michael Groeger at 9/29/2005 10:55:51 AM
Hi, is it possible to validate a CheckBoxList with standard .net validators? I need to test if at least one checkbox is checked. Any other possibilities are also appreciated. Regards, Michael ...more >>

How to pass values to a vbscript function?
Posted by Terry Olsen at 9/29/2005 10:46:38 AM
I pulled the following client-side script from an ASP page. <script language="vbscript"> function doNetOp() Dim WshShell, oExec, HostIP Set WshShell = CreateObject("WScript.Shell") Set oExec = WshShell.Exec("C:\Program Files\Netop Remote Control\GUEST\ngstw32.exe /h:MTLOGUWK0009 /c:TCP/...more >>

Custom Server Control and DataGrid Issue.
Posted by Sam Samnah at 9/29/2005 9:45:44 AM
Hi Everyone. It has been a long time since my last post. Nevertheless, I have built a custom server control that allows a user to edit text, bolding, italics strike though table insertion and manipulation etc etc. The control works perfectly when placed outside a templated control but whe...more >>

Setting SelectedIndex problems
Posted by Filip at 9/29/2005 9:33:53 AM
Hi all, I am having a problem with the DropDownList control consider the following code : <script language="VB" runat="server"> Sub Page_Load(S As Object, E As EventArgs) ddl.Items.Add("") ddl.Items.Add("item1") ddl.Items.Add("item2") ddl.Items.Add("item3") ddl.Sel...more >>

Bug in forms authentication?
Posted by mircu at 9/29/2005 9:30:54 AM
Hi, I noticed weird behaviour with the site that is using forms authentication. I am logged to the site from the same machine from two browsers (opened separately, not ctrl-N) as different users so two sessions are created. Then from the one window I logoff but I'm automatically logouted also f...more >>

IStateManager in a class object
Posted by Brad at 9/29/2005 9:15:41 AM
I am creating a class (not a control) which implements IStateManager. I've created the class and all of the implementations (LoadView, SaveViewState, etc...). My Question is: How do I instantiate this class in a page and then re-instantiate it on post back such that I don't lose it's views...more >>

Problem using datagrid on a web page
Posted by vvenk at 9/29/2005 9:15:05 AM
Hello: I get a blank page when I tried to use a datagrid on a web page that is bound to a dataset. The dataset ahs 1 table and 6 rows in that table. Please help. venki...more >>

UserControl Is Nothing
Posted by Landley at 9/29/2005 9:14:52 AM
Hi All, My Web UserControl Is Nothing in the Load event. That I am aware of, I have added the control correctly to the page as the control appears, links to my database and displays correctly. What I am trying to do is change a property on the control at runtime, and I thought I could do ...more >>

Mutli Email
Posted by WebBuilder451 at 9/29/2005 8:20:25 AM
I'm writting a page to send multi emails (just a few at a time, max 100) once a day. should this be done using just a reader, or is there a way to do this with a dataset? thanks -- thanks (as always) some day i''m gona pay this forum back for all the help i''m getting kes...more >>

application center test documentation
Posted by Craig at 9/29/2005 8:18:09 AM
Am looking for recommendations for MS's Application Center Test (ACT) documentation. Thanks in advance. - Craig...more >>

Response vs Server ???
Posted by serge calderara at 9/29/2005 8:18:06 AM
Dear all, I have a problem to identify when I need to use Response.Redirect("mypage.aspx") or Server.Transfert("myPage.aspx") ? Does any one have any tips for remembering ? regards thanks serge...more >>

disable autofill in WebControls.TextBox control
Posted by Andre Ranieri at 9/29/2005 8:01:03 AM
I'm retouching our corporate web site that, among other things, allows customers to log in and pay their invoices online. I noticed that on the checkout page, the credit card number textbox autofills with past entries for that textbox. My development workstation has the Google Toolbar instal...more >>

Send Excel XML to client
Posted by Sudhesh at 9/29/2005 8:00:23 AM
Hi, I found a very nice artice to convert a dataset to XML file that complies with EXCEL schema http://www.codeproject.com/dotnet/ExportToExcel.asp However, the one thing that article didn't help me with, is how do I send this file down to the browser so it opens up like Excel? Can anyon...more >>

Output Cache
Posted by Vish at 9/29/2005 7:36:02 AM
Is there a way to see the output cache entries in the httpcontext ? i tried looping thru the items in the cache but they dont seem to be there. I know there are several ways to remove them using the virtual path or creating a dependency on the entries but i want to know at a given point of ti...more >>

How to add a print current page function
Posted by laurence chang at 9/29/2005 6:24:33 AM
How can I add a print link or button to print current page instead of going to file print? Thanks ahead. Laurence *** Sent via Developersdex http://www.developersdex.com ***...more >>

Help , Forn Authentication problem
Posted by laurence chang at 9/29/2005 6:20:35 AM
I'm trying to use form autentication. I have a login.aspx and a register.aspx. Register.aspx is for new user. I can set web.config to redirect to login.aspx and use FormsAuthentication.RedirectFromLoginPage(txtUserName.Text,true) to go back the page the want. But for new user they have to go to ...more >>

TreeView
Posted by madfisher at 9/29/2005 5:37:21 AM
Hi, I am using a Microsoft.Web.UI.WebControls.TreeView and I seem to have done everything right, but my tree view doesn't display correctly in IE, however does display correct in the editor. In IE it displays all the text in a straight line. Anyone know what I'm missing? Thanks Marc...more >>

conversion of color to hex string
Posted by expertware NO[at]SPAM libero.it at 9/29/2005 3:40:22 AM
To conver a color to its hexadecimal string I have devised this way: Function HexStringFromColor(ByVal Colore As Color) As String Return "#" & Colore.FromArgb(Colore.A, Colore).Name.Substring(2).ToUpper End Function but it seems a little bit ackward. I would like to ask i...more >>

Help with HttpContext.Current.User.Identity.Name
Posted by vvenk at 9/29/2005 3:32:02 AM
Hello: I am trying to initialize a User object at application start: Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the application is started Dim loOutcome As InnoBox_BO.User._Outcome Dim goUser As InnoBox_BO.User goUser...more >>

POST from external form doesn't work?
Posted by Damien at 9/29/2005 2:59:40 AM
Hi guys, Before I spend hours barking up the wrong tree, am I right in thinking that there is no way for a non ASP.NET page to POST to a ASP.NET page and be able to retrieve the variables in any fashion? So far as I can determine, the POST gets changed into a GET before it hits any of my code...more >>

Connection Pooling
Posted by Bayapathi Jain at 9/29/2005 2:54:32 AM
I want to know about Connection Pooling. How it Works in ADO.NET. And tell me where to find the flash demonstration about the working of the Connection Pooling. *** Sent via Developersdex http://www.developersdex.com ***...more >>

VStudio 2005 vb.net question.
Posted by drawnai NO[at]SPAM hotmail.com at 9/29/2005 2:23:52 AM
I've dropped a datasource onto my webform. I did this to take advantage of the wizards that set up the code for you, though I'm putting the code it produces in a class, and deleting the web object afterwards. How do I get to see the code it produces? It was there in vis studio 2003, not it'...more >>

ASP.net worker process
Posted by pradeep_TP at 9/29/2005 1:53:01 AM
Hi all, I would like to know more about asp.net worker process with resepct to the following points. 1) HOw many worker process can the server run at a time 2) How does worker process restart or recycles and under what condition If anybody knows any web URL containing any details about a...more >>

Automatic Session timeout - sporadically
Posted by pradeep_TP at 9/29/2005 12:07:03 AM
Hi, I am facing a very strange problem with my web sever which had been running fine until few days back when users started complaining that the session is expiring automatically. When the users are logged into the web site and actually doing some activity, they are gettign logged out a...more >>


DevelopmentNow Blog