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 2006 > threads for tuesday february 14

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

Static Method?
Posted by Adam J Knight at 2/14/2006 11:35:35 PM
Hi all, I have an Assembly in vs2003 (NameSpaceA), which i have made a reference to in my current project. This assembly contains CLASS B which is made up of utility function for retrieving data. I have this line in my code behind: using NameSpaceA; I have a server control in a page...more >>

how to export query data to excel
Posted by importantEmail NO[at]SPAM gmail.com at 2/14/2006 11:31:50 PM
hi.. i have a query whereby i am currently putting the results in a datagrid.now the requirements have changed, and i need to have a separate button on clicking to which, I can put all the data of the query into an excel file. this page is a part of the website which is running locally in m...more >>

Reference GridView?
Posted by staeri NO[at]SPAM gmail.com at 2/14/2006 11:26:00 PM
I want to count the rows in a GridView which is nested into a DataList but I can't find the correct syntax for this. Can someone please help me with this and also tell me how to reference a text box control in the nested grid? Regards, Staeri ...more >>

Dropdownlist add default blank while bind to sql server
Posted by syncwa at 2/14/2006 6:31:48 PM
Hi, My dropdownlist is binded to a sql datasource. I would like to have it list a blank entry on top and do not show real data before user select it. How can I do this.? Thanks...more >>

ASP.NET 2.0 and 1.x
Posted by Vai at 2/14/2006 6:21:17 PM
Hi All, Can asp.net 2.0 and 1.x run side by side. I know thats what .net boasts too... side by side execution of multiple version. But in real PROD Env. if you have a plethora of 1.x application running can you just install 2.0 Framework and everything should be good to go??? Wont the ISAPI r...more >>

Delete a project in VS 2005
Posted by Progman at 2/14/2006 6:11:23 PM
I need to completely remove a web project from VS 2005. How can I do that? ...more >>

New to Visual Studio 2005 ASP.NET opinion
Posted by Progman at 2/14/2006 6:10:10 PM
frankly, I am impressed by VS 2005, but I think it is pretty limited. you dont have a real hyperlink button. it looks like flash is the way to go if you need fancy things. i read on the web that next version of vs will have some flash functions ...more >>

2.0 : config GridView to use SPs ?
Posted by John A Grandy at 2/14/2006 5:24:09 PM
It looks like MS wants you to use config a SQLDataSource , hand coding the SELECT, INSERT, UPDATE, DELETE SQL , and then assigning GridView.DataSourceID = SQLDataSource ... But what if you prefer to encapsulate all your DML in SPs ? Is it possible to config the SQLDataSource with SPs ? I...more >>



How do I decrease first page load time when there are 300 dll's on bin folder?
Posted by Ravi Ambros Wallau at 2/14/2006 5:20:10 PM
Hi, it's me again: I have made an extensive search at google and finding a lot of information, but nothing that matters for me. My problem is that I've about three hundreds DLL's on bin folder. If I move half of these DLL's to another folder (outside of the application), load time de...more >>

Access Denied to access db with asp.net
Posted by Ros NO[at]SPAM at 2/14/2006 5:16:24 PM
First of all, I'm new in asp.net. I'm trying to perfom a web application with asp.net and beginning with this I'm trying to access to an access db, but when I try my web form, exactly when I push the button that executes the sql code to access the db, I received an error message like this:...more >>

Why is Default.aspx not present in the Default Content page?
Posted by Gaetan at 2/14/2006 5:14:24 PM
I have setup 2 servers (Windows 2003 Server SP1, latest hotfix) with IIS and .Net Framework 1.1 and 2.0. None of the 2 servers have default.aspx listed as a default content document even when there is a ASP.Net tab in the default web site properties. I have selected the following options in Ad...more >>

Cannot create ASP.NET WebApp project
Posted by Roland Riess at 2/14/2006 4:43:38 PM
Hi, as I tried a lot of hints from the newsgroups archives - all without success - I hope that somebody can help me here. I am using Windows 2000, VS 2003 and a local IIS 5.0. Up to now I programmed WinForms only but now I shall create a web application. And there I suddenly faced the pr...more >>

Dynamically create ASPX form
Posted by rishi145 NO[at]SPAM gmail.com at 2/14/2006 4:42:14 PM
i want to build a small cms and wanted to know if it was possible to generate a aspx page dynamically? if so how basically i wan to be able to have a button create new page and name it. thanks for any help guys R ...more >>

Test Link Page Exists?
Posted by xenophon at 2/14/2006 4:34:29 PM
I have a NavigateUrl property on a page that is this: MyLink.NavigateUrl = "~/testpage.aspx"; I want to programmatically load testpage.aspx so I can tell if it is really there. This will be a test I run from one page on the web site for another page. It's not called all the time,...more >>

create dynamic pdf documents
Posted by BlueSky at 2/14/2006 4:08:30 PM
Hi All, I am planning to create dynamic pdf documents in .NET ( for example, I will have to create tables with user input rows and columns). Can anyone recommend me a 3rd party component that is pretty well known (so I don't have to take the risk of the company going out of business) and has ...more >>

Querystring empty
Posted by tshad at 2/14/2006 4:07:35 PM
How do you check to see if there is no query string? I could have: 1) file.aspx 2) file.aspx?r=5&st=joe I need to know when there is no query string at all (1). Thanks, Tom ...more >>

Where to insert Javascript for Client page?
Posted by NewTel at 2/14/2006 4:02:36 PM
I'm only, it seems allowed to insert my javascript in the master page. Yet I only want it to run for one of my content pages. How to handle. Thanks ...more >>

Drop down list selected value not submitting
Posted by nz mark in aus at 2/14/2006 3:56:02 PM
Hi there I am populating an empty <asp:dropdownlist on the client side using Javascript using the following code Heres my dropdown list <asp:dropdownlist id="ddlDealers" Runat="server"></asp:dropdownlist> heres the Java var myDropDownList = frmMain.ddlDealers; for (var cnt=0;cnt<=deal...more >>

Intermittently problem
Posted by niju at 2/14/2006 3:55:14 PM
Hi there I get the following error message one or two a day. System.Web.HttpException: Exception of type System.Web.HttpException was thrown. ---> System.IO.FileNotFoundException: C:\WWW.NET\Booking\booking.aspx at System.Web.UI.TemplateParser.GetParserCacheItem() at System.Web.UI.T...more >>

Making functions and procedures in ASP.NET
Posted by Øyvind Isaksen at 2/14/2006 3:48:33 PM
In asp 3.0 I used an procedure (that I included) to save and update articles, like this: <% Sub ConnObj(SQL) set cn = server.CreateObject("ADODB.Connection") cn.Open ConnString cn.Execute SQL cn.Close Set cn = nothing End Sub 'Just call the proc...more >>

HIDE: Database Explorer / Solution Explorer / Properties
Posted by NewTel at 2/14/2006 3:42:03 PM
Hi these little suckers reside on the right hand side of my screen, looking like tabs. They pop out whenever I mouse-over them. I find this annoying. How can I get them to stay put unless I click on them? Thanks ...more >>

Gridview and paging doesn't work
Posted by Carlos Albert at 2/14/2006 3:20:55 PM
Hi everybody, I'm working with a gridview (4 bound columns and 1 template column, using databind from codebehind). It works just fine, but I tried to add paging, and when I click any paging button (next, last, or page #), it return this error and I don't know what's wrong: Source Error: ...more >>

How to use HttpServerUtility?
Posted by Patrick F at 2/14/2006 3:18:29 PM
I have a dll file that i am trying to use the Server.Encode function. so i have added a reference to System.Web; but when im trying to delcare: HttpServerUtility mServer = new HttpServerUtility(); return mServer.HtmlEncode(strValue); i get the following error: Error The type 'System.Web.Ht...more >>

Custom Control with a complex property type
Posted by Jeremy Chapman at 2/14/2006 3:08:43 PM
I have a property will an array of webcontrols. The control features a custom property editor which can add and remove web controls to the array, but how do I persist the informtion by serializing it to the aspx page? For example, right now, here is what the html looks like when I drag my ...more >>

How do you set DataBound Dropdownlist to "Choose"?
Posted by GS at 2/14/2006 3:07:18 PM
Hi, I have dropdown list bound to a Table, I don't want dropdown list to = select first row from a table but rather to display "Choose" and when = user clicks it then to display available values. How can I do that?...more >>

delegates???
Posted by P K at 2/14/2006 3:04:26 PM
I am reading a CSV file which could be like this - Name1 functionName PK isNumeric AB isAlpha CD isDate I read this CSV file and have all the records in a dataset. When I come to column 2 which is the function name, I have to invoke the method isNumeric or isalpha o...more >>

Button click event not firing
Posted by Winista at 2/14/2006 3:00:00 PM
I have a page with bunch of user controls and standard controls on the page. And then I have a Button control on the page which is used to save the data on server side. All was working fine and dandy till yesterday. Today the button click event started showing some weired behavior. Some time t...more >>

Regex pattern question
Posted by Patrick F at 2/14/2006 2:49:23 PM
Hi, I am trying to validate a password, but havent figured out the pattern for it yet. The password must contain atleast 6 characters a-zA-Z0-9_ must start with a a-zA-Z and must have atleast one of the following characters !#%&$£ correct passwords would be: a#aAb08 Plkpod! t09_#8T...more >>

Storing an object in a session
Posted by James Vickers at 2/14/2006 2:48:01 PM
All, I am a bit of noob to ASP.NET, and I am writing some OO based pages to try and emerge myself into it, however, I have come across a problem that has me completely stumped! What I want to do is to take an object that I am using on one page, and pass it to another page - this, I belie...more >>

How do I stop the frmework from producing invalid XHTML for the validator?
Posted by Alan Silver at 2/14/2006 2:42:14 PM
Hello, I have a site that produces 100% valid XHTML 1.0 Strict when viewed in a browser (IE, Firefox, etc). I just tried validating the site with an on-line validator, and got several errors. It seems that the framework is sending the validator down-level code, as it assumes that the val...more >>

Easiest way to save image from an URL in ASP.NET
Posted by Hrvoje Vrbanc at 2/14/2006 2:24:45 PM
I would like to know the most efficient way to copy an image from an Internet URL to the local hard disk by means of using an ASP.NET page. So, I would like to click the button on the ASP.NET page and thus to save a copy of a picure at let's say http://www.blabla.com/pic.jpg to predefined l...more >>

Where to put validation code, for a FormView control
Posted by Paul Aspinall at 2/14/2006 2:21:26 PM
Hi I want to put all my validation code in one place, for my FormView control, regardless of whether its editing or inserting data. Is there a 'Validation' event somewhere?? or do I point the ItemUpdating and ItemInserting events to the same place, and put my validation code there? Tha...more >>

how to assign session object to user control
Posted by c676228 at 2/14/2006 2:20:27 PM
Hi all, I have the following code, without option Strict on, it seems work OK, but when option strict is on. I have a problem for the assignment. Dim ctrlarr(5) As PeopleInfo 'poepleinfo is user control in project Dim i As Integer If Not Session("ctrlarr") Is Nothin...more >>

How To: Popup Confirmation Dialog & Redirect in LinkButton_OnClick
Posted by steggun at 2/14/2006 1:56:19 PM
How To: Popup Confirmation Dialog & Redirect in LinkButton_OnClick Hello All, I have a ASP.NET 2.0 (C#) web form with a LinkButton control. In the server-side code for the LinkButton_OnClick event, I need to do some processing and, if it succeeds, popup a confirmation dialog and redirect to...more >>

Help with ASP 1.1 and ASP 2.0 on IIS 6.0
Posted by John Cosmas at 2/14/2006 1:29:17 PM
I have 2 applications, one needs 1.1 and the other needs 2.0 on an IIS 6.0 running on Server 2003. For some reason, when one works, the other says, SERVER APPLICATION UNAVAILABLE. Is there a reason why this does not work together? I made sure in the CONFIG/SETUP that the application uses th...more >>

trouble with viewstate
Posted by sdrouins at 2/14/2006 1:27:27 PM
Hello, I had a really weird problem that occured on one of our site. (occur 2 times in 3 years) The client 1 have fill the form1 and submit it, for some reason the page was postback to the client 1 but the informations that was on the form after the postback was not the informations of the...more >>

Dynamicly adding controls after Page_Load event
Posted by GS at 2/14/2006 1:05:54 PM
Hi, I dynamicly add custom control in SelectedIndexChanged even of GridView = which is firing after Page_Load. My control is not being rendered to = page becouse of that (I assume). How to avoid this situation? Sample = below protected void dgrCompanies_SelectedIndexChanged(object sender, =...more >>

Publishing Site & Static files
Posted by anon2005 NO[at]SPAM comcast.net at 2/14/2006 12:41:24 PM
Just wondering ... according to http://msdn2.microsoft.com/en-us/library/e22s60h9.aspx, static files (images, .html, etc) during deployment are supposed to be copied "as is" to the target deployment folder. I read this to be an automatic process done by the tool. In my VS2005 web app, no sta...more >>

Create External Process
Posted by Mythran at 2/14/2006 11:54:56 AM
ASP.Net v1.1 Trying to create and start an external process (run another application). This application can take a few minutes to complete, but I want the ASP.Net web page to return immediately without killing the process it started. Basically, the user uploads a file which is saved to the...more >>

Writing a html string from a sub in a user control file
Posted by Christian Perthen at 2/14/2006 11:42:00 AM
Hi, I have a sub in the codebehind page of a user control file that writes html. How do I get the sub triggered and output the html in the content page? See my approach below. Partial Class contentAffiliate Inherits System.Web.UI.UserControl Sub Page_Load() writeContentAffilia...more >>

OOP Question
Posted by Elliot Rodriguez at 2/14/2006 10:58:41 AM
Given the following: Public Class Foo Private m_strBar as string Public Property BarString as String Get BarString = m_strBar End Get Set(ByVal value as string) m_strBar = value End Set End Property Public Sub...more >>

problem for dropdown list in itemtemplate
Posted by Brian at 2/14/2006 10:57:28 AM
Hi, All, I have two dropdown lists in itemtemplate in a datagrid. for example, dropA and dropB. also, for the dropdown, I set < Runat="server" AutoPostBack="True" OnSelectedIndexChanged="some event name"> When users selects an item, it will do a postback to server. Before the postback complet...more >>

DataRepeater FindControl("controlX") ControlX was added to placeho
Posted by WebMatrix at 2/14/2006 10:57:28 AM
Hello, I have a repeater control with a placeholder inside ItemTemplate. myRpt_ItemDataBound() event adds dropdown conrol (drpCntlr.ID = ControlX) to a place holder. Then on postback, I want to read this value selected by a user: drpX = (DropDownList)rptSelect.Items[i].FindControl("Control...more >>

Problem Downloading PDF with HTTPWebRequesst
Posted by GJK at 2/14/2006 10:07:29 AM
Hello, I am trying to download a pdf file using HTTPWebRequest class and then save the downloaded pdf to a SQL Server 2005 database image column and then display the pdf on a web app. When I try to display the PDF, Adobe reader comes up and shows an error msg "an uncrecognized token aID was fou...more >>

Confirmation Message Box (return Value from Javascript to ASP.NET program ). Please help !!!
Posted by bienwell at 2/14/2006 9:14:34 AM
Hi all, I just have a question about using confirmation message box in ASP.NET program. It's an emergency !!! In my program, I have an ASP button runat='server' that calls a Sub Function when users click this button. In this Sub Function, I have some conditions: If Cond_A ...more >>

Firefox & ASP.NET 2 Menu
Posted by Carlos Albert at 2/14/2006 9:12:45 AM
Hola a todos, En Firefox el menu que brinda la ultima version del framework, en el hover se desarma un poco. No ocurre asi con un un custom template de la parte dinamica que tengo armado con tablas. Tambien (en ambos casos) pierde las propiedades de la tipografia, tomando los valores pre...more >>

ImageButton inside of a DataGrid
Posted by Lagwagon at 2/14/2006 9:11:27 AM
I have an Image Button inside of a Datagrid and its not firing the datagrid.itemcommand event when it is clicked. Does anyone have a link to a tutorial or a solution for this problem? For my datagrid I do have the OnItemCommand propert set. <asp: Datagrid id="DataGrid1" runat="server" On...more >>

Formatting my date in the GridView :-(
Posted by Simon Harvey at 2/14/2006 8:58:37 AM
Hi all, I'm having problems getting my date to format. Someone told me that with the GridView, you need to use a TemplateColumn and not a BoundColumn when displaying dates. Given that, can anyone see what the problem is with the following code.... <asp:TemplateField HeaderTe...more >>

how can access webService design in visual web developer 2005 as we access from iis server in days of VS 2003
Posted by kamig at 2/14/2006 8:56:40 AM
Hey! guys i have this annoying question i have upgrade my webService project from visual studion.NET 2003 to 2005 but the problem is tht i cant access my webService directly from iis mmc by click the .asmx and selecting browsing in old days of .net 2003.....it gives an error like that user init...more >>

Edit document via web
Posted by Andrew Robinson at 2/14/2006 8:53:31 AM
This might be more of an IIS question but is there a way of hosting a document (think Word or Excel) within a web site that allows a user to not only download and edit it but also save changes directly back to the web or web server (without requireing a user to reupload the document? Pretty...more >>

How to use ActiveX parameters in the codebehind in .NET
Posted by david at 2/14/2006 8:38:40 AM
I have created an ActiveX and load it into the Component in ToolBox in the Visual Studio IDE. After create a web form project (VB.NET), I drag the activeX component into the web form design, set ID and name for it in the property, and the HTML looks like: <OBJECT id="AxCarControlID" style=...more >>

ASPNET 1.1- Question regarding KeyPress Handler?
Posted by Vagabond Software at 2/14/2006 8:33:41 AM
I'm just getting started with ASP.NET, but I have a strong grasp of C# and VB.NET. When my ASPX page loads, I set focus to a text box that will be populated by a barcode scanner. All of that is working fine. Once the barcode is scanned, I want to call my ProcessBarcode method without th...more >>

Comparing dates
Posted by Simon Harvey at 2/14/2006 8:16:33 AM
Hi everyone, I need to be able to compare to dates to ensure that one is at least 1 day greater than the other. Im trying to do if(toDate !> fromDate){ // handle } This works but the problem is its comparing the datetime down to the minute and second. I need to be accurate only ...more >>

Instantiate webform classes ....
Posted by Nuno at 2/14/2006 8:11:27 AM
How can I instantiate a webform2 object from webfrom1 codebehind? The class does not popup in intellisense and gives me and error if i try to create it. Nuno...more >>

VS2005 Project Conversion Hangs
Posted by Chip at 2/14/2006 8:08:43 AM
I have converted several of my smaller projects, but of course the biggest, most important one goes south and stops responding. Nothing in the log, no message, nothing. Anybody have a clue for me? So I guess I will have to convert by hand. Is there any documentation on how to do that? Ch...more >>

Dynamic server side include containing a control
Posted by Larry at 2/14/2006 7:56:07 AM
Hi, I need a method to dynamically include a server side include in my asp.net page. The problem is, the include file contains asp.net controls, and I can't find a way to get the controls to render. HISTORY I have an active website. I have about 100 include files that are just html tex...more >>

Building and executing SQL Query dynamically, best practices
Posted by WebMatrix at 2/14/2006 6:50:27 AM
Hello, I am developing ASP.NET 1.1 application against SQL Server 2000 db, where users have ability to construct their own select criteria (for a where clause). I already developed a user control where user can select field name, operator (equals, like, begins with, etc) and value of the se...more >>

Add an error message to CreateUserWizard for duplicate username
Posted by ibiza at 2/14/2006 6:36:52 AM
Hi all, I have a CreateUserWizard with two steps, one to create the user, and the other to associate roles to him. When I try to insert a user with a username that already exists, I can't create the user and this is ok. However, there is no error message of any sort, so I'd like to add a mess...more >>

textbox events when date is filled in a textbox with calendar pop-
Posted by Sridhar at 2/14/2006 6:29:16 AM
Hi, I have a web form which has two text boxes and a datagrid in it. The two text boxes will have start date and stop date. I have a calendar pop-up control that fills the start date and stop date. Now I need to postback to the asp.net webform when these text boxes are populated with the...more >>

how to get the Namespace of the application
Posted by Xavier at 2/14/2006 6:20:30 AM
hello, i used in all classes of the app_code files a individual Namespace, for example Namespace MyApp1Namespace ........ How can i get programmatically the name of this Namespace. best regards...more >>

published web site - files with extension .compiled
Posted by Xavier at 2/14/2006 6:13:04 AM
hello, after publishing a website i get in the directory bin *.compiled files. Are this necessary to be copied on the production server? I see that in the file are infos about virtualPath=" .... and <filedeps> .... I tryed all kind of option by Publish website Is it a possibilitie to...more >>

Are Nested ADO Controls possible?
Posted by Scott at Cedar Creek at 2/14/2006 6:07:26 AM
Can I put a repeater inside a FormView? Can I put a repeater inside that repeater? If so, what happens when the FormView.Mode is "Edit?" When they click the EDIT button is my repeater data also saved? Or do I have to code that manually? Thanks in advance, Scott...more >>

SqlCacheDependency works for a couple of minutes
Posted by Yosi at 2/14/2006 4:35:40 AM
Hi, I have a wierd problem about the SqlCacheDependency class. It just works for a couple of minutes. After 2 minutes or more, the cache does not expire anymore. I'm using SQL Server 2005 as database. Here is the code: private string getTime() { string time = (string)Cache["KEY"]; ...more >>

Firefox does not render .asp page
Posted by Shiva SG at 2/14/2006 3:30:09 AM
Hello, We are testing a website, which has an index.asp page. Uploaded the files on two different servers. IE opens the index.asp page from both server locations. But Firefox opens the page in location (A) http://www.balaganesh.com/sample/index.asp but does not open the same page ...more >>

XSLT : For-each
Posted by Redowl at 2/14/2006 1:16:28 AM
Hi, Not sure if this is the right forum, but does anybody have any experience of using a XSLT variable in a xsl:for-each loop. As in, I want to pass in a variable called source which itself holds the root of the data I wish to loop through. <xsl:for-each select = "$source"> ' Do someth...more >>

Release a new outlook style webmenu wakicoolbar
Posted by Waki Hunt at 2/14/2006 12:22:40 AM
WakiCoolBar for asp.net 2.0 is a new developed professional tool for creating DHTML Expand/Collapse menus.It¡¯s very convenient to create the outlook style webmenu without writing javascript.And you may add menu items easily and visual at VS by PANELS property,It can be binded with Database ...more >>

DataTime string format
Posted by barry at 2/14/2006 12:01:18 AM
Hi does anyone know which format character i should use to get the the following date string 2006-01-30T22:00:00.0000000-08:00 if i use 's' format i get 2006-01-30T22:00:00 TIA Barry ...more >>

Can't connect to database
Posted by SimonZ at 2/14/2006 12:00:00 AM
I have connection string: <add key="appStrConnection" value="Password=readP; User ID=reader;Initial Catalog=CP; Data Source=nl-si-comp1"/> but I can't connect to my database: "SQL Server does not exist or access denied" is the error message. If I connect with query analyzer or SQL Enerp...more >>


DevelopmentNow Blog