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 wednesday february 18

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

code design question
Posted by Karl Hungus at 2/18/2004 11:40:48 PM
How would you design your code if you wanted to have a menu that highlighted when it was in the proper section. for example on cnn.com when you click on say "weather", then when youre in the weather section the menu item is highlighted. My site uses XML to configure my menu. Im transformin...more >>

CheckBox in DataGrid
Posted by Machi at 2/18/2004 11:16:05 PM
Let say i select rows of records with 4 columns from Database and want to display the data in DataGrid (ASP.NEt Server Control) with one column which must be displayed in CheckBox layout. For the column (which contains checkbox), when i click the CheckBox in the Header of DataGrid, all the rows (for...more >>

Remoting Question
Posted by Guadala Harry at 2/18/2004 11:05:28 PM
Suppose I have one ASP.NET Web application that accesses a SQL Server on the local machine/server. This ASP.NET application has the data access logic already separated out into its own assembly. I want to leverage that same assembly and SQL Server data from a second ASP.NET Web application that i...more >>

overriding client-side onclick of Button
Posted by Sedef at 2/18/2004 10:56:07 PM
Hi, i'm trying to create a custom Button user control which will be derived from System.Web.UI.WebControls.Button. the normal server side Button class creates some client side javascript code for its onclick event. it's something like: <input type="submit" name="Button1" value="Button" onclick=...more >>

Database transactions.....
Posted by Jimmy Crider at 2/18/2004 10:42:56 PM
I am using ADO.NET in my ASP.Net application(VB language). Is it possible to implement transaction based SQL statements between two different databases. One is SQL Server and the other one is Oracle. Please advice. Thanks ...more >>

ASP.Net and Netscape Problem
Posted by samikdut at 2/18/2004 10:41:07 PM
Cannot view the output of ascx file in Netscape but can view all in IE and Opera. Please suggest ! Thanx in advance Samik....more >>

drop downlist box and the tool tip...........
Posted by Jimmy Crider at 2/18/2004 10:40:48 PM
Is it possible to change the tooltip at run time. I am looking for an option to display the description as tooltip when the item(code) changes in the combo box. Jimmy ...more >>

How to use ODBC with a DB connection in ASP.NET
Posted by HB at 2/18/2004 9:46:33 PM
Guys, How to use ODBC with a DB connection in ASP.NET? each time I try to add the ODBC name in the connection an error telling that it is not compatible (or so) to use ODBC. I have .NET 2002 with ver. 1 framework. Thanks HB ...more >>



Image to Fax
Posted by Jim Heavey at 2/18/2004 9:24:24 PM
Hello, I was looking for some sample code or an article that someone might be able to point me to as to how I might be able to go about translating a screen image to a graphic's image wich I could fax. I have an ASP.Net application which shows a form. This form contains check boxes which ...more >>

Help Iss stoped running > restart says address is allready in use?
Posted by Norman Fritag at 2/18/2004 9:14:59 PM
Hi there, Iis stopped running. When attempting to restart the server it prompts that the address is already in use. How can I find out which application is blocking / using the port 80?? regards Norman ...more >>

window.open(...)
Posted by David at 2/18/2004 8:11:06 PM
I have a main web form, "main.aspx" with one login-button. I'd like to open a 2nd form "frm_activity.aspx" in a separate browser window using a client-script upon clicking the login-button from main form Some Code from "main.aspx.vb".. Private Sub btn_Login_Click(... if Not IsClientScriptBlo...more >>

ADOConnection ?
Posted by tonyshimmer NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/18/2004 7:27:42 PM
Hi. i have a code as below. When i define ADOCommand as well as ADOConnection, they do not work but i have already defined <%@Import Namespace=System.Data.ADO%> <%@Import Namespace=System.Data%> Can anyone help me? Thank you Code: <%@Import Namespace=System.Data%> <%@Import Namespace=...more >>

server side storing
Posted by Cortvriend Andy at 2/18/2004 7:06:39 PM
Hi I want to store some information on the server side! I want to keep that information in a DataTable, is that possible? Anyone who can help me and tell me how to do it? Thx Andy ...more >>

query regarding web service
Posted by balaji at 2/18/2004 6:55:27 PM
hi , this is balaji working as software engineer.i have problem in creating a web service in .NET on Windows 2000 Advanced server.but it is working in 2000 Professional when i run the web service it gives the error : aspnet_wp.exe could not be started and HRESULT is 80004005. other error is : ...more >>

VNC using ASP.NEt
Posted by Mike at 2/18/2004 6:41:07 PM
Hello All I'm trying to find articles or source code that will help me on building web site that can VNC over HTTP with .NET. I'm looking for freeware dll file that i use in my asp.net application. Example: I want to remote control a computer over HTTP in a ASP.NET application. Can someone guide m...more >>

Tab navigation with a User Control?
Posted by Bruce W.1 at 2/18/2004 6:22:13 PM
How would one implement a nav bar, that looks like folder tabs across the top of the page, in a User Control? It's the tab visibility part I can't figure out, not the User Control part. Would you have two images for each tab, one for the selected tab and another if it's in the background (not...more >>

How to allow only certain file types for upload?
Posted by Showjumper at 2/18/2004 6:11:44 PM
I have an upload server control and i want to set it up in such a way that allowed file types (extensions) can be specified in a property in the property window. The different files types just separated by a comma for instance. Right allowed file types are hardcoded into the array list and if i ...more >>

Stopping .Net Resolving all references
Posted by Steve W at 2/18/2004 6:02:46 PM
I hope this makes sense ! We have an VB ASP.NET Web Application. In the bin directory are all our compiled dlls. We have written some integration with a 3rd party, which some of our clients use and some that don't. Those that don't won't have a particular dll in the bin directory of the ...more >>

Event order during a postback
Posted by Sheila Jones at 2/18/2004 5:28:01 PM
Hello, I have a couple of textbox controls which each fire TextChanged events. AutoPostBack is false for both controls, so the events only actually fire when another control causes a postback. However, the TextChanged events always seem to happen in the same order, regardless of which box was ...more >>

At my wits end
Posted by Muckey at 2/18/2004 5:06:05 PM
I need to make a winform component that embeds in an aspx page. This component will do some ftp work from our intranet site to our internet site. We need to use a component to avoid having to recreate the connection after every postback. I have embedded wincontrols in a page so i think i got that...more >>

upload word doc in asp.net
Posted by sandroremi NO[at]SPAM katamail.com at 2/18/2004 5:00:14 PM
As all my users are intranet-based and have the Office package installed. I have decided to stream a server-stored document into a web browser, so that the user can use Microsoft Word to modify the document. (I don't care if this opens it in the browser or in word itself out of the browser, as ...more >>

Transaction object question
Posted by REB at 2/18/2004 4:59:37 PM
If I create a transaction object for rolling back a insert query in the on click event of a form button can the transaction be tracked across other functions? For example: private void btnSaveDriver_Click(object sender, System.EventArgs e) { Create transaction object Execute a inser...more >>

Application State vs. "global" variables
Posted by BB at 2/18/2004 4:56:08 PM
Hello all, I might be missing something here, but am trying to understand the difference between using application-level variables--i.e. Application("MyVar")--and global variables--i.e. public myVar as string, etc. It seems to me that the scope and duration are the same, as they both are there w...more >>

Securing Huge Downloads using IIS, aspnet_isapi.dll, HttpHandler...
Posted by Earl Teigrob at 2/18/2004 4:50:53 PM
My company sells software and wants to provide downloadable product. Some of these downloads will be full CD's of over 550M I had everything working fine using Response.filewrite() but when we tested it with large files, it blew up. (crashed the server, well documented problem) I can downl...more >>

<browserCaps> and NULL UserAgent
Posted by Jason Collins at 2/18/2004 4:34:56 PM
There are some Requests that occur that have a NULL UserAgent. Some of these are legitimate crawlers (e.g., Overture's crawler), and I'm attempting to adjust my <browserCaps> to correctly classify crawlers. In an attempt to capture browsers with (UserAgent == null), I've added a case like th...more >>

ImageButton addhandler not firing !
Posted by Tee at 2/18/2004 4:18:54 PM
Hi, I have a server control Table with each row will contain a dynamic created ImageButton. And I have a private sub with the proper delegate of an ImageButton click which handle nothing. After each ImageButton is created, I addhandler the ImageButton to the private sub, which gave me no err...more >>

Clear Browser History List
Posted by David at 2/18/2004 4:16:05 PM
A user logs into a web site. He is then redirected to a web page of his choosing - based on menu options - for example: "WeeklyReport.aspx" is a page the user is currently viewing If the user session times out, I redirect the user to a "logoff.aspx" web page that now informs the user he must relo...more >>

right to files on mapped drives throught IIS and ASP.NET
Posted by chris at 2/18/2004 4:14:07 PM
Hello, On a local website but i want to access data on a remote drive (a mapped drive). The data are Foxpro files on a directeory of a mapped drive. I have a problem with security ( no tabel can be opened error 52 in foxpro ) I search the web for a solution. Server 1 = Windows 2000 (Web...more >>

Unicode and HtmlEncode
Posted by Anders Both at 2/18/2004 4:04:48 PM
Hello dotnet.aspnet group - I want to do encode e.g. japanise or arabic text into something like: &#1576;&#1577;&#1603;&#1608;&#1585;&#1583;&#1610; &#1593;&#1577;&#1604;&#1610; Before putting it in my HTML code (aspx page) . But when i try to use System.Web.HttpUtility.HtmlEncode("Some ...more >>

Changing Default Install Path...
Posted by Raphael Iloh at 2/18/2004 4:00:40 PM
Hi all, I have a Web Setup Project and would like to change the installation path from the default (i.e. C:\Inetpub\wwwroot\) to some more particular path (e.g. c:\myfolder\). Any ideas on this will be appreciated. Regards, Raphael ...more >>

Using System.Diagnostics.Process() to print traceroute information on webpage
Posted by dundb NO[at]SPAM gmx.de at 2/18/2004 3:44:14 PM
Dear group, I created an aspx page using System.Diagnostics.Process() to launch "tracert" from shell and redirect output to Response.Output which prints it as text/plain into my browsers window. Now that works fine so far. My problem is that while tracert process is running and ASP ..NET is p...more >>

Global.asax does not always run in dev mode?
Posted by BB at 2/18/2004 3:31:11 PM
Hello all I'm making changes in Application_Start in Global.asax. Sometimes the code executes, but sometimes it doesn't. I'm wondering if the .NET Development environment sometimes caches the application, so that even when I quit the app in debug mode it hangs onto it and doesn't fire the applic...more >>

Error crystal websetup 9 install
Posted by p at 2/18/2004 3:21:36 PM
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Web...more >>

(re)format output (data type) from SQLServer to DataGrid
Posted by D. Shane Fowlkes at 2/18/2004 3:05:25 PM
I have a couple of fields in SQL Server which are defined as "Money". One is "Quantity" and the other is "Unit Price". Unit Price I can understand being defined as "money" but I'm not sure why the DBA defined QTY as money. Changing the datatype to Integer in the database isn't an option here so I...more >>

Converting arraylist to string array
Posted by Andrew Banks at 2/18/2004 2:23:40 PM
Can anyone see aproblem with this line of code string rolelistarray = rolelist.ToArray(GetType(System.String)); I'm getting a problem with the GetType(System.String) section ...more >>

Search Window
Posted by Jerry Camel at 2/18/2004 2:21:19 PM
I've got a web form that requires a list of user names. I'd like to have a search form that allows a person to lookup a network user name by specifying a first or last name. I can dot he code for the AD lookup, but how can I pop-up a search window from the web form and have the results sent bac...more >>

Sending command with DateTime
Posted by Steffen Loringer at 2/18/2004 2:07:20 PM
Hi, I'm using SQLCmd = New SqlClient.SqlCommand and then SQLCommand.CommandType = CommandType.Text My problem is as follows: I like to update a table in SQL Server with a column of the type DateTime. so I used "UPDATE MyTable SET TheTime=" & ActualTime.ToString. But it's not working. Wh...more >>

How to Persist HtmlInputFile Value through postback?
Posted by Dave Adler at 2/18/2004 2:01:15 PM
Is there any way to retain the value of an HtmlInputFile control through a postback? I do some server side validation on the page when it is submitted and if an error occurs on the page the HtmlInputFile control value is blank after the postback. The EnableViewState for the control is set to t...more >>

Roles in Authentication.
Posted by Andrew Banks at 2/18/2004 1:46:21 PM
I've added the following to my global.asax file and am having problems with the line highlighted by the ######'s Can anyone offer any suggestions on this please? I've been working from a poor VB example and have converted to C# the best I can. Any help would be appreciated. Thanks prot...more >>

Postback after a Response.Writefile()
Posted by Carter at 2/18/2004 12:56:08 PM
i have a treeview on a webform (.aspx). when the user selects an appropriate node on the tvw. and clicks on a link button, i'm downloading a corresponding file to the client (from the server). so far so good. all of that works. after the download, i want to refresh the treeview and redisplay the cu...more >>

form validation error??
Posted by msn at 2/18/2004 12:37:24 PM
Unable to find script library '/aspnet_client/system_web/1_1_4322/WebUIValidation.js Any ideas? ...more >>

ASP.NET User Permissions
Posted by Chris at 2/18/2004 12:34:10 PM
Is the following assumption correct? -ASP.NET user does not see the local drives I have mapped If so how can I get it to notice the mapped drives? Do I need to change the user in the machine.config? Thanks Chris ...more >>

tooltips in datagrid?
Posted by Steve Chatham at 2/18/2004 12:26:08 PM
Is it possible to have tooltips for each of the sortable columns in a datagrid, or are you stuck with having only the 1 tooltip for the entire datagrid? SC ...more >>

<customErrors .... not working??
Posted by reza at 2/18/2004 12:26:07 PM
Hi, I am trying to use a customErrors configured in web.config: Have tried mode being 'On' or 'Remote' and have a page specified as defaultRedirect. However, everytime I tried to run it from debug, I get this messege: ..... Sever side-error occured on sending debug HTTP request. Thanks in adva...more >>

System.Web.HttpException: The viewstate is invalid for this page and might be corrupted
Posted by Nicolas LeBlanc at 2/18/2004 11:54:05 AM
I've seen several message on newsgroup, but none helped me fixed this damned problem. I am not on a load balancing, and the copy in the server is there for ages, and yet I receive 10 to 20 times a day an email with the same error happening in various places of my website.. ------------- Sy...more >>

The best datagrid tool for asp.net?
Posted by Simon Harvey at 2/18/2004 11:51:56 AM
Hi everyone, I need to buy a datagrid component for my company and I was hoping that some people could tell me the current market leader. Thanks for any suggestions Simon ...more >>

Principal and Identity
Posted by Jon at 2/18/2004 11:41:09 AM
Hello all, just a quick question to clarify. What's the difference between SitePrincipal and SiteIdentity? Thanks, J...more >>

Generate e-mail from a datagrid?
Posted by REB at 2/18/2004 11:25:03 AM
I have a web form with a datagrid on it that contains 3 columns: Edit, Note Date, Note I would like to add a 4th button that will be used to send the contents of the selected row to a e-mail. The app does not need to send a e-mail, it just need to open the clients default e-mail program and ...more >>

Make HtmlTextArea Readonly on the fly
Posted by Michael SL at 2/18/2004 11:06:08 AM
I have a text area in which I have a client side javascript to process a "onclick". Because it is client side, I used a HtmlTextArea <TextArea id="Summary" onmouseup="SumMouseUp()" style="WIDTH: 90%" name="Summary" rows="25" runat="server" / Depending on the circumstance the user can sometimes ...more >>

"<>"
Posted by reddy at 2/18/2004 10:36:12 AM
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. ...more >>

Good tutorial in vb ?
Posted by Lord Brett Sinclair at 2/18/2004 10:08:41 AM
Hello everybody sorry to bother you with such question but I'm looking for a good/clean/simple/small tutorial in VB to download that will regroup the following : 1- have a login form with user and password textboxes and a login button. Will store the user, pwd into some variables (cookies?) i...more >>

Question about redirecting a user after authentication
Posted by Simon Harvey at 2/18/2004 10:02:38 AM
Hi, This is a very typical requirement so I'm sure the answer is very straightforward. If a user tries to get to a secure directory, they can be a sent to a login page automatically. Once the user has been authenticated, a call to, FormsAuthentication.RedirectFromLoginPage() will send the ...more >>

Dynamic loaded page ??
Posted by ªL©ú©v at 2/18/2004 9:57:20 AM
Dear all : When designing a new Web project, we need get/post to exchange information between pages. But as we can see, each in VS.NET is followed by a corresponding class. Can I add some fields and attributes into the class, and then using keyword "new" to new a instance, and then show ...more >>

Variable type question
Posted by Andrea Williams at 2/18/2004 9:52:24 AM
Is there a way to change the datatype of a return variable inside a function? Example: public static ?XXX? RequestVar(string strValue) { return Request.Form[strValue)]; } The value may be a string, int, long or could even be a boolean. Thanks, Andrea ...more >>

Form-level onSubmit handler
Posted by Snowbank Jim at 2/18/2004 9:46:05 AM
When I invoke RegisterOnSubmitStatement, my script is inserted prior to the page validation invocation inserted by DotNet. In this case, my script needs to run only if all client-side validation is successful. It blocks multiple submits, and alters the submit button to give the user some visual feed...more >>

ASP.NET architecture question
Posted by Jim at 2/18/2004 9:45:44 AM
Hi, I'm about to begin the process of defining the architecture of an tradeshow-type website which will use ASP.NET 2003 (C#) & SQL 2K, and will run on Server 2003. I've got about 20 regular users of the system, plus potentially hundreds of occasional visitors, all of whom log into the system...more >>

Date Format - best way of converting a string into a date format
Posted by Brian Candy at 2/18/2004 9:36:20 AM
I am guessing that this must be a common question, but I just can't find a simple solution for it by searching the newsgroups. I have a Text Box with a date in a UK format. The format has been verified and is legal. Now all I want to do is pop it into an SQL field. Debugging on my local machine ...more >>

How to read from web.config?
Posted by RA at 2/18/2004 8:53:42 AM
Hi I want to read information from the web.config in my asp.net (c#), how can I do it? I want to read from there the sql connection string. Thanks ...more >>

How to stop vs auto html format?
Posted by RA at 2/18/2004 8:52:29 AM
Hi I change the code in the html vs editor and from time to time vs adds spaces and I have to go back and fix it. How can I stop it from doing so? Thanks ...more >>

Microsoft .NET Project
Posted by Rich Lee at 2/18/2004 8:50:25 AM
Hi, I have an existing project using Microsoft.NET. I need helpes. Most programs are 80% finished, just need someone to complete the code. For those who is interested in such project, please contact me. Please no head hunters! You must be able to read Chinese!! ...more >>

Use Windows Forms in Web App
Posted by grzybek at 2/18/2004 8:34:03 AM
Hi, How can I use windows forms i my Web Application ? And how can I create ActiveX control in C# ? I need Open File dialog and Save FIle Dialog and Web Application? Thanks, grzybek ...more >>

Menu style toolbar using WebControls
Posted by bob NO[at]SPAM bobhoward.org at 2/18/2004 7:48:42 AM
I am trying to figure out how to get the toolbar control to act like a Win32 Toolbar and have searched high and low for an example. For example, if I had a toolbar with "File Edit etc." and the user clicks "File", then another menu would drop down with more choices to select from. Does a...more >>

ListBox AutoPostBack Error
Posted by skchbs NO[at]SPAM yahoo.com at 2/18/2004 7:22:19 AM
Hi All, I have a Listbox which gets populated from the database.On selecting an item in the list, i would like to populate some other fields......it was working fine until i added autopostback="true"...now it gives me an error saying"Object does not support this method or property( IE Script er...more >>

live data??? possible in .net???
Posted by jhill at 2/18/2004 7:01:08 AM
is it possible to display 'live' data in .net via a web page? by live data i mean data that is changing dynamically, say once a second i am guessing i need to use java to go this route because MS has no support for it. however, if it is possible to do with .net, i'd be very interested my thoug...more >>

COM Interoperability - Object type to Dataset
Posted by Prasad at 2/18/2004 6:51:08 AM
Hi I have a legacy DLL, that has functions which accept and return type "Variant" I want to use that DLL in .NET. I am able to use functions well that return variants but that return common data types like string, int etc There is one function that has a return type variant, but actually return...more >>

webcomponent for html hidden input?
Posted by wtumaxi NO[at]SPAM forum.dk at 2/18/2004 6:37:39 AM
I want to do something like this: <input type="hidden" name="x" value="<%=Request.Form.Get("y")%>"> ...but visual studio wont open design mode with such inlined code in the apsx page. How do i programmebly set the value of a hidden form field in asp.net? I cant find any webcomponent in VS ...more >>

Displaying a flowchart on the fly in a web page
Posted by jaswantsinghrana NO[at]SPAM hotmail.com at 2/18/2004 5:14:45 AM
HI all, Is it possible to generate a flowchart on the fly in a web page? The chart will be based on the coordinates stored in a table or xml file. Jaswant Singh Rana...more >>

moving asp.net projects/solutions from 1 dev. PC to another PC--How To?
Posted by jqpdev at 2/18/2004 4:35:41 AM

asp.net windows services
Posted by jzink at 2/18/2004 4:06:08 AM
I need to create a asp.net page that will have the ability to start and stop and windows service that we have created. Is there an api or something that I can use to interact with windows services ?...more >>

DataGrid
Posted by Marek G. at 2/18/2004 1:56:07 AM
Hi all, sorry for my bad englisch.I have two questtion about datagrid.I have etc.product names in the database . I want create datagrid with row with bold text 1-2 . After this row list product beginning serial 1-2 ...... And repeat 2-3 ... How ? And second questation . Can I change one row border ...more >>

String to equation
Posted by Marty Underwood at 2/18/2004 1:27:35 AM
Got a quick question that I cannot get to work at work! I have a field in SQL server that is set as a varchar but contains data like >50 or <2 which is actually a target percentage. I have data in another table stored as Decimal(14,2) that is the actual percentage. I need to extract the two an...more >>

Dynamic ASP.NET controls??
Posted by ªL©ú©v at 2/18/2004 1:04:23 AM
Dear all: Can I use the following code to generate controls dynamically? But put it in a form having attribute "runat=server"?? If I use the code below, it will cause some error because of myBtn doesn't have "runat=server". System.Web.UI.WebControls.Button myBtn = new Button(); ...more >>

Help needed with MouseOver and MouseOut on table cell. Thank you!!!
Posted by Daniel Walzenbach at 2/18/2004 12:12:50 AM
Hi, I've seen some really nice MouseOver effect on msdn. They have a table with hyperlinks and the cells get a different color on MouseOver and MouseOut. Additionally the color of a clicked cell stays differently even when you hover over with the mouse. For a life demonstration of this ...more >>


DevelopmentNow Blog