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 > october 2006 > threads for tuesday october 17

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

Partial caching (a UserControl) with file dependency
Posted by Rolf Welskes at 10/17/2006 11:38:13 PM
Hello, I want to partial cache by using a UserControl. Now I have a file dependency. In msdn I see it is not possible to do it the same way as in a page. The only information is to create a file dependency and assign it to Dependency property. But UserControl has no Dependency Propert...more >>


VS2005 and VS2003 remoting problem when client is WEB-application
Posted by V&G at 10/17/2006 10:40:49 PM
Hello all, I have following configuration for remoting application: Server side; was wrote in VS2003 Shared library; was wrote in VS2003. Contains shared objects Client side; was wrote in VS2005. I use WEB-application as a client. Each call to remote objects executes with some object from ...more >>

for the sake of args
Posted by rodchar at 10/17/2006 10:07:02 PM
hey all, i have 2 tableadapters. is there any way to have 1 generic routine that will return the correct datatable if i passed in a parm indicating which tableadapter i want instanced, filled, and returned? thanks, rodchar...more >>

httpHandlers path mapping error
Posted by royston at 10/17/2006 8:15:35 PM
Hi, I have wrote a httpHandler module which rewrite the users url. In Web.Config <httpHandlers> <add verb="*" path="/*/*.aspx" type="Sample.URL.PageHandler,Sample.URLManager"/> </httpHandlers> For example http://localhost/royston/index.aspx is mapped to http://localhost/i...more >>

Display Links from XML file
Posted by shapper at 10/17/2006 7:01:39 PM
Hello, I have a XMl file with the following format: <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns = "http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode> <siteMapNode url = "~/Default.aspx" title = "Home"/> <siteMapNode url = "~/C...more >>

New .net 2.0 syntax...namespaces? Shared methods?
Posted by Daniel at 10/17/2006 5:53:58 PM
Hey guys I had a site in .net 1.1 and have just moved it to .net 2.0. A strange thing, in .net 1 when you create a project it puts it in a namespace, in 2.0 it doesn't? Also when in a namespace one form can't access methods in another, and when not in a namespace same issue. However...more >>

Add ie toolbar functionality to vb.net webbrowser control.
Posted by ASP Developer at 10/17/2006 5:40:02 PM
Is it possible to utilize the ie toolbars with a web browser control on a vb.net form? Any help would be greatly appreciated. ...more >>

Login Related Problem
Posted by Samuel Shulman at 10/17/2006 5:28:54 PM
Hi all 1. When allowing a user to change their username the system still has the original username in the 'User.Identity.Name' and this property is Read Only 2. Related question how can I set the user as logged without using the 'FormsAuthentication.RedirectFromLoginPage(txtUsername.Text,...more >>



Upload File Size
Posted by asiva at 10/17/2006 5:24:01 PM
I am using <INPUT id="File1" type="file" name="File1" runat="server"> to upload file to the server. My Questions: 1. Is it possible to check the file size before the file is uploaded other than using Scripting.FileSystemObject ? 2. If answer to 1 is no, is it possible to check in the...more >>

Resource Editor
Posted by shapper at 10/17/2006 5:15:59 PM
Hello, Does anyone know a Resource (.resx) Editor software? It's just the one in Visual Studio 2005 drives me crazy. I tried to find something in google but no success. Thanks, Miguel ...more >>

asp:menu cssclass?
Posted by Kevin L. Kitchens at 10/17/2006 5:13:18 PM
Howdy... Been toying the the asp:menu object in order to dump the manually generated menu I've been using, however, I cannot seem to get the coloring to work properly. First off, what CSS tags should I be setting for how the menu is eventually rendered? spans? tables? td? div? In the...more >>

Create a XML file from Database
Posted by shapper at 10/17/2006 4:54:45 PM
Hello, I need to add a XML file from an Access database. Could someone tell me what would be the best approach? Thanks, Miguel ...more >>

Resizing an image read from SQL database
Posted by Blasting Cap at 10/17/2006 4:44:56 PM
I would like to try to see if an image uploaded to a SQL database is over a specific size, and if so, to resize it when it is displayed. The following is in the Page_load event. Dim strImageID As String = "10" 'Request the value of ImageID Dim data As New data Dim sql...more >>

ObjectDataSource UpdateMethod with integer collection
Posted by J055 at 10/17/2006 4:34:34 PM
Hi I have a method with the following signature: public bool UpdateSetAccounts(int[] items) { } How do I pass a collection of selected values in a ListBox to this ObjectDataSource UpdateMethod? I can pass the ListItemCollection in a ControlParameter, e.g. <UpdateParameters> <as...more >>

especially strange "The page cannot be displayed" error
Posted by spam1 NO[at]SPAM aleksiuk.com at 10/17/2006 4:28:33 PM
Hi all, I'm not new to ASP.NET but I'm trying to get a simple Hello World page going on IIS 6.0 on Windows 2003. I'm connecting from the local machine. It comes back with the standard "The page cannot be displayed" error page. Some points: - I get a normal response from a static .html f...more >>

Items showing up 2x in a listbox
Posted by Blasting Cap at 10/17/2006 3:59:11 PM
I have some code where I populate some items in a listbox. The code is: ListBoxDomesticExport.Items.Insert(0, "Domestic (Commercial)") ListBoxDomesticExport.Items(0).Value = "0" ListBoxDomesticExport.Items.Insert(1, "Domestic (All)") ListBoxDomesticExpo...more >>

reference a control
Posted by bruno at 10/17/2006 3:21:02 PM
A basic question: In a content page I access a TextBox from code behind with no problems (something like Me.MyField.Text="1"). This is the portion of aspx file : <asp:Content ID="secMessagge" ContentPlaceHolderID="cphFooter" Runat="Server"> <asp:TextBox ID="MyField" runat="server" B...more >>

Spaces in UNC paths
Posted by Luke - eat.lemons NO[at]SPAM gmail.com at 10/17/2006 3:10:33 PM
Hi, Could someone tell me the correct quotation to get around spaces in paths for: Server.MapPath("\\server\share\spaces in name.mdb") I know its bad practice to use spaces but unfortunately i cannot help this. Thanks, Luke....more >>

Remote Debugging Setup Revised
Posted by CK at 10/17/2006 2:59:50 PM
Hello All, I have been trying to setup remote debugging for web part development by running through the steps in the following documentation: Debugging Web Parts: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/sharepoint_debugwebparts.asp Debug Settings and...more >>

Redirect Page
Posted by shapper at 10/17/2006 2:48:58 PM
Hello, I am using the following code line in my VB code to redirect to another page inside my web site: Response.Redirect("Message.aspx") I am getting the error: The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way...more >>

Programmatically setting MasterPageFile for an @ Master
Posted by Greg Collins [Microsoft MVP] at 10/17/2006 2:27:52 PM
I'm looking to discover in what event I can programmatically set = this.MasterPageFile for a master page. Documentation states that this property must be set in the PreInit or = before, but master pages don't have a PreInit event -- just an Init = event. So what event is available to a mast...more >>

SiteMap Confusion
Posted by shapper at 10/17/2006 2:17:36 PM
Hello, I added to SiteMaps providers to my web site: <!-- Site Map --> <siteMap enabled = "true"> <!-- Site Map Providers --> <providers> <clear/> <add name = "SiteMapProvider_pt-PT" siteMapFile = "~/App_Data/Web.pt-PT.sitemap" ...more >>

sending parameter to UserControl, how?
Posted by Jeff at 10/17/2006 2:13:09 PM
Hey ASP.NET 2.0 This the ObjectDataSource in my UserControl, <asp:ObjectDataSource ID="odsMessage" runat="server" SelectMethod="ExecuteMessage" TypeName="AH.MyNetwork.BLL.Network.Message"> <SelectParameters> <asp:ProfileParameter Name="user" PropertyName="UserName" Type...more >>

Simple Timeout Question
Posted by James at 10/17/2006 2:07:45 PM
How can I see/set the timeout for a postback? I have a button click event which loops through a DataSet and calls a stored procedure for every record in the dataset. This can be a very large number, and locally it's working fine. However, when I move to our development server, the exact sam...more >>

Gathering info on securing IIS6
Posted by Edwin Knoppert at 10/17/2006 1:18:25 PM
So far i had some info that IIS6 is much better then 5 and before. For discussion over here i need to gather some information how to secure our IIS6 webserver and data. Suggestions? (Been here) http://technet2.microsoft.com/windowsserver/en/technologies/featured/iis/default.mspx http:...more >>

reading file in my site
Posted by perspolis at 10/17/2006 1:08:23 PM
Hi all I have a site and I want to to read content a file in my site. I can't use FileStream because it use absolute path or relative path. I know I can use HtttpFileRequest..but I want t o know is there a better and faster way to do this?? thanks in advance ...more >>

File path and Master page problem
Posted by Samuel Shulman at 10/17/2006 12:38:07 PM
In the MasterPage an images is mapped as follows: ../Images/XYZ.gif and that works fine as long as the forms using this master file are related to the image file in the same way But I have another sub folder where I have more forms using the Master Page and there the image is not found so I...more >>

hosting a .NET web application on a LINUX server
Posted by mw at 10/17/2006 12:15:47 PM
Hi, Is it possible? I have an application built on the 1.1 .NET framework with a SQL Server 2000 backend. The LINUX server in question hosts php-based sites with MySQL. I just need a quick answer as to whether or not LINUX is capable of hosting a .NET application with a SQL Server 2000 ba...more >>

Running .sql script in VS
Posted by VB Programmer at 10/17/2006 12:08:47 PM
Someone gave me an SQL script to run against my SQL Express database. It creates some tables, etc... What is the best way to run this script in the Visual Studio interface? Thanks. ...more >>

Problem with Binding
Posted by Maury at 10/17/2006 11:50:04 AM
Hello, I built an user control that shows an object (TestObj) of an application, in the user control I created a public property (of type TestObj) to change the current displayed object ... After this I created another user control with a datalist which contains the user control for TestObj ...more >>

Leaking Database Connections from ASP.NET 2 Web App
Posted by Sierra at 10/17/2006 11:47:01 AM
Problem: Database connections are not being reused properly. SP_WHO2 shows upwards of 200 connections being created per page request. Most connections exist for 60 seconds then close without being reused. A few connections are reused. SQL System Profiler shows many “Audit Login” and man...more >>

HttpHandler - Passing a parameter
Posted by shapper at 10/17/2006 11:44:56 AM
Hello, I created an HttpHandler class, compiled it and tested it. It works fine. I added an HttpHandler in my web.config file as follows: <httpHandlers> <add verb = "*" path="MyHandler" type="MyNM.SiteMap, MyNM" /> </httpHandlers> However, I now need to pass a parameter to my h...more >>

Client browser sending wrong ASP.NETSessionid in a cookie
Posted by Niko at 10/17/2006 11:40:33 AM
Hi I have a big problem with some browser setting wrong ASP.NETSessionid in a cookie, and the result is that asp.net 1.1 always assigns new session to the client. I checked what is going on and I noticed that the broswers set the sessionid inside quotation marks and I guess that ASP.NET 1.1...more >>

File-New-Window creates shared session variables
Posted by BillE at 10/17/2006 11:31:16 AM
My application relies on session variables to keep track of the currently selected customer. When a new window is opened using File-New-Window in Internet Explorer, the session variables are shared between the two instances of IE. When this happens, various problems occur, such as orders ...more >>

web.config tools
Posted by Jon Paal at 10/17/2006 11:19:00 AM
any free web.config tools available ? VWD doesn't count as it does not offer any wizards or hints for web.config files. ...more >>

Is there Page_PreInit, but for the entire application?
Posted by Edward at 10/17/2006 11:17:37 AM
Hi All, Would anyone know if there is an event similar to the Page_PreInit that I can code just once, at a global initialization level, that applies to all pages executed? Therefore, instead of placing the code below in every page codebehind, I could code it just once. Protected Sub Pag...more >>

100% and wider?
Posted by Edwin Knoppert at 10/17/2006 11:13:50 AM
I have a textbox and have set it's width to 100%. The textbox resides in a usercontrol but in this case i want to force the size of the textbox let's say 500px or 100% So if it can't fill the pagewidth (100%) a minimal size of 500px must be enforced. I know it can cluther the page, that is ...more >>

Request.Querystring returning incorrect unicode characters in Japanese Internet Explorer 6
Posted by phl at 10/17/2006 11:08:32 AM
Hello, I have aspx(say page.aspx) page which uses javascript to submit a form reload with some unicode characters,upon an button event e.g page.aspx?param=value I get this value in the codebehind and access it via Request.Querystring property. I have a problem where if the characters o...more >>

Force a PAge postback
Posted by Tim Harmon at 10/17/2006 10:50:57 AM
How would I force a page post back to then use the page parameters to collect sellected control states like check boxes to be used in another asp page? -- Tim Harmon TIIMS Database Administrator ...more >>

Add image to resource file
Posted by shapper at 10/17/2006 10:04:17 AM
Hello, I created an Asp.Net 2.0 web site in Visual Studio and I want to add an image to the resource file. I read that I should set my image's Build Action to EmbeddedResource. However, when I right click on my image I can't see that option. What should I do? Thanks, Miguel ...more >>

Where is bound data stored?
Posted by rbourgeois NO[at]SPAM armbrotransport.com at 10/17/2006 9:47:37 AM
Hi, I am trying to find out where a bound dataset is being stored. I am fairly new to all this so let me try to explain with an example using my code: if( !IsPostBack) { grdMyDataGrid.DataSource = GetData(); grdMyDataGrid.DataBi...more >>

Best way to populate an object from a datareader
Posted by Damian at 10/17/2006 9:47:01 AM
I may be going a bit crazy, but could someone please give me a definitve way to poplate an object from an SqlDataReader. Do i use DataReader.GetString(0) with check for dbnull or Convert.ToString(dr[0]) or is there a better way? ...more >>

disable ViewState ?
Posted by George Ter-Saakov at 10/17/2006 9:17:54 AM
on my page I have <%@ Page Language="C#" EnableViewState="false"%> But in HTML i still see __VIEWSTATE hidden variable. <form name="form1" method="post" action="......" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJMTQ4MzQwNDAwZGQTxfqLHt6P7WAX...more >>

Datagrid using a Hyperlink column with the DataNavigateUrlField.
Posted by UJ at 10/17/2006 8:16:40 AM
I have a datagrid that has a table bound to it that includes a link to other pages. Works fine getting the data there. Problem is what format do I need to put the URL in ? I tried something like '~/Sub1/Sub2/Fred.pdf' and what I'm getting when I run the thing on my development machine is 'ht...more >>

Problem when sending email in Visual Studio 2005 Professional Edition. Please help!
Posted by bienwell at 10/17/2006 8:05:46 AM
Hi all, I've tried this code in Visual Studio 2005 Professional Edition to send email. It didn't cause any errors, but didn't make any actions. The Imports System.Net.mail is the object in this program. FromEmail and Servername are variables in this code. Dim mm As New MailMessag...more >>

GridView - Manual sorting
Posted by samb NO[at]SPAM telia.com at 10/17/2006 7:33:14 AM
When I use manual databinding to a GridView control, as bellow. 'Retrive a DataSet from database Dim ds As DataSet = uda.GetUsers(conectionString) 'gvUsers - The GridView gvUsers.DataSource = ds gvUsers.DataBind() Wehen I set the AllowSorting property to True and handle the sorting ...more >>

Enable/Disable Links
Posted by rn5a NO[at]SPAM rediffmail.com at 10/17/2006 7:22:01 AM
In a shopping cart app, assume that a user has placed 4 orders (each order has a corresponding OrderID which will be unique). When he comes to MyCart.aspx, by default, the details of his last order he had placed will be displayed in a DataList. Also assume that the OrderID of the last order is 1...more >>

GridView selectedrow values
Posted by HaVoK at 10/17/2006 6:54:12 AM
Hello, my problem: i want to get the values of the selected rows of a GridView. I have a button in every row and want to get the actual values e.g. of cell 1 of the actual row. How can i get this value? I am using VS 2005 and VB. Thanks a lot! Best regards Benjamin ...more >>

ObjectDataSources
Posted by Roberto Nunes at 10/17/2006 5:35:02 AM
Guys, Do you use ObjectDataSources in professional projects? I use three layers in old way. GridView1.DataSource = products; GridView1.DataBind();...more >>

Http Handlers
Posted by shapper at 10/17/2006 4:53:06 AM
Hello, I have been using Http handlers and I have two questions: 1. What does Property IsReusable really does and when should I use it? 2. And why should I add an httpHandler to my Web.Config? <configuration> <system.web> <httpHandlers> <add verb="*" path="handle...more >>

How do you get a list of files from server folder to display on in a list control
Posted by maglev_now NO[at]SPAM yahoo.com at 10/17/2006 2:47:38 AM
I'm using .net 1.1 trying to get a list of files in folder on the server. The user would select the file they want to download from a DropDownList. Can someone tell me how this should be done? I can't find the right class or object to use. Is it the File class or the FolderBrowser? Stuck li...more >>

Architect Issue.
Posted by kishor at 10/17/2006 1:55:02 AM
I have an Exe and on My Pc I am allowing my exe to execute from desktop as well as calling from web application. This exe is a dotnet application and hosts a DLL. again this DLL is a dotnet application. Till now every thing is system works fine. I can see multiple instances are opening and...more >>

how to handle null values
Posted by psycho at 10/17/2006 12:16:36 AM
how should i hanle null values returned by the datareader i am using OleDbDataReader for accessing access database. ...more >>


DevelopmentNow Blog