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 2006 > threads for thursday february 23

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

DropDown Type ahead
Posted by Peter at 2/23/2006 11:46:08 PM
Does anyone know of DropDown box that has a type ahead feature like the WinForms version and it does not cost more than $100.00 ? Thank You. Peter ...more >>


Visual Studio 2005 and Visual Basic .net 2003
Posted by Stewart at 2/23/2006 11:06:13 PM
Hi All, I have not yet seen Visual Studio 2005 and I could not collect much information on this. I just want to know whether Visual Stdio 2005 is enhanced Visual Studio ..net 2003 or is it Enhanced Visual Studio with Visual Basic 6.0. Is it ..net or the traditional Visual Basic 6.0 + with a...more >>

simple doubt
Posted by nizam at 2/23/2006 10:08:27 PM
hi, i have an excel file. i want to convert that excel file into csv(comma separated values) file format. can u give me some idea. Thanks in advance , nizam. ...more >>

Web Services project
Posted by Frank Rizzo at 2/23/2006 9:50:34 PM
Is there a way to create a web service project that has a proper project file (e.g. csproj), instead of having it be file based where whatever happens to be in the directory magically becomes part of the project? Thanks...more >>

ASP.NET applications not working??
Posted by Naveen at 2/23/2006 9:40:14 PM
Hi, I'm new to deploying ASP.NET applications. So got a few sample apps like DotNetNuke and others and tried to run them on the webhost account i have. But every time it gives the same error -- Runtime Error Description: An application error occurred on the server. The current custom error s...more >>

How to read a text file into a string variable
Posted by ad at 2/23/2006 8:27:48 PM
I have a text file in the directory of my web application. How can I read this text file into a string vaiable? ...more >>

Hosting an ASP .NET 2.0 web site with database
Posted by BobLaughland at 2/23/2006 8:21:23 PM
Hi There, I have an ASP .NET 2.0 web site with a MSSQL express 2005 database. What is the normal procedure to host that web site and database at a hosting site? I am hosting it at dotnetmart, but cannot quite figure out what setup procedure is needed. Also how in my C# code do I get a ...more >>

ASP1.1 Trying to use Resources!
Posted by Evan Camilleri at 2/23/2006 7:35:14 PM
I created an web application which is trying to open a resource called PPReports.resx in project called PPReports with same name for namespace. I used Dim rm As ResourceManager = New ResourceManager("PPReports", Reflection.Assembly.GetExecutingAssembly()) Dim stHTML As String = rm.GetStr...more >>



Can't install MSDN Library on VS 2003?!?!?
Posted by Rico at 2/23/2006 7:12:08 PM
I'm hoping this isn't another one of Microsofts ever depleating free help things, but I had to re-install Visual Studio 2003 Enterprise on a clean installation of Windows XP Pro. When I hit the F1 Key, (no matter what I use it on) I get "No links are available for the current selection". So ...more >>

datagrid\checkbox
Posted by gh at 2/23/2006 6:32:34 PM
I am filling a datagrid at runtime with the values I want in the columns. In some of the rows I would like to have a checkbox in the last column for the user to check. Then when the user clicks the submit button, I would like to be able to tell which check boxes were checked. I can get ...more >>

Webapp Architecture Problem
Posted by arthernan NO[at]SPAM hotmail.com at 2/23/2006 5:58:13 PM
A client of mine wants me to build a custom web application. For security reasons he does not want to install a database client/api on his DMZ zone. He wants to have an application running in their LAN that has a custom API available to the Webserver. Have the Webserver in the DMZ Zone and then ...more >>

closing Excel when using COM Interop
Posted by Vikram at 2/23/2006 5:53:33 PM
excel object not getting killed even after calling System.Runtime.InteropServices.Marshal.ReleaseComObjec. Is there any workaround ...more >>

Menu background colors not set when CSS used.
Posted by Dick at 2/23/2006 5:47:26 PM
My simple example is shown below. Please can you explain why the BackColor of the menu's StaticSelectedStyle and StaticHoverStyle are not applied whilst the background-color of the tr and td's are applied via the style. Thanks. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default....more >>

VWD gives bogus validation errors unless MasterPageFile is specified in the @Page directive
Posted by Alan Silver at 2/23/2006 5:08:05 PM
Hello, I have a site that uses master pages. To enable simple switching of the master page, and to avoid potential inconsistencies between pages, I set the master page file in the web.config file. This works fine, but causes VWD to give loads of bogus validation errors ("element HTML occurs...more >>

All request are sent to my application, even for .gif ???
Posted by WT at 2/23/2006 3:49:21 PM
I don't understand, since I migrated my web site to VS2005+ APS.NET 2 (C#), all the request reach my Application_BeginRequest method in Global.ascx.cs and generate unecessary computing. I think that I have missed some new parameter in web.config or somewehre else. Anybody having idea wel...more >>

Help me clean up my DB connection (trying to use parameterized query)
Posted by darrel at 2/23/2006 3:30:44 PM
I'm tring to modify an existing DB connection/query into a parameterized one. But, in doing so, I get an error stating that I am not defining the variable I am using in the query. This is what I have: ================================================================= Dim DS As New DataSe...more >>

What's the point of precompiling a web site?
Posted by Alan Silver at 2/23/2006 3:28:48 PM
Hello, I was just looking at aspnet_compiler.exe and thinking how useful it was to have your web site compiled, then I thought that maybe it isn't!! What's the advantage? I would never upload a site, nor even upload a new version of one file, without immediately testing it a browser. Thus,...more >>

Can't Update SQL Database Via GridView
Posted by A_StClaire_ NO[at]SPAM hotmail.com at 2/23/2006 3:24:23 PM
hi all, I am using a GridView bound to an ObjectDataSource. edit and delete functionality has been enabled. my ObjectDataSource is tied to a TableAdapter that accesses three stored procedures - SPGetAllPrograms (Select), SPDeleteProgram (Delete) and SPRetireProgram (Update). deleting data...more >>

CLASS MASTER CHILD PAGE
Posted by G. Whiz at 2/23/2006 3:07:23 PM
Hiya I have a child page which sets info into a class based on what pizza the guys clicks on. I need the name of the pizza to appear in the master section. Do I have to instantiate class in the master and the child? thanks ...more >>

Datagrid
Posted by forlist2001 NO[at]SPAM yahoo.com at 2/23/2006 3:07:00 PM
How do i find the type of control is datagrid? I have grid inside a grid. If I do typeof it does not work for datagrid. One more thing how do I read data back from grid? I can read the orignal value from textbox but not the new value. Help! ...more >>

Server.Transfer
Posted by Mark Sandfox at 2/23/2006 3:02:23 PM
When i use Server.Transfer to transfer a URL (IWillBeHeard.com) to a directory within the Home Website (Different URL) it still references links and images to IWillBeHeard.com/images/graphic.jpg instead of images/grapic.jpg. The code i am using to transfer is below. I must be missing somet...more >>

Runs on development machine, not on server?
Posted by Joe Befumo at 2/23/2006 2:59:23 PM
I'm trying to deploy a asp.net app that I developed in Visual Studio 2003 on an XP Professional machine. It runs fine on the development machine, but when I try to run it locally on the server (i.e., http://myserver/myappdir.) I get an error like this: Access to the path "C:\WINDOWS\Mic...more >>

Datreader GetSqlString /NULL
Posted by G. Whiz at 2/23/2006 2:07:00 PM
How am I to handle methods like GetSqlString when the data values are NULL. Am I supposed to test every time? ...more >>

security execption
Posted by CsharpGuy at 2/23/2006 1:56:29 PM
I have an asp.net (C#) web form that needs to run an exe off of a network drive and when i load the page i'm getting the following error message: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please cont...more >>

filtering
Posted by VJ at 2/23/2006 1:45:07 PM
the problem i'm having is that i can't get the Sql statement set to search for Department or Last_Name%.. :( <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:dbPMAEventsConnectionString %>" SelectCommand="SELECT [Last_Name], [...more >>

Application Variable disappears. v2.0
Posted by Frank_00001 at 2/23/2006 1:39:26 PM
I've migrated an application from VS 2003 to VS 2005. It worked fine in 2003; but I've been having issue in 2005. The latest is dealing with a DataSet that I have as an Application Variable. It seems to disappear when the users session times out. What really weird is that it works fine on ...more >>

filtering data
Posted by vncntj NO[at]SPAM hotmail.com at 2/23/2006 1:35:13 PM
the problem i'm having is that i can't get the Sql statement set to search for Department or Last_Name%.. :( <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:dbPMAEventsConnectionString %>" SelectCommand="SELECT [Last_Name], [...more >>

CrystalDecisions.CrystalReports.Engine.LogOnException: Logon faile
Posted by MMitchell at 2/23/2006 1:17:27 PM
i am having problems running a sub report in crystal reports using visual studio 2003. The first report fires one stored procedure in sql server 2005 and it has 2 levels of groupings then it runs a sub report using the group data. I have tried the: Report.SetDatabaseLogon(rptLogin, rptP...more >>

Cannot migrate Anonymous to registered user
Posted by Vincent Ye at 2/23/2006 12:57:07 PM
Hi All, I have an application which is using memship and profile functions. It works well in my develop machine which is using SQL Express Edition Server as the provider. When I move this application to the hosting server. It works well when the user is anonymous. But after user logins,...more >>

CustomError page not working?
Posted by dm1608 at 2/23/2006 12:26:21 PM
I have an ASP.NET 2.0 application that is giving me exception errors when particular queries are run. Running webpage locally, I can see the stack trace of the error. Running remotely, I get the frierndly page telling me that there is an error and I have to change the "mode" in order to view...more >>

W3C xhtml 1.0 transitional problem
Posted by Spartaco at 2/23/2006 12:18:05 PM
I think that the use of the treeview control built on asp.net 2.0 makes the page non xhtml 1.0 transitional compliant, in fact this control renders this html: <script> <!-- function TreeView_PopulateNodeDoCallBack(context,param) { WebForm_DoCallback(context.data.treeViewID,para...more >>

XML Webservice Binary File load
Posted by jdhavo NO[at]SPAM yahoo.com at 2/23/2006 11:41:10 AM
I'm trying to download an image file using XML from a web service. When the dialog box appears asking if I want to save the document or open it, If I click save and then open it, it works fine. If I click open, I get an error that the header is not recognized. Node 3 contains the binary docume...more >>

css and skins in 2.0
Posted by jhcorey NO[at]SPAM yahoo.com at 2/23/2006 10:57:45 AM
I made a change to my Styles.css file on my machine, but when I copy this to a server, I don't see the effect of the changes that I made. I'm using skins that associate different kinds of controls with different style classes using cssClass. Is this association kept in a binary? I haven't c...more >>

Big usability problem with validators
Posted by Alan Silver at 2/23/2006 10:49:57 AM
Hello, If you add (say) two text boxes to a form, then add a validator with some simple rule for one of them, you can observer the following problem:- Type some erroneous value in the text box with the validator, then click on the other text box. This makes the validator's red error mess...more >>

Default AES Salt in ASPNET2 Site
Posted by Mark Olbert at 2/23/2006 10:49:07 AM
I've written a simple membership/role provider library which I use in my websites. It works fine, and uses custom AES and SHA1 keys in Web.config to encrypt or hash password information. I now have a second, Windows Forms app that needs to access that same credential file, and hash/encrypt user-...more >>

Hold key to keep the message box before redirecting to a new page (ASP.NET program)
Posted by bienwell at 2/23/2006 10:45:51 AM
Hi all, I have a problem in ASP.NET program (Web pdevelopment). In VB Sub function, I want to dipslay a message box. The next line of my code is to response.redirect to the next page. My problem is the program skipped to display the message box, but only redirected to the new page. I'd l...more >>

FormView not updating
Posted by MasterChief at 2/23/2006 10:36:12 AM
I have a FormView that won't update at all. I have looked at thing such as datakeys and making sure the update command is correct but I can't find the problem. Here is my code. Could the item_id (the primary key) being evaluated instead of binded have do with it? <asp:FormView ID="FormView1...more >>

Naming Convention for ASP.NET BAL/DAL?
Posted by dm1608 at 2/23/2006 10:05:17 AM
I'm relatively new to ASP.NET 2.0 and am struggling with trying to find the best naming convention for the BAL and DAL objects within my database. Does anyone have any recommendations or best practices for naming my objects? I currently have all my type classses simply called "JobSummaryClas...more >>

ASP.NET 2.0 on Windows 2000
Posted by Jay at 2/23/2006 10:03:22 AM
I have a simple asp.net 2.0 website that runs fine on Windows XP and Windows 2003 / IIS 6.0, but I cannot get it to run on Windows 2000 / IIS 5.0. I get the general error shown below. My web.config file contains the following in between the system.web tags which does not ever trigger showing ...more >>

ReportViewer
Posted by Phil Barber at 2/23/2006 9:50:14 AM
Does anybody know why the Print button on the report viewer toolbar (VS2005) only shows for remote reports and not Local? Is there a way to get a print function(button) on the toolbar for local reports? if not what is required to get the remote reports setup and working? thanks Phil B ...more >>

Best Shared Hosting?
Posted by Greg at 2/23/2006 9:35:41 AM
I'm looking for suggestions of where you feel the best Windows shared = hosting is. Basic requirements: * ASP.NET * MS SQL Server * User control over setting applications, etc. * Multiple domains to various folders at no additional cost....more >>

How to get a string from a thread onto a page?
Posted by charles at 2/23/2006 9:07:55 AM
Hi: I created a thread in Page_Load and get a string through a socket from another process. Then I show this string in a textbox on the page. When Page_Load exits, the string does not display on the textbox. If I add a Response.Flush() statement, I get an exception of type: {System.Web.Http...more >>

UrlEncode French characters - wrong encoding
Posted by John C. at 2/23/2006 9:03:29 AM
Hi, I've tried using System.Web.HttpUtility.UrlEncode("=E9") with each of the possible encodings ASCII, Unicode, UTF7, UTF8 but none of these gives what I want: %e9. And so on for the other French characters. Am I missing something here? ...more >>

Get .NET user ID from SQL Server trigger
Posted by d0wsdkn02 NO[at]SPAM sneakemail.com at 2/23/2006 8:26:38 AM
I have an ASP.NET application that performs ADO.NET commands that cause triggers to be run in SQL Server 2000. My question is how would I best access the user ID from my custom .NET Principal in the trigger (the trigger stores audit information and needs the user ID)? I'm using the same SQL...more >>

asp.net equivalent of <% response.write("") %>
Posted by samuelberthelot NO[at]SPAM googlemail.com at 2/23/2006 8:06:46 AM
Hi, I have the following in my asp page: <% response.write(Header) %> where Header contains HTML markup such ass <html> <body> .... I must write the code in the aspx file and not in the code behind so that the markup are generated at correct places in html stream. I've tried : <scri...more >>

Select .Net Version
Posted by Niclas at 2/23/2006 7:52:11 AM
Hi, I have a website that is configured for .net v2.0 and a web application that only runs on 1.1 that I want to host on this site. Is it possible to specify in web.config or Assemblyinfo or similar what version to use for this application, or am I bound to the version the IIS site is runni...more >>

Loging in using SSL, BUT..
Posted by the friendly display name at 2/23/2006 7:51:30 AM
OK, following scenario: I have on an unsecured site the boxes where the user can enter User ID and passwort, now, after he clicks on login, the data should be send over HTTPS. Remember: The page itself is on port 80, only when the user clicks on "Login", the entered data should go through h...more >>

Positioning with 2.0
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 2/23/2006 7:41:28 AM
I just installed VS 2005. Was working with 2003 and .Net 1.1. Trying = to get the feel for a master page and I'm having some issues. I'm = looking for a pretty basic setup. Standard header with an image, forced = to lower right of screen, in the content area. I had this working just = fine ...more >>

ODBC microsoft access driver
Posted by somersbar NO[at]SPAM yahoo.com at 2/23/2006 7:18:14 AM
hello all, im trying to connect to a microsoft access database from an ASP.NET web form. i keep getting the following error though: ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)'; file already in use. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver'...more >>

Server.mappath
Posted by benoit at 2/23/2006 6:31:39 AM
Hi, if I write this code to retrieve a folder on the server Server.mappath("/DATA") I get this error message System.InvalidOperationException: Failed to map the path '/DATA' the virtual folder for my webApp is not situated in Inetpub, nor is the DATA folder that I would like to retrieve...more >>

Connection between two separate ASP.Net Application
Posted by Attila Forczek at 2/23/2006 5:25:09 AM
Hi, Please help me to connect two ASP.Net applications. One is an online store, based on Commerce Server 2002, the other is a database editing application. Both are ASP.Net 1.1, VB applications. In detail: Technolgies: SQL2000, VS2003, .Net Framework 1.1, ASP.Net, VB, Commerce Server 20...more >>

Go back to previous page (asp.net 2.0)
Posted by misiek at 2/23/2006 4:50:05 AM
Hi all. I have following scenario: 1. I have a page called Page1.aspx, on which there is some GridView and few texboxes. User can enter some search criteria in textboxes, click Find button and then search results are presented in the GridView. 2. User can select some row and click Edit button...more >>

need immediate help
Posted by tushardave at 2/23/2006 3:24:18 AM
i am using oracle 10g with asp.net some time ago it is working fine with all the application but now .net not make connection with oracle and give me these error "REGDB_E_CLASSNOTREG(0x80040154). " no chage made in my system or in application if any one have answer then sent me ...more >>

naviagte url in Gridview
Posted by NH at 2/23/2006 2:01:36 AM
I am trying to open a new window from a hyperlink control in a gridview (vb.net). I have this.. <asp:TemplateField HeaderText="Project" SortExpression="Project"> <ItemTemplate> <asp:HyperLink ID="HyperLink1" Text='<%# Bind("Project") %>' runat="server" ...more >>

Where's this "server" object?!
Posted by dhnriverside at 2/23/2006 1:39:26 AM
Hi peeps I'm just following this HOW-TO from MSDN.. http://support.microsoft.com/default.aspx?scid=kb;en-us;306355 But I've got a problem. I've adding the #using System.Diagnostics; line to my cs file, but when I try and type the following line... Exception objErr = Server.GetLastError(...more >>

dynamically creating buttons with event handlers
Posted by Michael Dawson at 2/23/2006 12:55:31 AM
I am creating a list of items which need to be clickable on a web page, but I am unfamiliar with ASP event handling. I created the following test control: public class MyCustomControl : System.Web.UI.WebControls.WebControl { //--- public MyCustomControl() { // Ini...more >>

Newbie : Gridview question
Posted by John at 2/23/2006 12:47:26 AM
Hi all, I have a gridview on my page and templatecolumns defined in it. I also have a couple of databound columns. The datatable being bound to the gridview contains a column (defined as a datacolumn so as to get the value) and in the ItemDataBound I can access this value but only when the ...more >>

How to put a HTML paragraph on a WebForm
Posted by ad at 2/23/2006 12:00:00 AM
I want to put a HTML paragraph on a WebForm in program. There are HTML tags in the paragraph, I hope the paragraph can render as normal HTML page. Which control can I use to place the HTML paragraph? ...more >>

Using health monitoring or code to recycle the application?
Posted by Glyn Simpson, MVP at 2/23/2006 12:00:00 AM
Hi I've got an ASP.NET 2.0 application, and I would like to catch the scenario of when I get a certain number of application errors, I want to restart the application (similar to 'touching' web.config). However, I don't have access to IIS, nor can I FTP in a new web.config file to force ...more >>

Help- LoadControl and Ctype error
Posted by Justin Dutoit at 2/23/2006 12:00:00 AM
Hey. I'm trying to dynamically add User Controls to my page. It appears to work sometimes, but more often I get the error: Unable to cast object of type 'ASP.SearchControl' to type 'ASP.SearchControl'. Dim ctlNextSearch As Control = LoadControl("SearchCB.ascx") CType(ctlNextSearch, Se...more >>

Learning ASP.NET (knowing HTML)
Posted by Morten Snedker at 2/23/2006 12:00:00 AM
After getting to know VB.NET, I'm now about to learn ASP.NET, since customer requests points in this direction. Naturally, I wish to start up in a proper way. As mentioned I'm familiar with VB.NET. But I know very little about creating homepages. What I wan't to know is, if getting to know H...more >>


DevelopmentNow Blog