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 > august 2007 > threads for friday august 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

Uploading Picture to Database - Error
Posted by Gabe Matteson at 8/24/2007 11:36:17 PM
'GRAB CONTENTS OF UPLOADED FILEDim intFileLen as Integer Dim objStream as streamintfilelen = txtfileupload.PostedFile.ContentLength Dim arrFile(intFileLen) as ByteobjStream = txtfileupload.PostedFile.InputStreamobjStream.Read(arrFile, 0, intFileLen)'INSERT DATA INTO DATABASEDim objSQLConn As...more >>

Hierarchical control with check boxes?
Posted by Olav at 8/24/2007 11:25:12 PM
I need a control to display a hierarchical tree of data and each node in the tree should have a checbox to select / unselect that part of the tree. Selecting / unselecting a top node should select / unselect all the children. What kind of control is best fit for this? Any samples? Olav ...more >>

Acquire control in TemplateField by Id.
Posted by zlf at 8/24/2007 9:16:53 PM
Hello, I have a GridView with TemplateField. I want to get the <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> in TemplateField in programmatic way. e.g: GridView1.TextBox1 or GridView1.FindControl("TextBox1"), but neither of them works. Please help me. <asp:GridView ID="Gri...more >>

FormView: Can we have one template for EditItemTemplate, InsertItemTemplate and ItemTemplate?
Posted by Max2006 at 8/24/2007 5:25:04 PM
Hi, I have a form that the contents of EditItemTemplate, InsertItemTemplate and ItemTemplate are the same, so repeating the same content 3 times is redundant. Is there any way to share all the contents? Thank you, Max ...more >>

Moving existing application from using Session State InProc to SQL
Posted by Alex at 8/24/2007 4:29:31 PM
Hello, This is a follow-up to my earlier post about having issues with our application pool recycling. We currently use Session State InProc, but if I were to choose to move the existing application to SQL instead, would the only change in the application be the SessionState setting within...more >>

CustomErrors for a 404 code
Posted by David Lozzi at 8/24/2007 3:36:12 PM
Howdy, I'm using the following code, asp.net 2.0 <customErrors mode="On" defaultRedirect="oops.aspx"> <error statusCode="403" redirect="notfound.aspx" /> <error statusCode="404" redirect="notfound.aspx" /> <error statusCode="500" redirect="oops.aspx...more >>

elements not loaded before RegisterStartupScript
Posted by Crazy Cat at 8/24/2007 3:19:34 PM
In the page load event of my user control I create and register a startup script with RegisterStartupScript. I am passing two controls (using the ClientID property of the controls) into a function in the startup script and I get an undefined error on one of them (an image control) while the othe...more >>

GridView with DataTable as data source and RowDataBound
Posted by Tim at 8/24/2007 3:19:10 PM
I'm using a GridView with its DataSource property set to a DataTable. During the RowDataBound event, the first row of the DataTable is reported as a DataControlRowType.Header instead of DataControlRowType.DataRow. How do I change this behavior? Right now, I ignore the RowType and just assume a...more >>



[Global.asax] how to manage two or more of them?
Posted by teo at 8/24/2007 3:16:45 PM
I have two .aspx pages they use two different Global.asax files when I "Publish" the first .aspx page, its Global.asax is transformed in App_global.asax.compiled App_global.asax.dll to put in the Bin folder and when I "Publish" the second .aspx page, its Global.asax is transf...more >>

Validator control takes up space
Posted by David C at 8/24/2007 2:47:58 PM
When I use a validator control on a FormView it takes up space when screen first displays. Is there any way to avoid this and only have it take up space when there is an error? Thanks. David ...more >>

what is the difference between AJAX, ATLAS and webparts?
Posted by ma at 8/24/2007 2:46:26 PM
The subject says all! Where can I read about their differences and which technology is suitable for which application? Regards ...more >>

Sessions timing out quickly despite very high timeout set in web.config
Posted by Alex at 8/24/2007 12:58:41 PM
Hello, We have a large asp.net writtin in VB.Net 2003, and for some reason the sessions have started timing out very quickly, like 5-10 minutes in some cases. In web.config we have the SessionState timeout set at 720 minutes, but this doesn't seem to help. What we're seeing is users wor...more >>

Impersonation and Performance
Posted by KittyHawk at 8/24/2007 12:52:20 PM
I am in the process of migrating an II6 environment from a single server to a network load balanced system. Thus, I am using a virtual directory on a UNC share to house the dynamic data that the web farm will access. Since ASP.NET runs as a local account on the IIS servers, I have to use i...more >>

can you embed external source (http://yoursite.com) into .net page?
Posted by Big Moxy at 8/24/2007 12:39:57 PM
Hopefully this question applies to both VB.NET and C#... I would like to know if it is possible to embed the source of a URL into a .NET page. I would like to avoid using an IFRAME where I could simply say src="http://yoursite.com". Thank you! ...more >>

SqlDataSource UpdateCommand problem
Posted by David C at 8/24/2007 12:35:25 PM
I have aspx web page with a GridView that displays data from a SqlDataSource view that combines 2 tables to show information. It has an Edit feature and the SqlDataSource has an UpdateCommand text to run a stored proc that has 2 UPDATE statements (1 for each table) as shown below. When I cli...more >>

Help: question regarding webform
Posted by John at 8/24/2007 11:51:36 AM
Can somebody tell me why webform is not WYSIWYG ? In that case, should I use CSS to place the controls? Thanks, ...more >>

Body.Attributes.Add
Posted by mazdotnet at 8/24/2007 11:43:37 AM
Hi, I have a master file with the following setting <body runat="server" id="Body"> and in the .cs I have Body.Attributes.Add("onload", "menuCurrentPage('current','navlist');"); Now in one of my content files I want to add an additional parameter to the onload HtmlControl body = (HtmlC...more >>

Hiding a grid view?
Posted by Rob Meade at 8/24/2007 11:11:12 AM
Hi all, I have a simpler web form where I enable the user to perform a search against our Index Server. I am using ASP.Net 2.0 and AJAX. When the user clicks the button the search is performed a GridView is populated with data and is displayed to the user on the screen. I also have a...more >>

Trouble joining 3 tables
Posted by JJ297 at 8/24/2007 10:56:30 AM
I'm getting incorrect syntax error. Can someone tell me what I'm doing wrong, here's my stored procedure: select Titles.Title >From Titles Inner Join Titleclassification on classifications.classificationid = titleclassification.classificationid Inner Join titlecassification.titleid ...more >>

referring instantiating page
Posted by Aamir Ghanchi at 8/24/2007 10:27:45 AM
Hi, would I refer the aspx page from the class which has been instantiated in that aspx page. say I have Default.aspx. In the code page Default.aspx.cs I instantiate a class as MyClass mc = new MyClass() and in the constructor or any other method of MyClass I need to refer the page Def...more >>

How can I do this?
Posted by ma at 8/24/2007 10:10:21 AM
Hello, I am new in ASP.NET. I read several books and know the concept but since I am a C++ programmer I am lost in programming methodology in ASP.NET. Here is my problem: I have a page which consists of two sections. A tree view on left and a detail view on right. The tree view w...more >>

Login / auth cookie problem after migrating to .NET 2.0
Posted by jazzdrums at 8/24/2007 9:56:52 AM
Hello, we have migrated our website from .NET 1.1 to .NET 2.0. After this, some of our users are unable to log-on our site, while for the majority of them there's no problem. We're using a standard procedure to login (see below). The Request.Cookies[FormsAuthentication.FormsCookieName] re...more >>

XMLHTTP call in Javascript to C# Webservice passes null parameters
Posted by magister pips at 8/24/2007 9:42:36 AM
Hello, I have encountered some strange behaviour when using the XMLHTTP Request object in Javascript to return xml from a C# Webservice Method. I create a SOAP envelope and send it off to the Webservice, which I have debug points in, which when hit I can see that all the parameters are coming t...more >>

ASP.NET binding to DataReader
Posted by Andrew Robinson at 8/24/2007 9:37:37 AM
I have a large collection of DAL code that returns lists of entities (List<entity>) for general binding operations usually to a GridView via an ObjectDataSource. I think about binding directly to a SqlDataReader but how do I insure that the Reader and its associated Connection both get closed?...more >>

Having & in folder name
Posted by David C at 8/24/2007 9:27:26 AM
I am getting the following error trying to display a file in a web page. Source: mscorlib An unhandled exception occurred: Message: Could not find a part of the path 'D:\Listings\Hartwig Blvd - 475\Maps &amp; Floor Plans\GenerateThumbnail.txt'. I assume it has something to do with th...more >>

asp.net wizard?
Posted by Mike at 8/24/2007 8:22:07 AM
I'm helping out on a web app and the developer that created the aspx = pages is using <asp:wizard> on the form. There are dropdowns, labels, = buttons, etc within each wizard.=20 How can I find a button in one of these wizards? I'm using something = like Button btn =3D (Button)Wizard.Wizard...more >>

Changing file in App_Code clears session variables
Posted by E Barr at 8/24/2007 7:38:15 AM
Hi, When working in debug mode of Visual Studio 2005, whenever I make a change to one of my files in the App_Code directory, all of my session variables get cleared. This is annoying because it means I have to start the application from the beginning by re-logging in. The files in my App_Code dir...more >>

Problem with Events in UserControls dynamically added to AJAX UpdatePanel
Posted by JacekDr at 8/24/2007 7:27:53 AM
Hello, I've got the following problem: I want to add and remove dynamically controls to UpdatePanel. In my user control I have a button, but when I click it I get AsyncPostback and Event for ButtonClick in UserControl doesn't fire. <asp:ScriptManager ID="ScriptManager" EnableViewState="tr...more >>

Using a Web Service call within a VB Module
Posted by Kirk at 8/24/2007 6:54:20 AM
I have a WS called "IWeb", which I define within the page class like this: Dim service As IWeb.WebService I then have a button that calls the web service like this: Dim header As IWeb.IWebAuthendicationHeader = New IWeb.IWebAuthendicationHeader() Dim strName As String = Request.ServerVar...more >>

Open a PDF in a new window?
Posted by Pedro at 8/24/2007 4:32:00 AM
Hello, I need to open a PDF file in a new window in ASP.NET 1.1. The problem is when I try to save the open PDF file the suggested name is name of my new window (ShowDocument -> ShowDocument.pdf), how can I set it up so it can be the filename of the file? I am doing the following, on the ...more >>


DevelopmentNow Blog