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 2005 > threads for friday 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

Is there a way to intercept page HTML source before it's served
Posted by LP at 2/18/2005 11:58:37 PM
Hi, After html of .aspx page has been generated, but before it has been sent to a client, I want to interecept it, and slightly modify it. I can't find anyway to get html of a page. How can I do that? I need that because I need to modify behaviour of a component that someone else wrote, but I ...more >>


Hashtable to Data List?
Posted by Sparky Arbuckle at 2/18/2005 11:35:19 PM
Hello all! I am trying to get information from a HashTable to display in a DataList using a SQL statement. Is this possible? When the visitor 'adds item to cart' they are redirected to ShoppingCart.aspx?add=ITEMID. The HashTable simply stores The ITEMID, Quantity, and an option for ADD / REMOVE...more >>

Timeout expired
Posted by Stefan Landgraf at 2/18/2005 8:23:18 PM
Hi there, since installing Windows XP Pro SP2 on my machine i get an error InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached ...more >>

Dispose of com objects without waiting for gc
Posted by gerry at 2/18/2005 8:15:52 PM
I have a com object that is used via an interop assembly - ie. I referenced the com object and vs.net created the interop .dll for it. I create one object per session when the page 1st loads and store it in the Session. I expected that the object would be released when the Session object was de...more >>

asp.net/iis/sql help
Posted by Charlie Ting at 2/18/2005 7:21:15 PM
Hi. Let me tell you my domain environment. It's NT 4.0 domain with a Windows 2000 member server running as ASP.NET/IIS/MS SQL 2000, all in one box, and it worked fine. Recently, we bought a new box with Windows 2003 standard version and trying to move ASP.NET and IIS to this box. Howev...more >>

how to host the asp.net pages on linux/unix
Posted by Devinder Singh at 2/18/2005 6:09:00 PM
hi group can any one tell that how to host ASP.NET pages on linux or unix devinder singh ...more >>

Which Type of Control To Use
Posted by Johnson at 2/18/2005 5:36:55 PM
I want to let users enter text - multiple lines - up to about 800 characters. I want to preserve line breaks and white space, if possible, to a database. In subsequent sessions, the users should be able to retrieve the text and see it just as they had previously entered it (line breaks and a...more >>

Web Service - get remote machine/network parameters
Posted by Just D. at 2/18/2005 5:23:12 PM
I know that writing ASPX app we easily can get all required information about remote machine and network right from the user's browser using this request: NameValueCollection coll = Request.ServerVariables; But what if we write a Web Service? What can we do in this case? How can we get t...more >>



add a row to a repeater
Posted by Jack at 2/18/2005 5:11:01 PM
I have a repeater bound to a collection of business objects: ScoresRepeater.DataSource = objReferralTestScore.TestScore; ScoresRepeater.DataBind(); How can I add a "new" row to the repeater without adding to the collection of bus objects? Thanks in advance, Jack....more >>

ASP.NET works on one site but not another on same iis machine
Posted by Tim Wood at 2/18/2005 4:49:54 PM
I'm having trouble with setup of an asp.net application on Windows 2003. When I attempt to start the app I get "Server Error in '/MyApp' application. The message also says that error details cannot be displayed because customErrors is set to remoteOnly in web.config. Right now the application c...more >>

Leaking Code
Posted by MattC at 2/18/2005 4:42:22 PM
Gents, I have had to persist the viewstate into the Session object, however once this was done the W3WP process' memory ramped right up and used 300MB of VM. Below is my code, can anyone see where a leak may be. I am using the aspnet_state to store my session info. TIA MattC pr...more >>

Evoke instance MS Word and pass data
Posted by Kevin at 2/18/2005 4:32:55 PM
Has anyone done this? Please point me in the right direction if you = have. Thanks......more >>

newbie: MapPath from non page class
Posted by KMA at 2/18/2005 4:30:42 PM
Ah yes. The MapPath function and the "~" . They're really taken out some of the headaches for me. But alas (and alack) it's only available in the Page class. What I wanted to do was write a separate class (code only, no GUI) for handling data and be able to find the data files using MapPath from ...more >>

dropdown list
Posted by Yoshitha at 2/18/2005 4:21:42 PM
Hi in my web form i had dropdown list control and using items property i;ve added "--- select Item-----" 0 1 upto 10 numbers. i also placed required field validator control for this drop down list. when am running my application, if click on submit button with out sele...more >>

dropdownlist on the top
Posted by volkan at 2/18/2005 4:02:25 PM
Hi i have a question about drop down list. DropDownlist control is always in the top of all layer so when i try fetch a textbox, label, etc. under the drop down list control, it is appearing on th top of all. What can i do. ...more >>

HttpWebRequest times out with ASP.NET_SessionId cookie
Posted by Keith Patrick at 2/18/2005 4:01:03 PM
I'm trying to programmatically post data to another page within my ASP.Net app. Not POSTing is not an option (I can't store this data in my session, context, hidden fields, or anything else...I've exhausted all my other options, so I have to get this scenario working). Basically, if I POST t...more >>

How to log..... ?
Posted by Raja at 2/18/2005 3:51:22 PM
I have written ASP.Net application using Vb.Net. I have written various routines which primarily process the data using SQL statements (Insert/delete/update.). Some of these statements are created at run time depending upon data. It appears some times the application is not creating valid SQL st...more >>

How to handle "Maximum request length exceeded" exception
Posted by cmay at 2/18/2005 3:51:03 PM
I have changed my config files to set the limit for files being uploaded to 30 MB, but every now and then someone tries to upload a file larger than this. All I want, is to be able to trap the error and tell the user what happened. I can trap the error in the page_error (Page.Error) event, a...more >>

Problem with the Session variable for ASP.NET
Posted by Nathan Sokalski at 2/18/2005 3:27:46 PM
I am trying to increment the Session variable at certain points in my code, but it will not work. The initial value assigned to it is always the one that is displayed. Here is the code used to create and increment the Session variable: To create it: Session.add("Right",0) To increment i...more >>

Controls ID are not being respected?
Posted by recoil NO[at]SPAM community.nospam at 2/18/2005 3:20:48 PM
I have a Custom WebControl which adds several children at OnInit. In OnInit I set the ChildControl to ParentID + "_" + Control's ID so it would be something like MyContainer_VendorID Now the control is moved to a TableCell in the Control's OnLoad event. This control still has an ID of MyContaine...more >>

WebRequest method usage
Posted by ThyRock at 2/18/2005 3:13:01 PM
I am working on a WebRequest accessing the US Postal Service WebTools test API. This service uses a DLL file (ShippingAPITest.dll) with a query string which includes XML. The web service accepts the query string with no url encoding. I must pass the <> characters as they are in the query string....more >>

Word Document
Posted by Alex at 2/18/2005 2:44:59 PM
Hi, Not sure if this is the right newsgroup, but does anybody have any advice/strategies for using Word Documents with ASP.Net projects. I need to be able to create/edit and print word documents from an intranet. Thanks. Alex ...more >>

ASP.NET bug
Posted by 00_CuMPe3WaR3D12 at 2/18/2005 2:35:32 PM
I was trying to add the style attributes on DropDownList but I couldn't, so I found many articles on Google and people saying this is a bug. But in microsoft support site, I found this: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q309338 If I use Microsoft's workaround by using Ht...more >>

searching through MS Word and PDF documents
Posted by Darrel at 2/18/2005 2:30:21 PM
Can anyone recommend a product/technique/component that would be capable of indexing PDF and MSWord document's and then searching against them? I've used index serviices for things like this in the past, but I won't have direct access to this server and I'm not sure if that will be an option....more >>

Proper database connection disposal methods??
Posted by Roger Twomey at 2/18/2005 2:28:39 PM
Hi I have been disposing of my sql connections for some time (as I should) but when I see samples I noticed that the samples don't close the connection first. Here is what I do: sqlconnection.open Code sqlconnection.close sqlconnection.dispose() -->> What I see in samples looks li...more >>

accessing a file from DLL that's located in Bin directory
Posted by Joo Park at 2/18/2005 2:11:32 PM
Hello, I have a dll in the bin directory of my website. The dll needs to load a file in the bin directory as well. This piece of code does not seem to work. File_Name ="myfile.txt"; fs = new FileStream(FILE_NAME, FileMode.Open, FileAccess.Read); Both the file and the dll are in the sa...more >>

ASP.Net & .Net Framework
Posted by manoa at 2/18/2005 12:59:06 PM
I am installing Exchange 2003 on a Windows 2003 server. One of the pre-requiste to this installation is to make sure ASP.Net and .Net Framework are installed and enabled. I located the ASP.Net component and installed the service under the add/remove Windows Components -- Application server. ...more >>

HTML IMG SRC
Posted by psb at 2/18/2005 12:37:35 PM
Hello, I am dealing with a lot of published pages on a particular website. (web-editor/publish/archive) It is easier for me to remove all of the "../../imgageDir/image001.jpg" references and replace then with http://www.aWebsite.com/imageDir/image001.jpg... Will this slow down my website or ...more >>

Dropdownlist,DataTextField,DataValueField ?
Posted by Sam at 2/18/2005 11:56:34 AM
I want to create dropdownlist where DataTextField and DataValueField are extract from table gldate. Example Dropdownlist -> Jan-2005 -> Feb-2005 ... ... -> Dec-2005 Table gldate ============ DataTextField DataValueField --------...more >>

3rd Party Comboboxes that allow filter on data entry
Posted by Craig G at 2/18/2005 11:33:08 AM
are there any decent 3rd Party Comboboxes/DropDownLists for ASP.NET that will allow users to enter data into them like in VB.NET? basically i want a combobox that i can populate with a list of values from a table. then the user can then enter the value into the combobox and it will move to the...more >>

Request.QueryString
Posted by C at 2/18/2005 11:33:04 AM
Hi, I have been using VB.Net for the past 2 years and have moved to C# I send a value in the URL to a page. In my called page I do below. int intTest = int.Parse(Request.QueryString["TestID"]); If this is blank I get an error. So I decided to check if it was empty by doing a .. ...more >>

UserControl and Folders
Posted by Francisco at 2/18/2005 11:29:58 AM
Hello I have a usercontrol (MenuBar.ascx)... Now i use this in all my pages (aspx) en the root (OK!!!!).... The problem is when i use this in others folders... It lost the links (graphics, links,....) and i have errors...... What's the solution???? Do I need made the same usercontrol in each ...more >>

zip code and distances
Posted by David Lozzi at 2/18/2005 11:02:53 AM
Hey All, I need to add a locator service for asp.net where a user would specify a = zip code and then the returned list would be displayed in order of = closest to furthest. I realize this is a third pary app, but who/what do = you recommend?? Thanks! --=20 David Lozzi Web Applications...more >>

Best Practice for Login Screen Using a Table form a Database
Posted by Carlos at 2/18/2005 10:48:21 AM
I have an c# as.net app that check if the user exist in a USERS table, that part is ok but now I need to pass the user ID no the next page beacuse I need to do some databse queries with that user ID, I'm passing the values as : Context.Items.Add("UserID",TempUserID); Context.Items.Add("Veri...more >>

Web Control vs. html "run as server" for setting password from coo
Posted by Andre Ranieri at 2/18/2005 10:41:06 AM
I'm trying to create a login page for customers to log into our corporate website, our presidents naturally wants the user and password fields to populate from a cookie so the customer doesn't have to type their credentials every time, this seems like a pretty common thing. However, when I tr...more >>

Dynamically created directory not recognized by web server
Posted by encapsul at 2/18/2005 10:25:02 AM
With XPpro, I am programmatically creating sub-folders within the virtual directory of my app. I programmatically set read/write permissions and then successfully write some files to the directory. All of this works fine. But when I try to browse the new directory through IE, it does not se...more >>

How to Stretch DataGrid at Runtime?
Posted by Tyrant Mikey at 2/18/2005 10:10:21 AM
I ahve a page that contains a DataGrid control that is offset from the left-hand side of the page by about 100 pixels. What I want to do is stretch the DataGrid to fill the remainder of the page width as the user resizes the window. I have tried the following, to no avail: <SCRIPT language=...more >>

Sysntax Error
Posted by Rudy at 2/18/2005 10:03:03 AM
Hello All! I'm coding my UPDATE button on my data grid. Getting a syntax error, can't seen to find it. Hope you can help Thanks!!! Rudy Public Sub grdProducts_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles grdProducts.Upd...more >>

Datagrid and sorting.
Posted by Alejandro Penate-Diaz at 2/18/2005 9:53:23 AM
when I uncheck the "Create columns automatically at run time" checkbox in the Property Builder and insert all the bound columns of my datagrid I loose the ability tu sort my columns, before my column headers were hyperlinks and now are plain text. any ideas? alejandro. ...more >>

VB Scripting CreateObject Client Side Object
Posted by ShepardBerry at 2/18/2005 8:59:02 AM
This may be a dumb question, but I'm not finding anything specifically what I'm looking for. Still kind of new to .NET as well. What I'm trying to do that I know I could do in VB6.0/ASP is to create a client side object set some properties and have it run some code. I know that in VB6/a...more >>

Spawn New Browser Using LinkButton Control
Posted by nwa at 2/18/2005 8:55:33 AM
Using the LinkButton control on a web form, how can I make the clicking of it open a new browser instance? I know how to do it with the normal anchor tag, but not this ASP.NET control. I need the clicking of the LinkButton to call the click event handler to execute some code, then redirect ...more >>

Q: remove a certain string in string
Posted by JIM.H. at 2/18/2005 8:21:09 AM
Hello, I have a string and I want to remove only certain string, if exits. Here is an example: “ABC,FCG,XXX,FFA”, I need to remove XXX and keep the rest in the string, how can I do that? Thanks, Jim. ...more >>

Long running process and wait message:
Posted by probashi at 2/18/2005 8:13:49 AM
Hi I have a Business Component (.NET DLL) that takes about 45 to 60 seconds to calculate some data based on some input parameters. I am calling this component from ASP.NET. While the component is working on getting the data, I want to show some sort of wait message to user. What is the best w...more >>

Crystal Reports viewer not moving past first page
Posted by nathansearle NO[at]SPAM eversheds.com at 2/18/2005 8:00:31 AM
Hi I have an ASP.Net application that uses the CrystalReportViewer control. Due to needing to display several reports via the control I set the ReportSource property in code, followed by setting call the DataBind method. The control displays the first page of my reports fine, but clicking th...more >>

Custom Paging with a Datagrid
Posted by ager NO[at]SPAM g.com at 2/18/2005 7:22:43 AM
Greetings, I have a problem that I am trying to work through. Any help would be appreciated. I have an asp.net application that uses framesets. It has a banner frame, contents frame, and a main frame. I have a datagrid that is displayed in the mainframe. I would like to use custom paging wi...more >>

Databinding DateTime fields
Posted by Alejandro Penate-Diaz at 2/18/2005 7:04:08 AM
Hi. I am binding a datagrid to a sql table that has a DateTime field, this DateTIme field only has information about date and not about time, but my datagrid shows date and time and the time is always 12:00:00 AM. How can I remove this wrong time from my datagrid? Thanks, Alejandro. ...more >>

CULTUREINFO, how is it used by ASP.Net
Posted by Cammie Watson at 2/18/2005 5:47:04 AM
We have 2 web servers that seem identical, the same version of 2 applications are installed (Web / Windows), they utilize the same SQL server and have the same regional settings. However, Server B causes a “CAST to date” error from our web application., windows is fine. We have a tes...more >>

Problem referencing other classes from ASP.NET code behind class
Posted by Ian Meakin at 2/18/2005 5:23:03 AM
I have a page called admin.aspx and it uses admin.aspx.cs as it's code behind file. When developing the application on my localhost using VS.NET i reference thsi file using codebehind="admin.aspx.cs". I now have to upload it to a production server which i have no control over and has no bin ...more >>

dropdownlist - using as a picklist
Posted by Paul Owen at 2/18/2005 5:15:02 AM
Hmm, nobody seems to want to answer any of my questions, but here goes again! I have a Detailview control that is bound to a data source. Within the Detailview control I have a number of dropdownlist controls that I want to list available options but will be bound to the Detailview control. I...more >>

cultureInfo, where is it read from?
Posted by Cammie Watson at 2/18/2005 4:57:03 AM
We have two web servers that seem identical, regional settings etc. Although 1 does not run our app correctly, causing a "CAST to date" error to return from the SQL server (which both access) Both have IIS installed and the same version of our application. We have a test application that ...more >>

Passing &nbsp in drpdown dataset
Posted by Vikram at 2/18/2005 4:48:30 AM
i am adding a row in dataset , in which i want to add &nbsp; (space chracter for html) and then want to bind dataset to asp.net dropdown list box. But & automatically converted to &amp chracter. Is there any way by which &nbsp; can be retained as it is when dropdown throws the html part. ...more >>

using ado between pages
Posted by Spencer H. Prue at 2/18/2005 4:27:03 AM
Hello, I have two.aspx files and so far there are two pages on my web app. On one page I use a button event to create a dataset and fill/update it from the MSDE. I have dataadapter, a dataconnection and a dataset on the page with the button on it. I would like to access the data from the ot...more >>

Uploading files larger than 4Mb
Posted by Jorge Ribeiro at 2/18/2005 3:41:07 AM
Hello I've an ASP.NET Web application that has one form where the user can upload a file to be sent and saved on a database. The app sends the file via DIME attachments and SOAP envelopes to a Web Service that reads that package and records the file on a specific record in a database. It a...more >>

Infragistics on Hosted Server
Posted by Chris Podmore at 2/18/2005 3:13:01 AM
I have a problem with the Infragistics web controls on a hosted server. I get Security Exception errors. It appears that my site doesn’t have the correct privileges, how can I overcome the problem without getting the service provider to make changes? I don’t know if the service provider wi...more >>

Date error in ASP.NET
Posted by Cammie Watson at 2/18/2005 2:41:04 AM
Hi there, I wasn't sure where to post this problem, but I think It make most sense in this group. We have a new development W2K3 server with IIS and we have installed our home grown 'Leave Booking' ASP.NET application on it. When we run our application the dates are being displayed in A...more >>

why won't this control get added to the table cell?
Posted by RN at 2/18/2005 2:09:05 AM
I have a table cell in which I add a few things, but I want a few HTML line breaks (the <BR> tag) to separate these things. Sounds simple but I can't get it to work. Dim litBR as New Literal litBR.text = "<BR><BR>" MyTableCell.Controls.Add(CheckBoxControl) MyTableCell.Controls.Add(litBR) M...more >>

ASP.NET app required files??
Posted by Arsalan at 2/18/2005 1:41:19 AM
What are the required file which have to be put on server for the ASP.NET application to run properly ? Should i upload the bin directory to the server? or do i need to upload other files too? ...more >>

CPU Usage is 100% while executing Web Application
Posted by Sivaraman.S at 2/18/2005 1:33:06 AM
Issue: when I am excuting an ASP.NET page which contains Nested tables and a few Hidden fields. I am getting the problem of my CPU usage becomes 100% and my application could not load. I am using Visual Studio Version 2003 Language Used VB.NET Please reply me at the earliest ...more >>


DevelopmentNow Blog