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 wednesday march 24

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

Web.Config
Posted by Andy Sutorius at 3/24/2004 10:39:51 PM
I have a web application with a web.config in the root folder (virtual folder) which contains a database connection string. I have a new web form 2 folder levels below the web.config and it cannot read the connection string in web.config. I also have a web form which is located 3 folder leve...more >>

date time stamp in sql
Posted by Rod Snyder at 3/24/2004 9:03:55 PM
I'm developing an app that is taking an ms access database upsized to sql server 2k and it has a field date/time for the time stamp; access shows a default value of Now() in the design view; I get errors trying that in SQL Server. Anyone have any suggestions? Rod ...more >>

Thread Aborted Error - Not on a Redirect
Posted by craigj NO[at]SPAM cyberconnex.com at 3/24/2004 8:42:31 PM
We have a C# web service and website which calls SPs (via the ADO.NET SqlCommand) to read data from a SQL Sever 2000 database. We get the following exception intermittently "Thread was being aborted". I read a posting that said this as well, and the fix was to increase the executionTimeout set...more >>

custom class is failing...HELP:)
Posted by Chris Marsh at 3/24/2004 7:53:07 PM
Hello, I have moved the ASP.NET C# source code from PC 'x' to PC 'y', since doing that we are having a problem with 4 custom Visual FoxPro classes DLL's that we have created - they are failing. They show up with the 'warning' triangle, if we remove and then re-add to the Solution Explorer then...more >>

Add an event in another event
Posted by James P at 3/24/2004 6:48:53 PM
Is it possible to add an event from within another event? I am having hard time make it work. Situation: I have a dropdown. User selects a value and clicks a button. In the click event of the button, based on some value I need to set the SelectedIndexChanged event of 2 dropdowns. The aut...more >>

Error trying to set an user's password to the Active Directory
Posted by José Manuel at 3/24/2004 6:43:27 PM
Hi, I'm getting the following Exception and Message when I try to set an user's password in the Active Directory, I Would appreciate any help: The Network path was not found Description: An unhandled exception occurred during the execution of the current web request. Please review the st...more >>

How do I CAST a control?
Posted by Johnny Luner at 3/24/2004 6:41:47 PM
I have a control on my page, but I don't know how to CAST it so that I can access the properties dynamically using FindControl... help. Is it possible?? since control is not a real class. If not, any solutions suggestion? Here is the code: <%@ Register TagPrefix="company" tagname="items" s...more >>

is it possible to retrieve Excel 4.0 worksheet to datagrid ?
Posted by edward,wei at 3/24/2004 6:06:06 PM
hi, I can open the Excel file(ms Excel 2000 and MS Excel 2003) in my aspx page,It's works fine. my souce code as below ======================================= Dim myds As New DataSet( Dim MyExcelConnectStr As String = "Provider=Microsoft.Jet.OLEDb.4.0;data source=d:\" & TextBox1.Text & ".xls" & ...more >>



inter-working with legacy apps.
Posted by Paul at 3/24/2004 5:53:35 PM
I'm not sure that this is an ASP.NET specific Q, but wonder whether there's any feature of .NET that might help. Like many, we're moving to web based apps using a std 3 tier architecture. However, some of our apps have no usable web front end. One in particular is a VB app running on a loc...more >>

Northwind based ASP.NET Demo
Posted by medhanush NO[at]SPAM yahoo.com at 3/24/2004 5:46:07 PM
Hi All, Can sb pl recommend me any good ASP.NET demo app that is based on the Northwind database ? Thanks MeDhanush...more >>

Hide Borders
Posted by ruca at 3/24/2004 5:45:40 PM
How can I hide borders of my frames and borders of tables for using with browser Opera and Netscape? In Internet Explorer works fine. -- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca ...more >>

calling asp.net method from javascript
Posted by Nikhil Patel at 3/24/2004 4:59:39 PM
Hi all, Is it possible to call an asp.net method from Javascript. I want to handle an event of a third party control in Javascript. The control passes variable values in the parameters of the Javascript event handler. Now depending on the value of this variables I want to call an ASP.Net meth...more >>

Windows Authentication
Posted by Jim Heavey at 3/24/2004 4:55:17 PM
I have never used windows authentication for an web application, but now it seems I might have the opportunity to do so. I am wondering how to retrieve the UserID of the person accessing my web page. If you know of any examples of how to set up the web.config file and if there is any cod...more >>

Extended Search Dropdown?
Posted by Dan at 3/24/2004 4:49:44 PM
Is there any dropdown control out there that will search past the first character - ie if the list contains Cat,Cow and Otter. I could type 'c' and 'o' and be placed on cow rather than otter. ...more >>

How to avoid Session Expiration
Posted by Ed at 3/24/2004 4:46:43 PM
Hello, I´m developing a system using asp.net, I have a page that I don´t want to expire because the user will fill it "slowly" Is there any way for doing that ? tks ed ...more >>

POST form from HTML to ASP.NET
Posted by Brian W at 3/24/2004 4:41:38 PM
(Jeez did I say that right? :-) This may seem like a stupid question, but I have my reasons for wanting to do this... If I have an HTML page with a form tag on it, can I set the action to an ASP.NET page something like this: <form action="test.aspx" method="post"> <!-- Some input c...more >>

seperate nested ASP.NET application in IIS 6.0
Posted by Michael Porcelli at 3/24/2004 4:39:52 PM
Greetings, I am encountering some difficulties setting up a separate nested ASP.NET application. The problem seems to be caused by the .NET runtime attempting to load an assembly referenced by the root application from locations relative to the sub application. My intention is for the nested...more >>

Set value of asp.net dropdownlist from codebehind
Posted by moondaddy at 3/24/2004 4:37:04 PM
I have a asp.net dropdownlist on a page and need to set the selected item to a certain item in the list using the codebehind. For example, I have a list of 4 different shipping methods in the list where the value attribute is the primary key value from the database and has nothing to do with the...more >>

formating a number
Posted by Seth Broomer at 3/24/2004 4:34:39 PM
i have a stupid question i have a string 123456 i need to format it before i out put it. i have tried String.Format("{0:#,#####}","123456") but i don't get the 123,456 what am i doing wrong? thanks ...more >>

asp:TableCell & Background image
Posted by Brian W at 3/24/2004 4:33:37 PM
OK, I give up! How are you **supposed** to set the background image of a single asp:TableCell or a asp:TableRow ? TIA Brian W ...more >>

variable type that can be declared in a base class this is accessible only to classes that inherit the base class
Posted by Dan at 3/24/2004 4:22:45 PM
Is there a variable type that can be declared in a base class this is = accessible only to classes that inherit the base class. For example. In a base class we have a bunch of Read Only properties.. The ReadOnly = properties are populated via private variables fthat get their data from = a...more >>

Arraylist to store objects?
Posted by C Downey at 3/24/2004 4:21:44 PM
Is there a way I can use the arraylist to store objects? I am trying to get my function to return an arraylist of my objects but I keep getting "System.NullReferenceException: Object reference not set to an instance of an object" errors. Any help would be greatly appreciated Eg: Dim alAs ...more >>

Redirects not working...
Posted by Tim Mulholland at 3/24/2004 4:20:41 PM
Anyone seen this behavior before? On my development server, the whole site is working fine. When i upload it to my webhost, all of the calls to Response.Redirect(...) and even the redirects in the SmartNavigation.htm page used when Page.SmartNavigation is true seem to not be working. Any cl...more >>

Invoke browser Back function?
Posted by Olav Tollefsen at 3/24/2004 4:18:04 PM
I have a form which the user fills out. In some cases I redirect the user to another page in case of errors. How can I redirect the user back to the form without loosing all the fields that the user already filled in? Olav ...more >>

WebControls and Page_Load about Events (TextChanged)
Posted by jorge at 3/24/2004 4:02:07 PM
Hello all, Why is it that: I have a WebForm and on Page_Load: Control ctrl = LoadControl("WebUserControl1.ascx"); PlaceHolder1.Controls.Add(ctrl); And a WebUserControl that contains a TextBox I have to wait until the TextChanged event fires on the webusercontrol to retrieve the textbox...more >>

Design Question
Posted by Terry Diederich at 3/24/2004 3:32:32 PM
I have a design question. I am going to be building an intranet web application that will contain a lot of training material. Rather than storing each training document as a separate HTML file on the server, I was thinking of saving the HTML for the document in a database and then building...more >>

Default IIS Directory for ASP.NET Projects
Posted by Pete at 3/24/2004 3:27:22 PM
Is there a way to set the default directory on IIS for where new ASP.NET projects are created? For that matter is there a way to change the location of where they are created? When we try to set the path we get an error: 'Visual Studio .Net has detected that the specified Web server is not ...more >>

dropdown control filled using web service
Posted by Jon Paugh at 3/24/2004 3:24:16 PM
Hi All, Let's say I have a dropdown control and its value is dependent on the value of other fields in the page. So the value of one of the controls changes, and I want to change the value shown in the dropdownlist. is there a way to change the values shown in the dropdownlist without ...more >>

ASP.NET Requests Queued and IIS Restarting
Posted by Chris Goodwin at 3/24/2004 3:00:43 PM
I have a client that is experiencing a very strange problem on their web server. Once or twice a day the number of ASP.NET Requests Queued jumps from 0 to over 4 million in a split second. At this point IIS Terminates, and the IIS Admin Service and Web Publishing Service Stop and auto-restart ...more >>

Using the WebConfig for business rules container
Posted by moondaddy at 3/24/2004 3:00:19 PM
I'm wanting to use a config file to hold groups of business rules and am thinking of using the webconfig file for this so the first question I need to ask is: Is the webconfig file the appropriate place to do this or do I need to create a custom config file? The next question is how can I nest...more >>

Clearing selected items in Listbox
Posted by anony at 3/24/2004 2:39:41 PM
Hi, Is there a method to clear the selected items in a Listbox web control? It appears that ClearSelected() is for Windows Forms only. Thanks, Brian ...more >>

Spell Checking
Posted by Jim Heavey at 3/24/2004 2:35:09 PM
Is there a product which you can use/purchase which provides spell checking for a textbox.... Thanks in advance for your assistance.......more >>

Standard Templates
Posted by Brian Candy at 3/24/2004 1:40:59 PM
ASP.NET Is it possible to layout a page with all my logo's, navigation, banners etc. then import that page into new pages? In other words create a template. Thanks in advance for any help. ...more >>

Invoking Delegate
Posted by Yama at 3/24/2004 1:38:18 PM
Hi, I created a window apps using a Delegate as follow: Dim dlg As New loadDelegate(AddressOf loadAsync) Form1.BeginInvoke(dlg, New Object() {Name, dataSource, dataMember}) How to transloate this to a webform? The following will not work: Dim dlg As New loadDelegate(AddressOf l...more >>

Validators
Posted by m-wisconsin at 3/24/2004 1:26:10 PM
Hi there: I have web page which has about 10 textboxes and 5 checkboxes. All textboxes have requiredfieldvalidator. If users press submit without entering any boxes validates works fine. But after users entered value in the textboxes and press submit again, I want to make sure that at lea...more >>

getting the wrong path (wrong PC!)
Posted by george d lake at 3/24/2004 1:23:57 PM
Hi, I have the following code. It works fin on the dev box (my box) but when I move the .vb, .aspx and dll over it will "some times" point to my box! here is the error message Access to the path "\\corpmis100973n3.mydomain.com\wwwroot$\AELookUpV3\Default.aspx.vb" is denied. ...more >>

Is it possible to display images in a ListView?
Posted by Ken Varn at 3/24/2004 12:09:39 PM
I very new to ASP.NET, coming from Windows Forms development. One of the things I have been trying to figure out is how to have the multi-select functionality of a ListBox control that will also allow me to display a unique Image with each item in the list. In Windows Forms I would do this wit...more >>

Hosting control in IE where control references Wrapper
Posted by Daniel vom Saal at 3/24/2004 12:08:43 PM
I've searched for this but can't find an answer: is it possible to use a wrapped COM component in a windows.forms class that is then loaded using ASP.NET? Specifics: we have a control that we build in VB.NET that uses WIALib. The reference was created using Visual Studio, so there is a refere...more >>

DataGrid- Adding a new row in the middle of the datagrid
Posted by Seth Broomer at 3/24/2004 12:04:13 PM
Hi, I'm trying to add a new row in the middle of my data grid, but i can't seem to figure it out. basically i have a dataset of A | 1 | 2 A | 2 | 3 B | 3 | 4 B | 4 | 5 basically when it sees the new 'B' Line I want to add a new row so that the data looks something like this...more >>

stopping page bouncing back to top
Posted by mark at 3/24/2004 11:34:31 AM
I have designed a large webform app (grid layout with VB behind), it has a series of buttons on the page - but on postback (they have to) the page bounces back to the top - which is quite annoying as theres quite a few buttons - is there anyway to stop this behaviour ? thanks ...more >>

prepared statement and date quality?
Posted by me at 3/24/2004 11:03:39 AM
Why am i not getting a match with this search: string sql = "select ... from ... where somedate = @fd"; cmd.CommandText = sql; cmd.Parameters.Add(new SqlParameter("@fd",System.Data.SqlDbType.DateTime)); cmd.Parameters["@fd"].Value = somedatetimevalue; cmd.Prepare(); cmd.ExecuteNonQuery(); ...more >>

ViewState.Add in a Class
Posted by Lil' Dub at 3/24/2004 11:02:21 AM
How can I add to ViewState from a Class. I've inherited Page (tried Control as well) and then call: ViewState.Add("ITEM", "VALUE"); but when I try Response.Write((String) ViewState["ITEM"]) I get nothing. Thanks. ...more >>

inserting records using Sql Adapter
Posted by Nikhil Patel at 3/24/2004 10:46:37 AM
Hi all, In my ASP.Net application, I use a SqlCommand object to execute a query and get a result of the query with the help of the Sql Adapter. The result is saved in a DataSet. The application Updates or inserts the records in the DataSet. Then when I need to save the date back into the data...more >>

Can I open an Outlook mail message with an attachment?
Posted by Jim at 3/24/2004 10:45:30 AM
Hi, I have an ASP.NET (C#) 2002 application. My client would like to be able to click a link on one of the pages and have their default email client (Outlook) open up a new message with a generated report attached to it. Apparently mailto: doesn't allow this (for good reason!), so does anybod...more >>

best way to set up permissions for specific page access
Posted by Paul at 3/24/2004 10:21:13 AM
Hi I am trying to setup an asp.net app and need to setup a log in permission setup For exampl link1-go to page1 allow all users link2-get password and user id, if on specific list display page 2, if not display message like do not have permission Anyhow just wondering if there is an example show...more >>

Guess who is in my Cube.
Posted by Chris at 3/24/2004 9:51:12 AM
FArrrrHANNNNN!!!! ...more >>

How can I fill array list with dataReader
Posted by simon at 3/24/2004 9:44:33 AM
How can I fill array list with dataReader? Explain: I would like to add list box to cache. I can't add list box itself, but I can add to cache its dataSource. I usually use dataReader as dataSource for listBox, but I can't add dataReader to cache. So I thought that first fill in the arr...more >>

session id in url
Posted by R.A. at 3/24/2004 9:06:29 AM
Hi If I use coockie less session id, is there a way to have the url not showing the session id? Thanks ...more >>

IO Stream URGENT HELP Please....
Posted by Chris at 3/24/2004 9:03:42 AM
Does anyone know how to send an IO stream to the browser? Preferably in a new window. Thanks in Advance. ...more >>

Dynamically added event handler ignored?
Posted by T. at 3/24/2004 8:50:11 AM
Hi group, I am adding an event hander dynamically to a check box inside of a repeater_itemdatabound method: Dim chk as CheckBox = CType(e.Item.FindControl("chkIsBilling"), CheckBox) If Not IsNothing(chk) Then AddHandler chk.CheckedChanged, AddressOf IsBillingAddressCheckBox_CheckChange...more >>

local links
Posted by James Brett at 3/24/2004 7:57:09 AM
Hi I have a page with about 5 drop down lists which the user selects from. On pressing submit the page then reloads with the results below the drop down lists. How do I get it so that when the page reloads the page scrolls down to the results? In old asp/html I would just use an "<a name=test"...more >>

Session Object and web.config
Posted by bobgarbados NO[at]SPAM hotmail.com at 3/24/2004 7:15:29 AM
I have an asp.net site that requires users to log in and I'm trying to use the session object to hold the userid that is entered. Can anyone provide or point me to an example of a full web.config file and working code? I'm using C# Here's where I'm trying to populate the session object: ...more >>

DataGrid does not recognize Select, Edit, etc buttons when EnableViewState = False
Posted by Jose Flores at 3/24/2004 6:56:08 AM
Hello i saw some performance recommendations and one of them i "Set datagrid's enableviewstate to false But i have a CRUD page and it not fires datagrid events like ItemCommand, SelectedIndexChanged, EditCommand Here is the definition of my datagrid. How can i do to work without viewstate <as...more >>

MSSQL login fails but Test Connection Succeeds
Posted by John Spiegel at 3/24/2004 6:46:13 AM
Hi all, I've been working through a simple example using the SQL Server Northwind database installed on my development machine. The example uses the Data Form Wizard and when I set up the connection there it tests fine. When I try to run the page it gives "Login failed for user 'ASPNET'". I...more >>

binding searchresultcollection to datarepeater
Posted by ctownhill NO[at]SPAM newsgroups.nospam at 3/24/2004 6:31:05 AM
Hi, Is it possible to bind a data repeater to a searchresultcollection, as returned from a directorysearcher Regards Chris...more >>

RequiredFieldValidator
Posted by Jay at 3/24/2004 5:56:06 AM
I have 2 buttons on a page and both have causevalidation=true. There are many requiredfieldvalidators on the page as well. The functionality I need is when a user clicks on one button it only looks at the requiredfieldvalidators for a few controls. And when the user clicks on the other button it ...more >>

Strong Naming Error - Convert from VB6 to VB.NET
Posted by rob at 3/24/2004 5:14:47 AM
Hello All, I have converted an ActiveX project in VB6 to VB.NET using VS03's standard conversion tool. When I try to add the generated dll to this applications existing Components (in Component Services) I get an error. The event viewer reveals that the assembly does not have a strong name. My...more >>

Debugging aspnet_wp.exe
Posted by Richard at 3/24/2004 5:11:07 AM
We have a IIS5 intranet server hosting a number of asp.net applications. We are suffering severe performance problems with the server, over a number of hours the CPU usage gradually climbs to the point where it almost permentantly at 100%. The memory usage of the aspnet_wp.exe process gradually ...more >>

Retrieving Session Variables
Posted by Neil at 3/24/2004 3:31:07 AM
Hi I have a page which contains a number of link buttons. I have registered a CommandEventHandler with the link button. In this event handler I want to set a session variable equal to the text of the button clicked, I then want to redirect the user to a new page within my application. This new pag...more >>

Uisng Datagrid
Posted by John at 3/24/2004 12:43:53 AM
Hi I have a legacy asp page with a list of records displayed as a table. I would like to convert this page to asp.net and use data grid instead. What do I need to do to achieve this from what I have to having the data displayed in a grid? Thanks Regards ...more >>

asp to asp.net
Posted by John at 3/24/2004 12:35:04 AM
Hi Is there a way to convert an asp site to asp.net? I am not looking to change any existing functionality for now and I don't mind if code behind remains in legacy vb/asp. I just want to do any future additions to the site in asp.net hence the need to convert the existing site. Thanks R...more >>


DevelopmentNow Blog