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 2006 > threads for thursday august 3

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

Working with a datalist
Posted by Aussie Rules at 8/3/2006 10:43:05 PM
Hi, I have a data list that is bound to a datasource which is just a list of products from a sql table. What I want to do is configure the data list so that when i person clicks on an item in the datalist, it redirects them to a page that displays info on that product. What I can't fi...more >>


how to set a object param in code
Posted by Aussie Rules at 8/3/2006 10:23:33 PM
Hi, I have the Windows media object placed on a web page. Since its not a .net component (its a com object) I have placed the code in the html source of the page. The problem I am having is that I get the url of the video file i want to play in the asp.net code (form_load event). How do ...more >>

Upload a textfiel into Textbox in ASP.Net C#
Posted by Jay at 8/3/2006 9:49:08 PM
Hi, I need to upload a text file (say some letter ) from one of the drive (say the path is C:\letter.doc), here i need to display the content of the file into textbox , how is it possible ? waitng fo ur reply. Thanks, Jayender ...more >>

access and ASP.NET
Posted by phil at 8/3/2006 7:49:50 PM
We have a small website using Visual basic and ASP.NET. We hold a database in Access format which is opened with the following 3 lines Dim m_dataBase As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\callidusWorld\app_data\webAccess.mdb" Dim myConn As New OleDbConnection(m_dataBa...more >>

Changing value of hidden HTML input
Posted by Urs at 8/3/2006 6:31:02 PM
Hi How do I change the value of an HTML HIDDEN INPUT field from code behind (VB or C#)? I need this (invisible) field for some javascript to gather information once the page has been loaded. Thanks for any hints. Urs. ...more >>

The SiteMapProvider 'MySiteMap' cannot be found.
Posted by Adrian Sharp at 8/3/2006 6:25:01 PM
I've got a pretty basic sitemap setup, but am getting a runtime error: "The SiteMapProvider 'MySiteMap' cannot be found." This occurs only when I access my website under IIS 5.1. When I run my app under the debugger (localhost:1946) I have no problem. I thought of trying IIS6.0, but am runn...more >>

Problem while connecting sql server ASP.net
Posted by Neo at 8/3/2006 6:16:58 PM
Hello All, I am trying to connect SQL Server 2005 from ASP.net. I am getting error Asp.Net login failed for user ''. I have seen Asp.Net "login failed for user 'NT Authority/Network service'" which is very easy to fix by creating user 'NT Authority/Network service'" in SQL server. But ...more >>

media player or flash component
Posted by Aussie Rules at 8/3/2006 5:42:17 PM
Hi. I want to play some video content on my web page but can not see a media player component in VS2005. How would I add a player to my page ? Thanks ...more >>



Error: "Unable to load one or more breakpoints"
Posted by Kuldeep at 8/3/2006 4:36:58 PM
Hi All, ..NET Framework - 1.0 ASP.NET [Web Based Application] Everytime I open my open, I get this error message "Unable to load one or more breakpoints" Even after this, I can build my application and run Please Help! Regards, Kuldeep ...more >>

Menu control issue....
Posted by John Smith at 8/3/2006 4:21:41 PM
I am trying to use the menu control for a tabbed menu system but it's frustrating the hell out of me. The full code is listed below. The trouble that I'm having is that, when the user clicks on a menu item, the page will send back the id of the menu that was clicked. But it doesn't do that ...more >>

Problem Deleting Users From Roles
Posted by Microsoft News Group at 8/3/2006 3:35:05 PM
I am setting up a customer portal. I am setting up users, and then deleting them. But if I set up a user with the same name I deleted. Then I get this error. The user 'Flynn' is already in role 'basic'. Description: An unhandled exception occurred during the execution of the current web ...more >>

Performance questions
Posted by SevDer at 8/3/2006 3:34:02 PM
Hi I have 2 different sites with the same aspnet code. Both are running in their own app pool. 1st one is the important site and performance for this one is more important than the second one. Of course in the codes I have some customization routines. One of those routine shows and assi...more >>

How to unload AppDomain created by CreateApplicationHost()?
Posted by Vlad Hrybok at 8/3/2006 3:11:02 PM
Hi, I noticed that releasing the reference ot the returned by CreateApplicationHost() is not enough to free memory taken by AppDomain created by CreateApplicationHost(). I have to created and destroy ASP.NET AppDomains on a fly without terminating the proccess. I want to get a reference t...more >>

Cannot create Excel Object via executable called from ASP.Net
Posted by Keith McDonald at 8/3/2006 3:05:05 PM
We have executable program that is used to create and send emails to users. Working on getting it able to be called from a web page we're having some problems. First of all if debugging the website from local it returns the common JIT debugger failure, access denied after the Process.Start() c...more >>

ASP.net Project...H E L P!!!!
Posted by fadilshamirkhan NO[at]SPAM gmail.com at 8/3/2006 2:18:29 PM
Hi everyone...this is my first time here and i really need the help... I have a website to make and i need to use some kind of database feature to store info It is a Travel Insurance website and i am doing it in ASP.net...well i have to do it. I already created the main site, but i am hav...more >>

access controls inside formview inside loginview
Posted by wikkiwikkiwaa at 8/3/2006 2:13:38 PM
hello, i am trying to access controls inside my formview1 nested inside loginview1. you cannot access the formview1 unless you are properly logged in. for loginview1, that seems to be fairly simple. a label control would be: Label label1 = (Label)loginview1.FindControl("nameoflabel"); the...more >>

Export a datagrid to csv
Posted by Amirallia at 8/3/2006 1:59:50 PM
Hello Here is nmy code to export a datagrid to csv file : For lLigne = 0 To Me.dg1.Items.Count - 1 For lColonne = 0 To Me.dg1.Items(lLigne).Cells.Count - 2 If Me.dg1.Items(lLigne).Cells(lColonne).Text = " " Then strValeur = "" Else strValeur = Me.dg1.Items(lLigne).Cells(lColo...more >>

Create rows at run time?
Posted by Carlo DLS at 8/3/2006 1:57:01 PM
All, I am trying to create a table, be it the simple <table> tag or maybe a data control object like GridView where what I want to happen is, I want that table to automatically generate an extra row everytime all the columns of the first row has been filled up. So for example let's say I have...more >>

Setting cs-username from an ASP.NET site
Posted by Sean Carpenter at 8/3/2006 1:46:21 PM
I'm currently in the process of rewriting a site that uses Classic ASP to ASP.NET 2.0. The old site uses an ISAPI filter to put a custom application-defined value in the cs-username field of the IIS log file. This is then used by a traffic-tracking application to track a user's path through...more >>

Hiding columns in GridView Control
Posted by srinivas at 8/3/2006 1:35:01 PM
Hi, I have binded a dataset to a gridview control at run time. I'm fetching 5 columns from the database. But while displaying it on the screen i want to show only 3 columns. I tried with gridview.columns(i).visible property,but it did't work. Thanks in advance Srinivas ...more >>

ticketmaster type of site
Posted by Andy G at 8/3/2006 1:23:43 PM
I need to create a site for registration of classes. The client wants the system to 'hold' the class while the person is checking out so no one else accessing the system can have access to the same class. I am in the preliminary architechture stages of the system and am just trying to get th...more >>

AccessDataSource vs SqlDataSource Questions
Posted by msch-prv NO[at]SPAM bluewin.ch at 8/3/2006 12:07:50 PM
I use an Access db in my application. So far I have been exclusively working wtih the AccessDataSource controls to hook up to the db. I know that Access db connections can also be established with SqlDataSource. What are the trade-offs between the AccessDataSource and SqlDataSource? Also, ...more >>

ASP.NET Server Side Printing
Posted by Lucas Ponzo at 8/3/2006 11:39:02 AM
Hi All, I have an ASP.NET 2.0 app. The users access the pages, uniquely via pocket pc ... I need to print a page. But I need that the page print on a printer installed on the web server hosting my application. Step 1) The user clicks the Print icon in the web page Step 2) I'...more >>

GUID Primary Key In SqlDataSoure UpdateCommand Won't Work
Posted by Dan Sikorsky at 8/3/2006 11:28:01 AM
Environment: VS2005, C#, SQLServer 2005 Error Message: Object Must Implement IConvertible I'm using a FormView whose DataSourceID = SqlDataSource1 SqlDataSource1 has an update command whose WHERE clause references an GUID column in the underlying table,ie, WHERE AddrGUID = @AddrGUID Addr...more >>

Simultaneous processing
Posted by Mike at 8/3/2006 11:23:34 AM
Hi everyone, I need to develop a new asp.net 2.0 web app that has to allow a client = the ability to work with an internal adviser on the same document (an = offer) at the same time. I am not sure how to allow two persons working = on the same application and changes be reflected to both bro...more >>

Simultaneous processing
Posted by Mike at 8/3/2006 11:15:17 AM
Hi everyone, I need to develop a new asp.net 2.0 web app that has to allow a client = the ability to work with an internal adviser on the same document (an = offer) at the same time. I am not sure how to allow two persons working = on the same application and changes be reflected to both bro...more >>

how to override the rendering method of a whole asp.net applicaction?
Posted by Ricardo Quintanilla G. at 8/3/2006 11:09:12 AM
how to override the rendering method of a whole asp.net applicaction? i want to not include spaces between html elements. As example, then rendering produce that: == == == == <html> <body> <p>Welcome</p> <p>to my app</p> </body> </html> == == == == and i would like then rende...more >>

How to handle the space between the panels on .aspx page?
Posted by Learner at 8/3/2006 11:03:38 AM
Hello there, I have built as .aspx page. I have a situation to create 4 panels in a <td></td> . Based on the selection of a drop down I need to display the corresponding panel in that table cell. Every thing works fine but I see a lot of space in the table cell that was occupied by the othe...more >>

User Controls accessing outside objects
Posted by tshad at 8/3/2006 10:34:01 AM
Is there a way for a User Control to access an object (such as label or textbox) on the .aspx page that calls it? For example: x.aspx ************************************** .... Sub Page_Load(s as Object, e as EventArgs) LoadControl("x.ascx") End Sub .... <asp:Label ID="theLabel" ...more >>

Properpies and Controls on a Dynamically Instanciated UserControl
Posted by Andrew Robinson at 8/3/2006 10:22:05 AM
I have a user control that I am dynamically loading at run time: PersonalInformationUserControl pi = new PersonalInformationUserControl(); PlaceHolderPersonalInformation.Controls.Add(pi); My user control has public properties that in turn access controls on the UC. I can access the properti...more >>

Network question
Posted by tshad at 8/3/2006 10:07:04 AM
I am finding that our site typically responds pretty well. But sometimes I will be going to the logon page, which should load fast, and I will have to wait about 20 seconds before it displays. How would I go about finding out if the problem is network related (our network normally is not n...more >>

Best Way To Connect .aspx to XML web service...
Posted by kennedystephen at 8/3/2006 10:04:43 AM
I have a .NET web service which returns a System.XML.XMLDocument. The data returned in the XML is just simple text. Now, I want to display and format the text on a .aspx web page. I know how to call the web service from my .aspx by using 'add web resource', but is that the right way to do this? ...more >>

Accessing Content INSIDE a Web Control
Posted by Alex Maghen at 8/3/2006 9:48:01 AM
Hi. If I create a WebControl (User Control, actually), I know how, easily, to access the design-time Properties that have been set as Propertiy nodes in the tag used on the ASPX page. But I've never tried having CONTENT inside my Control's Tag, e.g.: <Ax:MyCtl id="Something" runat="server">...more >>

Checking if object on page exists
Posted by tshad at 8/3/2006 9:38:44 AM
How do you check to see if object exists before accessing it? For example, I may have an object that I make visible and invisible and I need to make sure it exists as I am putting this code in a User Control. UserLoggedOn.visible = true If this doesn't exists, I get an error. So ho...more >>

Session and Http Handler's ProcessRequest()
Posted by Diffident at 8/3/2006 9:33:02 AM
Hello All, I am trying to use a session variable in a custom handler's processrequest method. I am getting a null reference whenever I access the session variable. At this point of execution is not the session available for use yet? Can anyone give me alternatives on how I can use session ...more >>

IBindableTemplate : Help
Posted by Ganesh Muthuvelu at 8/3/2006 9:12:02 AM
Hello, What is wrong with this template below?. I get this error: "Class 'MyEditFormTemplate' must implement 'Function ExtractValues(container As Control) As Collections.Specialized.IOrderedDictionary' for interface 'System.Web.UI.IBindableTemplate'. *************************** Impor...more >>

Windows forms user control embedded inside a web form?
Posted by david at 8/3/2006 8:59:02 AM
When I read a white paper about web application, it said that they developed a component built as Windows forms user control, and embedded it inside a web form. So the web form page can fully use this windows form and the control. This is what I would like to do. Is that component an Active...more >>

strange inconsistency referencing controls in Formview itemtemplate
Posted by Ned Balzer at 8/3/2006 8:58:14 AM
Can anyone explain why in the following code, where btnCancel1 is a Button inside the itemTemplate of the formview, the first call to change the text of the button, in the Page_Load sub, works fine, but the second call, in the bookFormView_ItemUpdated sub, throws an exception (Object reference n...more >>

Master pages cause Atlas UpdatePanel to flash?
Posted by Diane Yocom at 8/3/2006 8:45:10 AM
I'm trying to use an Atlas UpdatePanel to just update a label when a text box has changed. The problem is that my textbox is in a user control and I'm using Master Pages - with the combination of these two things, the page flashes everytime my textbox changes and the panel is updated. If I...more >>

File Storage- Asp.NET app
Posted by SSUK at 8/3/2006 8:34:01 AM
Hi, Is it better to store files in Database or to store on Hard Disk /network ? On a Web application using .NET......more >>

Menu w/Multiview issue
Posted by H at 8/3/2006 8:30:53 AM
ASP.NET 2.0 I used to have IE Webcontrols (Tabstrip w/Pageviews) on my page. Because of issues, I switched over to a horizontal Menu with a Multiview control. The problem is in the javascript. Previously, when I scanned through 'document.forms[0].elements[i]', I would have access to all of...more >>

User on MasterPage
Posted by Dabbler at 8/3/2006 8:23:02 AM
trying to access User in a MasterPage to determine current user's role, but I get "the name User does not exist in current context" Is there any way I can access this property to modify what is displayed on the master page based on the user's role? Thanks for any suggestions ...more >>

problem with accessing the configuration manager class
Posted by muthu at 8/3/2006 7:24:18 AM
Hi guys, Iam using dot framework 2.0.vs.net2005.I created a class library project and added a class file.And also i added a app.config file.And i declared a connection string in that config file.Now for accessing the connection string i tried to assess the configuration manager class bu...more >>

Implication of autogenerating web services to network drive
Posted by Alex at 8/3/2006 6:38:01 AM
I am now working on a project where a requirement is the autogeneration of web service (asmx) files that will be located on a network drive to be shared by multiple load balanced web servers. I am wondering what the implications are for concurrency issues if one web server in the farm generat...more >>

Problems creating head section - Unrecognized tag prefix or device filter 'asp'
Posted by Luurs at 8/3/2006 6:34:27 AM
Hi All, I've been using a asp-label in the HTML <head> section for quite some time in order to dynamically generate meta-keywords,-description, css and js references. Though the actual HTML-output isn't that pretty (<span>'s in the head-section...) it works fine with browsers, crawlers. It ne...more >>

ASP.NET 2.0 stopped working - please help!
Posted by Chris at 8/3/2006 5:18:24 AM
ASP.NET 2.0 was working fine, then I installed XP SP2 an it stopped working. Unfortunately I do need SP2 so going back to SP1 is not an option. I am quite certain that it was working for a while after SP2 was installed - so not quite sure what has happened...anyway here is the low-down: When...more >>

Master Pages, Web User Contols and Error Handling OH MY
Posted by GCeaser NO[at]SPAM aol.com at 8/3/2006 5:02:20 AM
So here is the desired functionality: When an error occurs anywhere in my application, I want an error section on the page to display the error information while still showing the actual page that the user encountered the error on. Here is what I have tried: I have an ASP.Net ...more >>

ConnectionString For SQL Server 2005?
Posted by Arpan at 8/3/2006 4:05:29 AM
I recently installed SQL Server 2005 (Management Studio Express) along with SQL Server 2005 Express (Configuration Manager) in my Win2K Pro m/c & use IIS 5.0 to run ASPX projects. I could add my database, named "MyDB", successfully. I am using the Windows Authentication mode to login to SQL Serv...more >>

Binding data to object and its nested object (ASP.NET 2.0)
Posted by Piotrek at 8/3/2006 2:50:14 AM
Hi all. I have a web app, in which I have object A. Object A has some properties plus it holds instance of object B. I bound object A to FormView - all its properties are properly displayed. However there is a problem with displaying properties of object B. Is there some way to bind labels ...more >>

Error while providing file download in webpage
Posted by ashish_basran NO[at]SPAM hotmail.com at 8/3/2006 2:22:10 AM
Hello I have to provide download of files in ASP.NET 2.0 I am using following lines of code. try { Byte [] bytes = this.ContentController.GetFileContents(filePath); Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=File" + _fileExtension); Response.Ad...more >>

UserControl.Page_PreRender: the Response.Write text appears before the page contents.
Posted by Max2006 at 8/3/2006 12:15:21 AM
Hi, I have a user control that shows the contents of potentially big html files. To save the server memory, I try to avoid reading the whole large-file's text into a label or literal control. Therefore, I tried to use this code in the user control's code behind: protected void P...more >>

Visual Studio and SQL Server - basic question
Posted by JJ at 8/3/2006 12:00:00 AM
My potential shared hosting platform uses SQL server 2005. I am developing on the Express version. In order to make sure I am not going to cause myself any problems when I move my ASP .net 2.0 sites (developed in Vis Studio 2005) to the host, should I be using my developers version of SQL 2...more >>

Cache
Posted by Maury at 8/3/2006 12:00:00 AM
Hello, I need to clear ASP.NET 1.1 Cache (I use HttpContext.Current.Cache) WITHOUT changing the code or recompiling the app, how can I do this ? Have I to change web.config? Thanks M....more >>

Variable in a control (very basic question)
Posted by Vincent Courcelle at 8/3/2006 12:00:00 AM
Hello, My question is very basic but I can't find an answer on search engines for it. How can I "pass" a variable to a control in a non programmatic way (directly in the .aspx file, not through the .aspx.cs file) ? For example : <asp:Login ID="LoginUser" runat="server" TitleText="" Instr...more >>

newbie: ItemDataBound and XPath
Posted by Jeff at 8/3/2006 12:00:00 AM
hey asp.net 2.0 I have a DataList which has a XmlDataSource as its data source. This code crash because I use XPath in the ItemDataBound event: protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e) { Label label = (Label)e.Item.FindControl("lblTitle"); ...more >>


DevelopmentNow Blog