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 > april 2005 > threads for wednesday april 27

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 hide the detail data?
Posted by dollar at 4/27/2005 11:39:24 PM
I want to show the master and detail data on a web form (one page) , I don't want to use pop up windows to do that , I want to show the detail data on the same web form when the user click the corresponding show detail button . since I have one master form and four sub forms (detail data) ne...more >>

Global.asax. Need Help. Thank You.
Posted by Shapper at 4/27/2005 11:08:07 PM
Hello, I want to check a cookie value, when the cookie exists, every time a visitor enters my web site for the first time or once again. I know this shouldn't be done in Page_Load... I believe I should use global.asax. Can someone tell me how? I know the cookie code. I just don't know ...more >>

Credit Card Gateways - Your preference?
Posted by VB Programmer at 4/27/2005 11:01:27 PM
I'm getting into developing ASP.NET ecommerce sites. Which credit card payment gateway do you use/prefer? I would like it to work easily with asp.net. Is www.authorize.net good? How about www.monstermerchanteaccount.com? Etc... Thanks! ...more >>

custom control onblur postback
Posted by neil S via DotNetMonster.com at 4/27/2005 10:58:41 PM
I have a custom control with a textbox and dropdown list. The dropdown list is hidden and acts as a data source for the textbox. When the user enters text in the textbox, an onKeyup event is fired and retrieves the first value from the dropdown list equal to that entered, and fills the text bo...more >>

Maintain Session State Across Domains
Posted by Robert Burdick [eMVP] at 4/27/2005 10:50:04 PM
Hello All: I am writing an ASP.NET application that will take the user to PayPal to make some payments. Before going to PayPal, I collect relevant user information and store it in a session state slot. I'm using InProc session state. After the user goes through the paypal site, the sessi...more >>

string.lenght vs string.empty
Posted by AVL at 4/27/2005 10:46:02 PM
Hi, I read that to check for empty strings , comparing strings using String.Length == 0 is faster than String.Empty or "" . Is it true...? If so, how?...more >>

how to give just enough space between two <asp:button> that are in 2 rows of a cell?
Posted by Dee at 4/27/2005 10:05:11 PM
Hi I have to <asp:button>'s one on top of the other in a cell of a Table layout. When I put a <br> I get too big a gap. Without it they are touching. The only way I can think of separating them is if I make another table inside that cell and have a cellspacing that's suitable. But that sounds ...more >>

Error: System.ArgumentException: Cannot convert to System.Int32.
Posted by Simon Harris at 4/27/2005 8:23:26 PM
I have created a web service, which when I call in my browser presents the text form etc. When I click the button, I get this error: System.ArgumentException: Cannot convert to System.Int32. Parameter name: type ---> System.FormatException: Input string was not in a correct format. at Sy...more >>



Error when returning a collection from a web service
Posted by Simon Harris at 4/27/2005 8:23:05 PM
I am trying to create a web service that returns a collection. It keeps complaining that I need to specifiy a default accessor. I have searched Google over and over for this - Lots of results, none of which really make full sense to me. I understand that this is related to serialization, a...more >>

Article Lost
Posted by pmclinn at 4/27/2005 7:35:56 PM
A while back I noticed an article www.windowsforms.com/asp.net or on some other like site that explained how to scrap data off of webpages...viewstates and such. Does anyone have a link to an article of this nature? ...more >>

Ambiguous match found.
Posted by Ben at 4/27/2005 7:23:11 PM
Hi I have just created a new ASP .net web project and when i run the project I receieve this error: System.Reflection.AmbiguousMatchException: Ambiguous match found. Any help would be much appreciated Thanks B ...more >>

Resetting Timer on <meta http-equiv="refresh"
Posted by George Durzi at 4/27/2005 7:03:45 PM
I'm using the following tag to refresh my page every 3 minutes. <meta http-equiv="refresh" content="180; URL=default.aspx"> However, it's bound to happen that a user is working on the page, and it refreshes, so they lose their work. Is there any way to reset the timer when a key is presse...more >>

Using a proxy and a port with WebRequest...
Posted by Bob Powell [MVP] at 4/27/2005 6:58:52 PM
It's not often I ask questions but here goes... I am writing a site that does Instant Payment Notification processing through PayPal and I need to use HttpWebRequest to hit an HTTPS server at their site to verify a transaction. The trouble is that the site I'm hosting on uses a proxy and a ...more >>

Why my ListBox Control in my Web Control is not Raising the SelectedIndexChanged Event ?
Posted by msnews.microsoft.com at 4/27/2005 6:47:25 PM
Hi All, I am creating a control with ASP "ListBox" control. Also I have added necessary code to handle the ListBox.SelectedItemChanged Event. But surprisingly the control is not comng to this code at all. Why my ListBox Control in my Web Control is not Raising the SelectedIndexChange...more >>

Response.Redirect from SSL to non SSL with port drops port.
Posted by Sean Wolfe at 4/27/2005 6:45:43 PM
I have this wierd bizarrre problem that I'm experienceing with the Response.Redirect() method. I have a site where the users are on a particular page in SSL. When they post the data back, and the processing is done, it then tries to redirect them back to the non-SSL site. But the site is on...more >>

Specified cast is not valid
Posted by Andy Sutorius via DotNetMonster.com at 4/27/2005 6:40:44 PM
Hi, I am attempting to set the CssClass programatically of an asp.net table row. My html is below. My code behind with the error on line 313 is also below. I attempted to cast the data from the data reader into a table row and then set the table row's CssClass but got the error. How can I set ...more >>

URL Decoding Issue --- HELP!
Posted by Ron Clabo at 4/27/2005 6:39:14 PM
I have a URL Decoding issue. The text that needs to be decoded is: "123+H%F6gbergsgatan+st" The decoded version should equate to: "123 Högbergsgatan st" This is what I tried: string encodedText = "123+H%F6gbergsgatan+st"; string decodedText = System.Web.HttpUtility.U...more >>

File not found when I try to launch and EXE from a webpage
Posted by Microsoft at 4/27/2005 6:08:39 PM
I'm working on you first asp.net project and its just a conversion of an existing vb.net project I have. I am trying to have the user push a button and execute a program from a share on the network. I get "the system cannot find the file specified", but the file is there and works fine from...more >>

PHP on .NET
Posted by Patrick Olurotimi Ige at 4/27/2005 5:58:02 PM
http://www.php-compiler.net/ - some people have written a PHP implementation built on top of the .NET platform. What's more shocking? *** Sent via Developersdex http://www.developersdex.com ***...more >>

OpenfileDialog in ASP.NET code behind ILLEGAL ?
Posted by hullnwm at 4/27/2005 5:12:52 PM
In my asp.net page I'm attempting to use the OpenfileDialog object to offer a common dialog box for the user to select a particular file on their hard drive that may subsequently be uploaded to our website. The reason I'm doing it this way is that I've read that by using the common dialog box...more >>

Can the ViewState value be stored in a server variable?
Posted by Tillman at 4/27/2005 5:00:15 PM
I am working on reducing the size of the ViewState value passed between client and server in a web app. And I am asking myself why the ViewState value can't be stored in a server variable rather than in the hidden input control. Can someone give me the answer? ...more >>

CheckBoxList
Posted by Trond at 4/27/2005 4:52:30 PM
I have a CheckBoxList on my ASP.NET page. It is populated from a dataset: DataSet dsType = new DataSet(); dsType = rmController.GetStatusMessages(); CheckBoxList1.DataSource = dsType.Tables[0]; CheckBoxList1.DataTextField = dsType.Tables[0].Columns["Status"].ColumnName.ToString(); Che...more >>

How do I cancel a lengthy process on server side?
Posted by Ken Varn at 4/27/2005 4:41:42 PM
I have an ASP.NET form that may take a very long time to process a particular request. If the user closes the browser window, the request will continue to process until it completes. This is a problem when a user tries to re-establish a new session. Since the previous request is still being p...more >>

Child window property window.opener null after postback
Posted by MrFez at 4/27/2005 4:39:06 PM
I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the value of a textbox in the main (parent) window by using the window.opener property to reference the textbox. Everything works fine initially. Howev...more >>

DataGrid Hide Rows
Posted by Baren at 4/27/2005 3:41:13 PM
Hi! I have a dataset which i am binding it to a DataGrid. Now depending upon certain conditions i want to display certain rows. Does anybody have any idea how to workout? Thanks, Baren...more >>

Which web server should I use on WinXP home
Posted by Joe at 4/27/2005 3:41:11 PM
Hi, Can someone tell me which web server should I install on Windows XP Home to develop asp.net and asp pages? I do not want to upgrade Windows XP home to pro. Thanks in advance Joe ...more >>

Question
Posted by Manny Chohan at 4/27/2005 3:39:00 PM
HI guys, I have a sql query SELECT tableA.Description , tableA.MenuText, TableB.id FROM TableA INNER JOIN TableB ON TableA.id = TableB.LCID ORDER BY TableA.id and the result is as follows: 1 menu1 ...more >>

Cross site scripting
Posted by Brad Quinn at 4/27/2005 3:33:44 PM
This is not an ASP.NET question per se. I'm asking since a lot of smart people lurk here. What is the smallest script that would be useful to an attacker? ...more >>

Hide header in datagrid
Posted by Manny Chohan at 4/27/2005 3:16:45 PM
How can i hide the header of a datagrid in VB .net? Thanks Manny...more >>

string manipulation
Posted by mark at 4/27/2005 2:34:51 PM
i have a string eg "John Doe" i need to manipulate the string to output "JD" this easy to do ? cheers mark ...more >>

how to download and store web images
Posted by Keith Harris at 4/27/2005 2:33:57 PM
Hi, I am pulling xhtml content from a data provider that I manipulate and store in a DB. Before storing the xhtml fragment in the DB,I want to discover all <img> tags, download the target image to the local filesystem, and change the img src to point to the new location. Do you know w...more >>

Hot key for button select
Posted by Paul at 4/27/2005 2:29:17 PM
Hi just wondering if there is a way to set up a hot key for a button selection, for example the user hitting Enter is the same as clicking on a button on the form. thanks. -- Paul G Software engineer....more >>

custom configuration section handler
Posted by jsh02_nova at 4/27/2005 2:21:14 PM
Why does a custom configuration handler type implementing IConfigurationSectionHandler can only be used on first level sections of the web.config? -- thx -jsh ...more >>

Do we always have to use the HtmlTextWriter to create the control?
Posted by msnews.microsoft.com at 4/27/2005 2:16:41 PM
Hello Everybody, Do we always have to use the HtmlTextWriter to create the control? Can we not use the overriden CreateChildControl to create the control? Is there any samples available? Thanks Anand ...more >>

Advantage of String.format?
Posted by mavrick101 at 4/27/2005 2:15:15 PM
Why is String.format better than just concatenating the string? is it just the cost of creating a new string? or any thing more?...more >>

Visual inheritance
Posted by Bart Schelkens at 4/27/2005 2:03:25 PM
Hi, I'm still using VB.NET 2002. I was wondering if I could do the following : I'm creating a web-application. Now I want to create a base-webform that contains the layout for all my pages. Would it then be possible to inherite my new webforms from that base-webform? How would I do thi...more >>

Download a file from a database
Posted by MattB at 4/27/2005 1:56:08 PM
Can anyone point me to any good articles or examples of delivering a binary file to the user from a database? I need to pull a PDF file from a SQL Server image field and send it back to the browser. I'm not sure if there is already an established "best way" to do this so I thought I'd ask. I ...more >>

Beta2 - ASP.NET 2.0 & VSS
Posted by Sahil Malik [MVP] at 4/27/2005 1:28:33 PM
We have a project under development using ASP.NET 2.0. Now the issue is that there is a BIN directory under the www directory (www is where all the aspx'es are). The web project references a whole bunch of other dlls, and anytime any of those dlls change, VStudio 2005 attempts to check out the DL...more >>

thread.start() does not actually execute the assigned method
Posted by chrisvc at 4/27/2005 1:27:44 PM
I have an ASP.NET application that creates 4 threads in the Application OnStart event. Each thread is stored in the Application object collection. This code works perfectly on my dev machine, running WindowsXPpro with VS.NET 2003 installed. Each thread is started and goes about its tasks as...more >>

Get All Sessions
Posted by Chris at 4/27/2005 1:17:44 PM
Is there a way for me to get every session that is running at the time of a client connect? Thanks Chris ...more >>

Assoicate a primary key with a checkbox inside a datagrid
Posted by Mark at 4/27/2005 12:48:06 PM
Hi everyone, could someone please recommend a way to do the following. I have a datagrid which contains a bound template column consisting of checkbox and a string pulled from a database table. I want to be able to associate the primary key of the database table with the checkbox so that when ...more >>

get datagrid.datasource gives error
Posted by vips at 4/27/2005 12:48:03 PM
Page_Load datagrid1.datasource=dataset1 //I am filling the datagrid and it works fine when page is displayed end --------------- button 1_click dim ds as dataset ds=datagrid1.datasource //gives error end when I try to get the datasource from a datagrid (i.e. a data...more >>

DropDownList Item Selected doesn't work?
Posted by Rudy Ko at 4/27/2005 12:00:27 PM
Hi, I seem unable to set the selected item in a DropDownList by using the following code, it always return the toppest (index 0) item, no matter what i selected. list.DataSource = GetProductDataSource(); list.DataBind(); item = list.Items.FindByValue("UMTS"); if(item != null) item.Se...more >>

Upload / download multiple files in sequence
Posted by stianb76 NO[at]SPAM gmail.com at 4/27/2005 11:55:26 AM
Hello all! I am trying to find a component which helps me upload and download many files at a time. As far as I can see, there are three options: 1. ActiveX control 2. Java applet 3. Purchase sharepoint Sharepoint is not an option, and because i program asp.net I assume an ActiveX comp...more >>

convert Julian date to Gregorian date
Posted by Sam at 4/27/2005 11:53:56 AM
How do I convert Julian Date to Calendar Date in ASP.Net 1.1 based on following guideline found at Internet? To convert Julian date to Gregorian date: double JD = 2299160.5; double Z = Math.Floor(JD+0.5); double W = Math.Floor((Z - 1867216.25)/36524.25); double X = Math.Floor(W/4); ...more >>

Modifing a XML File in a DataGrid
Posted by Kenneth Keeley at 4/27/2005 11:14:37 AM
Hi, I wish to have a page that displays to a user an address book that is stored in an XML file. This part I have done with a Datagrid. I also wish the users to be able to click on an entry and g to a new page that then displays the full details for just that address and allows the user to edi...more >>

Display animation while waiting for server to respond.
Posted by jensen bredal at 4/27/2005 11:03:02 AM
Hello, I attended a seminar with scott gu. Microsoft asp.net lead guru, and he mentioned some advanced javascript that let you display an animation while your page is waiting for response from the server. He said these scripts could be found on his blog but , so far i have not been ab...more >>

How to Create Web Controls using ASP.NET Controls ?
Posted by msnews.microsoft.com at 4/27/2005 10:32:38 AM
Hello All, I am trying to write Web Controls and in most of the samples I came across, I am seeing the following function where a HTML string is written to create HTML Controls. /// <summary> /// Render this control to the output parameter specified. /// </summary> /// <param na...more >>

How to do a clinet-side refresh without user intervention?
Posted by aaa at 4/27/2005 10:26:27 AM
I do not know if this is entirely possible ( I have been semi-successful in my tests). I have an Asynchronous call in my project and I need to refresh an aspx page to update a grid after I get the callback. Possible? And if so how? ...more >>

Detect if browser closed
Posted by Chris at 4/27/2005 10:23:34 AM
Can anybody tell me how to detect is the user has closed the browser Thank you ...more >>

Upgrade server for VS2005
Posted by Eric Connell at 4/27/2005 9:56:36 AM
I'm interested in porting an existing app to Visual Studio .NET 2005 (ASP.NET 2.0). I need to hit a windows 2003 server with a SQL Server 2000 database. I want to use the server to host my web site and hit the SQL Server database too. My questions: What do I need to do to support ASP.NE...more >>

Cookie and Session Cookie Questions.
Posted by Shapper at 4/27/2005 9:55:11 AM
Hello, I am working on an ASP.NET / VB web page. How can I set a cookie in my visitor computer and also a Session Cookie? And how can I retrieve their values? I will run it when page loads. Thank You, Miguel ...more >>

Help with connection pooling - connections get closed but remain active
Posted by caroh NO[at]SPAM orange.net at 4/27/2005 9:47:27 AM
Can anyone see whats wrong with this code: The connections are remaining live in the database: and causing "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool" errors. Try 'open the connection myConnection.Open() ...more >>

Moving my projects to asp.net beta 2. Good idea?
Posted by jensen bredal at 4/27/2005 9:45:50 AM
Hello, I have just built my asp.net 1.1 project with visual studio web dev express 2005. Beta 2 has a Go Live license and i want to get used to the new things as early as possible. Is there any reason why i should not do this? I know some of the beta 2 apis may change but otherwise c...more >>

Specifying Root Relative Path in User Control
Posted by Guadala Harry at 4/27/2005 9:43:35 AM
I have a user control that I'm inserting into multiple pages. Part of the HTML content in the user control is a path to an image: <img src="../images/arrow.gif" width="11" height="8" border="0"> The image appears just fine when viewed from pages that exist one directory level below the sit...more >>

Hide Java Script
Posted by kpg at 4/27/2005 9:39:01 AM
Hello all, I have an asp.net web application with tons of Java script files. I would like to protect the Java Script somehow so it can't be seen by a remote user. I found several 3rd party solutions, but I thought I remember that there was a way to 'compile' java script and use that inste...more >>

Building installer for Web app
Posted by harry at 4/27/2005 9:05:28 AM
Hi all I have a browser based application that I am looking to deploy. I have built an installer but need to have the installer do some permission changes. I am looking for someone to point me in the direction where I can find help on writing scripts for my deployment project. I need to wri...more >>

Can't set imagebutton to default button
Posted by Bill Borg at 4/27/2005 9:00:02 AM
Hello all, I have a standard-issue textbox to enter search words and an imagebutton to execute the search. When they press enter in the textbox I want it to click the button and run the server-side handler. Based on code I've seen out here and other articles, I can do this if the button ...more >>

Retrieving Session Data from a Base Page Class
Posted by David Young at 4/27/2005 8:46:56 AM
I normally work on WinForms projects, but have been recently thrust into this arena and had a questions concering access to objects stored in session. We've apparently got an object (custom class) that's stored in session for each user of our app. This object provides information related to t...more >>

ASP.NET 2.0 Membership.CreateUser problem
Posted by Joe Gilkey at 4/27/2005 8:04:01 AM
I am trying to create an application using ASP.NET 2.0 which takes advantage of the new Membership features (I am using Visual Web Developer Beta 2). I created a default database on SQL Server 2000 using aspnet_regsql -W on my machine. After following the setup instructions, I am unable to cre...more >>

Attribute to UserControl
Posted by Pete Davis at 4/27/2005 7:45:15 AM
I'm fairly weak with ASP.NET. What I'm trying to do is pass an attribute to a UserControl. The attribute is a value from the CodeBehind for the page. So in my .aspx I have the following: <cm:Comments runat="server" ID="Comments1" CommentType="News" ItemID="<%= NewsItemID %>" /> NewsItemID...more >>

how to download img from html img tag
Posted by news.austin.rr.com at 4/27/2005 7:39:25 AM
Hi I need to download an image (img) from a website without getting the entire page. If i already have the HTML img tag and line how can i just download the image and save it local? thanks ...more >>

Visual Web Developer Activation Key?
Posted by paully_21 at 4/27/2005 7:04:02 AM
I'm an MSDN Subscriber and I installed VWD...When I activate the product it asks for an activation key...Where do I get one of those? And, more importantly, shouldn't it be part of my MSDN subscription?...more >>

how to check/Uncheck a checkbox dynamically in a datagrid in asp.net
Posted by Neal at 4/27/2005 6:31:55 AM
HI all, I have an issue with check box in datagrid. I would like it to check and uncheck based on a database value of NULL or a Date Value. If there is a date value for that column then check the check box in datagrid If the value is null then keep it unchanged as (Unchecked) this is ...more >>

FileInfo Object Crashing??
Posted by mavrick101 at 4/27/2005 6:02:04 AM
I have an application that would send a file to browser using Response.writefile. Every thing seems to work fine, but some times during testing, something goes wrong and I can not capture it. I have to restart the IIS in order to get the application working again. Any help???...more >>

Domain users cannot debug.
Posted by google NO[at]SPAM easiesttoremember.com at 4/27/2005 5:48:16 AM
Setup: --------- Windows XP Pro SP1 (SP1 is not by my choice). 512MB RAM 3.2Ghz DotNet v1.1.4322 VS.NET 2003 Issue: ----------- I cannot debug asp.net apps when logged in as a domain user. I *CAN* debug ASP.net apps when logged in with an account on the local machine. I have added th...more >>

Output Path problems with debug in vs 2003
Posted by njr at 4/27/2005 4:22:04 AM
Having copied a number of folders from my development PC (XP) to a development server (W2003) and installed them under wwwroot (and created applications in IIS) I have problems when I include the corresponding asp.net projects in a solution. They build fine but when attempting debug (via F5) I...more >>

validation controls
Posted by julientuhuteru NO[at]SPAM hotmail.com at 4/27/2005 4:14:56 AM
Hi! I put some Validation controls on a page. These controls are fired on my development server, but they aren't fired on the production server. Does anyone recognize this problem?...more >>

How to simulate a directory structure of aspx pages with one processing page
Posted by jezowicz NO[at]SPAM gmail.com at 4/27/2005 2:51:04 AM
Hello! I would like to have one page on the server, which would be a target processing page for a number of other aspx pages. E.g Processing page \portal_page.aspx Target pages \business\credit_cards\barclaycard.aspx \business\loans\halifax.aspx \business\savings_accounts\halifax.aspx...more >>

Returning CollectionBase from WebService
Posted by Web Team NO[at]SPAM Borough of Poole at 4/27/2005 2:47:36 AM
Hi All, I'm trying to build a webservice that returns a CollectionBase. I am getting this error: "You must implement a default accessor on System.Collections.CollectionBase because it inherits from ICollection." I've searched and searched on this one - Plenty of articles, none of whic...more >>

I need help with this
Posted by Chris at 4/27/2005 1:28:01 AM
Hi, I have been trying to use the UPS tracking webservice but was unable to. How do I send the request <?xml version="1.0"?> <AccessRequest xml:lang="en-US"> <AccessLicenseNumber>123544775</AccessLicenseNumber> <UserId>test</UserId> <Password>test</Password> </AccessRequest> <?xml versio...more >>

Performance issue when dynamically populating a dropdownlist from a hidden frame
Posted by Wim at 4/27/2005 1:27:26 AM
Hi Everyone, I'm trying to speed up a Asp.net 1.1 applications' performance. The application needs to run in an environment with little bandwith and therefore pagesizes and roundtrip times shoud be brought back to a minimum. The application suffered from relatively large screens. A typical ...more >>


DevelopmentNow Blog