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 > july 2003 > threads for thursday july 24

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 31

Finding Grid controls
Posted by Rick Spiewak at 7/24/2003 6:26:58 PM
I have been unable to find an elegant way to navigate to the controls in a DataGrid in edit mode in order to get the changed values. I end up with a lot of code like: e.Item.Controls(5).Controls(0) to get at a simple textbox, or: e.Item.Controls(5).Controls(1) if there is a multiline t...more >>

How to insert dynamically generated HTML into the <body> of an ASP.NET page?
Posted by Rick Spiewak at 7/24/2003 6:22:40 PM
I need to generate a "buy" button as part of an ASP.NET page - this consists of a small HTML form with hidden fields, conforming to the requirements of a merchant credit card processor. PayPal is similar. I'm succeeding in doing this by using Writer.Write to emit my HTML, at least as far as ge...more >>

interrogating database for field names/datatypes?
Posted by kennethfine NO[at]SPAM hotmail.com at 7/24/2003 5:58:55 PM
I'm working primarily in ASP and transitioning to ASP.NET. This is probably entered to the wrong group but I'm not sure of what precise database technology I'm referencing. I have written a decent little "codewriter" utility that writes web admin forms, stored procedure code, and the ...more >>

how to Align text left & vertical align middle
Posted by Kay at 7/24/2003 5:50:46 PM
Hello, I have a asp lable control, which I use to display text in, I would like to have the text display aligned in the center and vertical alignment left however when I add the following style to the lable it does not work <asp:label id="lblBanner" style="text-aligh:left;vertical-align:midd...more >>

Creating TemplateColumns for a grid at runtime
Posted by Jeremy Chapman at 7/24/2003 5:17:40 PM
At run time I've added a TemplateColumn to a DataGrid. Now I'm trying to add a Table control to the TemplateColumns's HeaderTemplate and ItemTemplate. In essence, I'm trying to do in code, the equilavent of this html: <asp:TemplateColumn> <HeaderTemplate> <asp:Table> ...more >>

using Server.MapPath
Posted by Kian Goh at 7/24/2003 5:11:55 PM
Hi, Can somebody tell me why can't I use string strPath = Server.MapPath(Request.ApplicationPath); in protected void Application_Start(...) It compiles ok but an unhandled exception occurred during the execution. Exception Details: System.NullReferenceException: Object reference not set t...more >>

DataGrid Custom Paging using SQLDataReader
Posted by Paul Hobbs at 7/24/2003 4:39:07 PM
Hi Everyone, I am trying to implement a DataGrid that uses Custom paging, but the = DataSource is a SQLDataReader, not a DataSet. I have seen examples that = use the Fill method of a DataAdapter to only retrieve a page of data, = eg: daCustomers.Fill(dsCustomers, (PageNum - 1) * intPageSiz...more >>

Implement a Please Wait Page
Posted by Stephajn Craig at 7/24/2003 3:26:28 PM
I have one page that may take a while to process on the server, and I'd like to implement a please wait message on this page when it posts back to the server and does its business. The page is an ASP.NET webform that contains a Web User Control. The Web User Control is doing all of the work p...more >>



Unable to delete dir even after unload/remove ...
Posted by Guru Prasad at 7/24/2003 3:14:48 PM
Does ASPNET process hold onto the app dir even after the app is "unload"ed and "removed" ( via IIS manager ) ? I am unable to delete a dir which was formerly a basedir for a webapp, until i restart aspnet process. Why is this so ? This makes things complicated during uninstall of a web applica...more >>

ASP.NET not using enough memory?
Posted by scottfoley NO[at]SPAM bigfoot.com at 7/24/2003 3:13:30 PM
I have a W2K asp.net web site (ver 1.0.3705 ) that does not appear to be using RAM as well as it could be. Looking at the performance counters I see the following: aspnet_wp.exe process Mem Usage 100Meg Virtual Memory size 80Meg Virtual bytes 576Meg Pages Faults/sec 100 P...more >>

What factor determine a session to end?
Posted by Kian Goh at 7/24/2003 3:01:03 PM
Hi there, Just wonder what factor actually determine a session to end? What happen a user close the browser or switch to other website? Does the session end immediately or 20 minutes later? (20 minutes defined in Web.config) Thanks, Kian ...more >>

Alter Rendered HTML for page
Posted by ian.kershaw NO[at]SPAM hyndburnbc.gov.uk at 7/24/2003 2:43:04 PM
I'm trying to implement XHTML standards in my ASP.NET web pages but whenever I use web controls I get problems because of the very strict nature of W3C XHTML (transitional version is picky but strict1.1 very severe!) e.g. align="Center" fails validation because of the capital "C" - this makes...more >>

List items in a folder
Posted by James Rasmussen at 7/24/2003 2:20:23 PM
I would like to be able to list a directory (or something like it)of the contance of a certian folder. How can this be done on a web page? TIA Jim ...more >>

JavaScript Error: 'Page_Validators' is undefined
Posted by DesignerX at 7/24/2003 2:15:08 PM
has anyone seen this javascript error within IE when running their app? If so do you know the cause? Thanks. stan ...more >>

forms authentication not authenticating
Posted by Greg Burns at 7/24/2003 2:12:00 PM
I have built a web app that uses forms authentication. There isn't a "remember me" feature (i.e. the authentication cookie is not permanent). When you close the browser, and open a new one, you must log in again. This is the behavior I expected. I just discovered that if I have a browser win...more >>

Why all the server hits?
Posted by anakin NO[at]SPAM unitedsoftworks.com at 7/24/2003 1:59:37 PM
It seems like ASP.NET and Visual Studio.NET have a ravenous desire to keep banging on the server for everything. Granted, it makes it pretty easy to do this, but, why keep banging on the server so much for stuff that could be better done in Java Script? Then, you have all these games with Quer...more >>

Add new row in DataGrid
Posted by Ruby at 7/24/2003 1:39:08 PM
Hi all... I have a datagrid in web form binded with datasource, and I want to make a new row whenever I press enter in last row and last column with insert state. Is that posible to make that kind of event? :) Thank alot Ruby ...more >>

might as well ask.....
Posted by Ryan Moore at 7/24/2003 1:35:17 PM
Is there any way to load only a certain section of a page in ASP.NET without using a FrameSet, preventing the full page refresh? thnx ...more >>

DataList output is producing a blank table?
Posted by bacile99 NO[at]SPAM yahoo.com at 7/24/2003 1:07:31 PM
I am somewhat new to ASP.NET and I am probably overlooking some basic rule that's causing my error. Anyways, here's the scoop: I am using a DataReader to access a SQL stored procedure. I want the result set from the DataReader to be dumped into a DataList and displayed on the page. I already...more >>

Advice on label text concatenation during databinding
Posted by GM at 7/24/2003 1:00:41 PM
I am building the text for a resume section label in databinding with 20 or so data columns using a series of 20 or so code snippits like the following: If e.Item.DataItem("EmployerDisplay") And e.Item.DataItem("Employer") <> "" Then Sections.Text += "<BR><B>Employer</B>: " & e.Item.DataItem...more >>

ASP.NET parameters in URL ??
Posted by Jurjen de Groot at 7/24/2003 12:46:20 PM
Hello, What's the deal with the ? in a URL ? I know it is used to transport some parameters but how can the aspx page retrieve those values ? for instance WebForm1.aspx?ID=12345 How to get the ID value, I suppose it has to be retrieved in the Page_Load event, but how ? TIA Jurjen...more >>

DropDownList.SelectedValue not changing
Posted by Jesse at 7/24/2003 12:45:14 PM
I have a DropDownList that is bound and properly filled from my DataSet when the page loads. but when the I try to retrieve any value I always get the first value...Any ideas? ...more >>

Hide page name in browser ?
Posted by Jurjen de Groot at 7/24/2003 12:40:14 PM
Hello, Is there someway to hide the name of the page in the browser? When a page is display the full address is shown like http:\\www.mysite.com\Default.aspx, is there some setting (maybe in IIS / ASP.NET or something) so the page is shown like http:\\www.mysite.com\ and not showing aspx and ...more >>

Resizing Control
Posted by cj at 7/24/2003 12:29:28 PM
I've created a web server control and have created a designer class to give it design time appearance, but whenever I place the control on a web form, I can't resize it at all. Does anyone know how I can allow my control to be resized ? Regards, CJ ...more >>

how to call function/sub from the image
Posted by cw at 7/24/2003 11:53:15 AM
Hi group, How to call the function from the image click? I'm using the Img1.attributes.add("onclick", "fnName") to add the onclick attribute. In the html code, i also set the img1 to run at server. However, when i click on the image on run time, it gives me the script error by stated that "fn...more >>

HowTo export the VisualStudio Project Code to HTML Viewable like IBUYPORTAL
Posted by Andreas Klemt at 7/24/2003 11:32:55 AM
Hello, can I export my code in VisualStudio to HTML like IBUYPORTAL? Thanks, Andreas ...more >>

post XML?
Posted by Salim Afþar at 7/24/2003 11:22:00 AM
Hi, Can I post a XML file or data to a site with .NET? Thanks in advance, Salim ...more >>

Multiple elements within a datagrid querystring
Posted by Carl Howarth at 7/24/2003 10:58:19 AM
Hi, I need to bind data to a datagrid and have a custom hyperlink column that has multiple elements in the querystring: Page.aspx?1=Hello&2=Goodbye... The query string needs to be populated from different values in the database. How can I therefore allow for this in the template rather t...more >>

dynamically created control is not being validated
Posted by DesignerX at 7/24/2003 10:28:18 AM
I have a user control that contains a custom control, both are loaded dynamically. The custom control has a simple required field validator and a text box to validate. When the submit button in the user control is pressed the textbox does not seem to be validated. How do I even begin to ...more >>

Include file
Posted by JH at 7/24/2003 10:26:34 AM
I'm new in the .NET world, so sorry if this is a faq. In classic ASP I often use a include file with some standard functions, ex. formating a string an so. How do a do this i .NET ?? In my test code below, I submit a form with a textbox, use the function "format_string" to change the value. I ...more >>

Looping through rows in a DataGrid
Posted by Diva at 7/24/2003 10:15:55 AM
Hi, I have a data grid in my application. It has 20 rows and I have set the page size as 5. I have a Submit button on my form and when I click on Submit, I need to loop through the rows in the datagrid. Using the items collection just gives me the 5 rows that are displayed on the screen. ...more >>

Pass Values to another page.
Posted by Martin Tully at 7/24/2003 10:02:09 AM
I am trying to a create a page that will query a SQLDB get customer information and then pass this information on to another page creating almost like a mail merge letter. I can get the information no problem using a repeater but how do I pass <%#container.DataItem("Value1")%> to another page. ...more >>

Capture client side text change event for TextBox
Posted by Feng at 7/24/2003 9:33:23 AM
I have a web form A that contains a TextBox. A pop up window started by my form A will return a value and put it into the TextBox. What I need to do is that when this happens (when the value gets into the textbox), capture this client side event and fires up a JavaScript function to do my ...more >>

Junior question, Please help
Posted by guzj at 7/24/2003 9:20:30 AM
Hi Folks, I installed Duwamish7.0 in my computer, if I run it in VS.NET, system asks me to download default.aspx as file. if I browse http://localhost/duwamish7vb then system shows me the actually code in default.aspx. how can i solve this problem? Thanks in advance! Kind regards, Guzj ...more >>

ASP.NET pages stopped working
Posted by Mark E at 7/24/2003 6:23:35 AM
Hi Group, I have a new Dell server that has the .NET Framework 1.1 installed on Windows 2000 SP 3. All was well until I installed Project Server 2002. All of a sudden my ASP.NET pages stopped working. When I try, I get the following error: <START> Runtime Error Description: An ap...more >>

data grid question
Posted by Mike P at 7/24/2003 3:48:10 AM
I'm binding a data source to a data grid : objConnection.Open(); dgHistory.DataSource = objCommand.ExecuteReader(CommandBehavior.CloseConnection); dgHistory.DataBind(); The question I have is, if the data source is empty how do I test for this? I want to print to the screen using a la...more >>

count rows in dataset...
Posted by John Pether (john NO[at]SPAM at 7/24/2003 3:29:56 AM
I have the following code which loads a dataset into a datagrid: <code> ' Obtain Link information from Links table ' and bind to the datagrid control Dim links As New DNSite.LinksIndexDB() ' DataBind Links to DataGrid Control DG.DataSource = links.GetLinks(CatID) DG.DataBind() ...more >>

Can I compile regular ASP-code in to an aspx-file?
Posted by Göran_Carlefyr at 7/24/2003 3:02:21 AM
Hi everyone, i've heard that aspx-files can be compiled code so that the webserver just have to deal with the code once, is that true? I'm a complete newbie to .NET, i've never made anything in ASP.NET but i've been coding ASP for approx. 3 years. The reason I'm asking is because I have ...more >>

programmatic IISconfiguration via ASP.NET application
Posted by Michael Porcelli at 7/24/2003 1:29:59 AM
Hello, I am using ASP.NET to create a web-based application that allows users to create their own web-site on our server. A requirement is that the users have their own domain and particular IP address. A key to getting this to work is to allow the web application to create a new web root o...more >>

back button problem
Posted by Hypo at 7/24/2003 12:03:48 AM
I added a 'Back' button to my page, and wrote 'OnClick' code something like this: Response.Write("<script>history.go(-" + iDepthIndex.ToString() + ");</script>"); But, it dosnt work! Effect is that browser navigates to desired page as expected and go back from where it started! But, th...more >>

Starting winword.exe
Posted by Richard Loupatty at 7/24/2003 12:01:07 AM
I tried to start winword.exe from an aspx (after granting things with dcomcnfg) and i can see winword.exe showing up in the taskmanager, but i don't see the word-application itself. I did set the visibility, true. Hope someone can help me. Richard Loupatty ...more >>


DevelopmentNow Blog