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 > june 2004 > threads for friday june 25

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

response.redirect and recordset/connection object?
Posted by nick at 6/25/2004 10:58:08 PM
I have the following code in JScript. Should I close and release the database objects before run response.redirect("some url")? or will the response.redirect automatically close the database object/connection like the end of asp script? ....... var cmd = Server.CreateObject("ADODB.Command")...more >>


MSDE Web Connections Using ASP.net
Posted by Martin Harran at 6/25/2004 10:23:22 PM
MSDE is throttled for 8 concurrent operations. As ASP.net is designed around disconnected recordsets, I'm wondering how busy a site using ASP.net would have to get before the workload governor starts to have a noticeable effect. Anyone have any experience of this or guidelines? Martin Harran...more >>

XMLHTTP Question??
Posted by grawsha2000 NO[at]SPAM yahoo.com at 6/25/2004 9:03:26 PM
Greetings, From my readings about xmlhttp, it allows for data retrieval (an example, from sqlserver) without the need to refresh the whole page..correct?? Can I call it from code behind(with System.Net.httpwebrequest) and still get the same result as calling it from javascript?? If not, ca...more >>

How to import namesapce with non-codebehind page?
Posted by clare_hsiao NO[at]SPAM hotmail.com at 6/25/2004 6:29:47 PM
Hi all I can't import some namespace with non-codebehind page.. for example. <%@ Import Namespace="System.ServiceProcess"%> In code-behind,we have to reference System.ServiceProcess.dll manually. but how can we import such kind of namespace in .net framework? Thanks a lot Clare Hsiao ...more >>

Displaying File name on a fetcher page
Posted by Rukmal Fernando at 6/25/2004 6:10:55 PM
Hi all, I have a file retrieved from a database and I want to return it over a web page. I currently have an ASPX page (Download.aspx) with code similar to the following in Page_Load(): ... string file = Request["file"];byte[] fileData = this.getFile(file); // this fetches the file's d...more >>

Catch previous url
Posted by Jason Zhou at 6/25/2004 5:51:06 PM
Hi, I have a question on how to get the previous url in custom error file. Here is what I am doing: If someone visit my website with a wrong file name or wrong directory name, IIS will automatically show error 404 page, this was setup by default in IIS web site properties/Custom Errors. I r...more >>

Batch printing from a ASP.NET Webapp?
Posted by Ardie at 6/25/2004 5:11:01 PM
Hi, I'm currently working on a webapp that generates reports for the user and i was wondering if there was a way to do batch printing. I was playing around with the idea of sending the reports to a browser window and then starting the print job from there, but i need to know if i can insert a ...more >>

Shud not search HTML tags
Posted by anand at 6/25/2004 4:55:13 PM
Hello Group, i am stuck up to a problem, i made a search program on my web site and highlighting the searched phrase on HTML pages . well the problem is when user searches word "table" the Page also displayes highlighted "<table>" along with other page contents is there any way i can skip highli...more >>



BC30451: Name 'Caching' is not declared.
Posted by TJS at 6/25/2004 4:45:06 PM
I get this erro from a vb class file. line 86. Line 84: Dim dt As New DataTable() Line 85: da.Fill(dt) Line 86: Cache.Add("ScrollExampleCustomerData", dt, Nothing, DateTime.MaxValue, TimeSpan.FromDays(7), Caching.CacheItemPriority.Normal, Nothing) Line 87:...more >>

Book Recommendation - ASP.NET (+ADO.NET, with VB)
Posted by Saul at 6/25/2004 4:43:04 PM
Hi all, I was hoping to get ISBN or Name of a book to get seriously into ASP.NET using VB. Here is what I am looking for -- 1. Intermediate level. Explain the basic things very quickly, move on to the more interesting stuff and point me in the right direction if I really wanto to do somethi...more >>

2 Simple Questioons
Posted by Haitham at 6/25/2004 4:18:38 PM
Hi There, Can any one please help me in the following two questions, i was developing an ASP application using VB.net (intranet application) and my questiuons are 1- how can I use a Chart control in the Web form ? 2- Is there any was to get the windows login name of the user who is connect...more >>

Viewstate Error
Posted by .NET Developer at 6/25/2004 4:14:57 PM
We are getting lot of this error on the production web app environment. However we are not able to reproduce this error in the test environment. What are the various causes for this error? How to reproduce them? and eventually how to resolve this? Thanks Exception Details: System.Web.Http...more >>

No codebehind : Classes
Posted by DaWoE at 6/25/2004 3:55:34 PM
Hello, I'm used to working with VS.Net and code behind. The usual way to work for me is to have a class that does all the database access for me. All my other classes, except for my page inherit from this class. I'm making a site for a friend now who doesn't has free webspace that suppo...more >>

Newbie web service problem
Posted by John at 6/25/2004 3:43:26 PM
Hi I have written my first web service and when I run it, I get the below error. What am I doing wrong? Thanks Regards Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify ...more >>

Open a page in a panel
Posted by JezB at 6/25/2004 3:22:06 PM
How do I open a page in a panel (or any square area) within a parent page ? (ideally via c# code-behind module rather than javascript) ...more >>

Binding two columns to a DropDownList
Posted by Simon Harvey at 6/25/2004 3:20:16 PM
Hi all, I have two columns in a databse that I wish to bind to a dropdownlist, one column as the value (or index) the other as the text value displayed. Does anyone know how I can achieve this? Thank you Simon ...more >>

Page_Load not firing 2nd time round?
Posted by Craig Miles at 6/25/2004 3:19:29 PM
Hi, I have Form1.aspx. Form1 uses client side javascript to launch Form2.aspx when a button is clicked: window.showModalDialog("Form2.aspx?xxxxx=xxxx") etc. The first time the Form1 button is clicked the Form2 Page_Load (server side) is fired. I close Form2 returning to Form1. Click th...more >>

Can someone help me get this sub to exit correctly?
Posted by tina.pardi NO[at]SPAM nav-international.com at 6/25/2004 3:13:54 PM
Where there is a duplicate invoice, I want to stop the process and post to the user on the same page and not continue to the next page...I tried Return or Exit Sub...but still the same thing occurs. Sub Close1Open2(Source as Object, E as EventArgs) pnl1.visible="false" pnl2.visible=...more >>

Date format function
Posted by RSB at 6/25/2004 3:04:54 PM
Hi Everyone, i am sure it should be easy.. I have a table in the SQLServer with a Date/Time field. And once i read the data from this field i get the Date and Time e.g. 12/12/2004 12:00:00 AM so what function i use on the ASP.net to only get the Date. Thanks RSB ...more >>

ASP -> ASP.Net migration help
Posted by Mark Parter at 6/25/2004 3:01:01 PM
I have an ASP-based web application which broadly speaking, can add, edit and delete appointment items in an Exchange 2000 public calendar. As our organization is migrating to SharePoint 2003, I'd like to migrate this to an ASP.Net version for inclusion in SharePoint. The ASP version uses CDO fo...more >>

Reporting...
Posted by Colin Basterfield at 6/25/2004 2:26:59 PM
Hi, I have been looking at Reporting Components for ASP.NET, and am finding them all really expensive, well frankly components for dotNet generally, so what do people generally use to provide half decent reports, is there a reasonably priced set of components or do cheapskates like me have to ...more >>

Need Help ASAP!
Posted by Chad A. Beckner at 6/25/2004 2:26:26 PM
Hey all, I've spent all day trying to figure this out. What I need is a script to grab a webpage and display it as an (thumbnail?) image on one of my pages. GotDotNet has a webservice to do this, but I need everything to be "local", i.e. I can't call their webservice. Does anyone know wher...more >>

datagrid formatting
Posted by hymort NO[at]SPAM hotmail.com at 6/25/2004 2:09:34 PM
Hello, I have a basic question about datagrids. I want to format a datagrid such that all data can be displayed without having to scroll to the right. Currently, I display a datagrid with > 20 columns and it's a hassle not to see all of the columns on one screen without having to scroll to ...more >>

Accessing the Login Information on SPS via ASP .net
Posted by Ranjan as usual at 6/25/2004 1:14:01 PM
Dear folks, I'm building an ASP .net page and integrating it into my share point portal server 2003 using a webpage viewing webpart. What I need to do is, when the user logs in, I need to be able to capture the log in information and then find a value called 'row id' based on this log on informatio...more >>

textbox.
Posted by google NO[at]SPAM joriz.is-a-geek.net at 6/25/2004 1:04:59 PM
i have a textbox that i need to edit. First i populate it with the data from my sql table. afterwards i make changes on them.. and then when i clicked the save button, i noticed that the textbox value still contains the original value. the changes i made on the textbox wasnt saved at all.. The...more >>

Datalist onItemCommand not firing
Posted by DaWoE at 6/25/2004 12:55:50 PM
Hey, I don't get my onItemCommand to fire...Can anyone tell me what i'm doing wrong. Here is the code : <%@ Page Language="VB" Debug="true" %> <%@ import Namespace="System.IO" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.OleDb" %> <script runat="server"> ...more >>

ImageButton events stopped firing on client?
Posted by Darren Clark at 6/25/2004 12:21:27 PM
I have an image button on a page <asp:ImageButton Runat=3Dserver ID=3D"btSimpleSearch" = onMouseOut=3D"this.src =3D 'images/button_search_n.gif'" onMouseOver=3D"this.src =3D 'images/button_search_r.gif'" = ImageUrl=3D"images/button_search_n.gif" name=3D"btSimpleSearch" = width=3D"74" height=3...more >>

Third Party Import Library?
Posted by sarophes NO[at]SPAM yahoo-dot-com.no-spam.invalid at 6/25/2004 12:04:27 PM
Does anyone know of (or can you recommend) a third party product that can: - read from a comma-delimited flat file, and import the data into SQL server or XML - Allow users (using a simple interface) to map fields in the flat file to the SQL db - Allow concatenation or breaking down o...more >>

Testing ASP application sessions
Posted by Pavils Jurjans at 6/25/2004 11:56:57 AM
Hello, I have a couple of unclear questions about ASP.NET sessions: First, I'd like to have some way to see how many sessions currently are running on the certain application, and, possibly, have some way to peek in the data of these sessions. If there is no such utility for IIS, perhaps there...more >>

Newbie - Problem Sending an email via .NET
Posted by Rob G at 6/25/2004 11:53:47 AM
Hello, I am tring to send an email from my local machine (acting as a web server) on my company's network. For simplicity sake, I just want to send an email to myself. But I cannot seem to configure this correctly. Either nothing happens at all, no errors and no email, but the code seems to...more >>

dns lookup from .net -- validate email address (domain)
Posted by martin at 6/25/2004 11:44:35 AM
Hi, I would like to validate an email address from .net. Now before you scream regular expression I would like something a bit better than this. I would like to validate the domain, and maybe lookup to see if the domain has a valid MX record. can anybody tell me if this is possible using ...more >>

Handling events and postbacks in ASP.NET
Posted by JezB at 6/25/2004 11:20:03 AM
It strikes me as odd that when I attach an event to a button webcontrol (for example), the page posts back before the event is fired - ideally I'd like it to post-back after my event code has executed, so that the re-posted page reflects any results of that code. Can the default behaviour be c...more >>

How do I force a post-back ?
Posted by JezB at 6/25/2004 11:12:56 AM
I have a button which implicitly posts-back before firing the event that I have attached to that button. Within that event code I modify the controls collection on the page so I want to force another postback, how do I do this from my code-behind module ? (c# preferably). ...more >>

VB image resize example
Posted by Harry Hudini at 6/25/2004 10:59:19 AM
Does anyone have any example ASP.NET code using VB to help me with resizing an image? I have a form to let users upload images, which works fine, but im stumped when it comes to creating a thumbnail for them. I can find a few examples in C# but that means nothing to me. Olly -- _______...more >>

page inheritance bug fixed
Posted by JR at 6/25/2004 10:48:17 AM
I'm developing in VS.NET 2002 and I'm having trouble working around the issue with page inheritance and the VS.NET Form Designer. When I create a base class for my form, and inherit from it, I can no longer bring up the inherited form in the designer. I get the error "The file failed to load i...more >>

Creating HttpHandlers
Posted by Prince at 6/25/2004 10:31:53 AM
I have the following code within the ASP.NET project I have created. public class RedirectHandler : IHttpHandler{ //empty constructor public void ProcessRequest(HttpContext context){ response.Redirect("page2.aspx"); } public bool IsReusable(){ get {return false;} } ...more >>

String Builder & String, what's the difference ?
Posted by Tee at 6/25/2004 10:24:00 AM
String Builder & String, what's the difference. and when to use which ? Thanks. ...more >>

client side script - cancel submit...
Posted by Iain at 6/25/2004 10:10:02 AM
I have an <asp:ImageButton ...> which I do some client side validation with by adding an Attribe for the on click. How do I tell asp NOT to submit if my function does not validate? I've tried returning false but to no avail. I'm sure it's obvious when I know how! Iain ...more >>

[ENTER] key causing major headaches.
Posted by Eric at 6/25/2004 10:06:30 AM
Hi All, I'm very experienced in traditional ASP and am new to (am learning) ASP.NET. FYI: I am initially learning ASP.NET with VB.NET to ease the transition for me. I have encountered what I believe to be a huge limitation with ASP.NET and I'm wondering how you have handeled this problem. ...more >>

dropdownlist value not persisting after autopostback
Posted by Daniel Doyle at 6/25/2004 10:05:44 AM
I have cut my page down to the simple code below. The problem is when the user selects a number from the list I want this number to remain selected after the response.redirect, but the first item in the list is always selected. I have another page that looks the same and works but I can't unders...more >>

Portal Error - A DropDownList cannot have multiple items selected.
Posted by Tom Bray at 6/25/2004 9:52:10 AM
Ok I am baffled I can not figure out this problem. I am getting the following error: Portal Error - A DropDownList cannot have multiple items selected. Error information Name Value Message A DropDownList cannot have multiple items selected. Source System.Web ...more >>

Asp.net flaky?
Posted by Shock at 6/25/2004 9:42:58 AM
Hello all, I made a post yesterday about the flakiness of asp.net datagrids. I was under the impression that this problem was only in regard to datagrids. Apparently our problems are with any aspx page. At random these pages do not want to load, but this only happens once the projects h...more >>

difficult security problem
Posted by Jim Corey at 6/25/2004 9:26:43 AM
My intranet web app is set up with Windows authentication and IIS is set to disallow anonymous access. The app includes a main.aspx where everything happens, and includes Response.Expires = 0 Response.Cache.SetNoStore() Response.AppendHeader("Pragma", "no-cache") ...more >>

Impersination errors
Posted by Brian Henry at 6/25/2004 9:24:13 AM
We get the error below after moving our new app to a windows 2000 server... how do you correct this? we added permission for ASPNET user on the local machine for the folder, but this sitll shows up... Server Error in '/WebClient' Application. -------------------------------------------------...more >>

FindControl in a Datalist
Posted by Adam Billmeier at 6/25/2004 9:06:54 AM
Problem: I am trying to use FindControl to grab a dropdownlist that is in the EditItemTemplate of a Datalist and then Bind it to a dataset. I also then need to put the correct values in all of the text boxes in the EditItemTemplate. I have set the EditItemIndex for the Datalist to -1, and th...more >>

Sessions never end (again) - Please help
Posted by D. Shane Fowlkes at 6/25/2004 8:46:00 AM
This is a repost (pasted below). Since my original post, I've double checked the system clock and set all IIS Session Timeout values to 10 minutes. Still ...the problem occurs. I've also installed Deep Metrix Live Stats 6.2 XPS just to make sure nothing really strange was going on was going o...more >>

I.E. 5.5 Release Date
Posted by Jeremy at 6/25/2004 8:03:36 AM
Approximately when was I.E 5.5 Released? ...more >>

Forum
Posted by mike at 6/25/2004 7:24:20 AM
Hi for those who can help me out. Does anyone knows a good messageboard, forum that uses ASP or ASP.NET one for free would be the best but payed one who could do the job would have my intention also. Thanx in advance Mike Ps. Why are some people killing the forums ...more >>

Will Frontpage be rolled into VS.NET?
Posted by Jack at 6/25/2004 6:47:46 AM
I'm not entirely familier with developing webforms, but it strikes me there is overlap between building webforms using Visual Studio.NET and FrontPage... with each having strengths and shortcomings. Is there any thoughts at Microsoft for combining these two products into one dynamite product? ...more >>

Assigned value to user control during Page_Load
Posted by Cindy at 6/25/2004 5:15:45 AM
ASP.NET - C# (User Control) I have a drop-down as usercontrol. In the user control's Page_Init , the drop down gets populated. The SelectedItem.Text is retrived using property get The Value of the drop-down is assigned using property set. This user control is placed on an aspx page on...more >>

ASP_NET worrker process @ 80% CPU
Posted by Gary at 6/25/2004 2:14:42 AM
Windows 2000 Adv Svr (SP4). .NET Fwk 1.1, .NET Fwk 1.0 (SP2), CMS2002 (SP1) and Commerce Server 2002 (SP2) (MSIB2.1). Have noticed recently that the asp_net worker process runs at 70 - 80% CPU. Normally it runs at about 10 - 15%. A reboot clears this but then it creeps up again? Any ideas...more >>

Getting invalid token error but can't see why
Posted by ian NO[at]SPAM netbyte-dot-com.no-spam.invalid at 6/25/2004 1:04:00 AM
I'm getting a compiler error on my ASP.NET page and I can't see the cause. I have a simple C# class compiled into a DLL and placed in my bin directory which has a public property QuestionText. When I try and set the property the compiler throws up Compiler Error Message: CS1519: Invalid tok...more >>

Creating a static ASP.NET page and a few other newbie questions
Posted by William Parker at 6/25/2004 12:26:25 AM
OK, these questions are going to seem so basic that I am actually embarrased to ask them but I really need the guideance. I've done some fairly complex coding for years with class ASP and I'm very comfortable with it. However I am new to ASP.NET and there are a few basic things I just don't get....more >>


DevelopmentNow Blog