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 > january 2006 > threads for tuesday january 31

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

Get data, make textBoxes, edit values, and re-save to database. Simple?
Posted by \ at 1/31/2006 11:55:36 PM
I'm using asp.net/vb.net/ado.net to create a very simple user interface. (Everything works if I use STATICALLY created textBoxes... but not when I make them DYNAMICALLY.) 1. Execute a SQL SELECT cmd to retrieve a record. 2. Loop through the dataReader values, creating textBox boxes dynami...more >>


how to include aspx without directive?
Posted by Franz at 1/31/2006 10:54:34 PM
Hi, I would like to include a aspx file inside a script-block, however, I don't want to include that file by <!-- #include virtual="whateverfile" -->. How can I do it? Thanks. Franz ...more >>

Yellow Textbox
Posted by archana at 1/31/2006 10:33:47 PM
Hi all, I am new to asp.net. I have one html page containing 4 input boxes for accepting input from user. When i copy same html page to aspx page to add this 4 textboxes and run this aspx page, i am getting background of some text boxes as yellow even if i haven't set background. But...more >>

Publish web site
Posted by Wessel Troost at 1/31/2006 10:11:45 PM
In Visual Studio 2003 you could publish a website, and it would copy only the required files to the web server. In Visual Studio 2005 this option iis gone. There is now the "Copy Website" dialog, but there I have to specify which files to copy. Is there still a way to conventiently pub...more >>

asp:dropdownlist
Posted by Øyvind Isaksen at 1/31/2006 10:11:22 PM
When I bind the dropdownlist-control to a datareader, it displays all the data (from the database) in the dropdownlist. My question is: How do I insert a "<option value="">Choose...</option>" in the top of the dropdownlist? I want the first choice in the dropdownlist to be "blank" (no valu...more >>

"The project is not configured to be debugged" for classic asp
Posted by nospam NO[at]SPAM nospam.sss at 1/31/2006 9:13:49 PM
I am getting the error '..... The project is not configured to be debugged' when I try to debug a classic ASP project using Visual Studio 2003 and Windows 2003. I have 'enable asp debugging' checked in confiuation manager. I have allow all verbs for asp.dll in IIS. Plus I have been installi...more >>

ASP.Net 2.0: AzMan - How to check access for a Task
Posted by Sachin at 1/31/2006 8:11:43 PM
Hi All, I am using ASP.Net 2.0 and AzMan. I got examples on how to authorize users against Role and Operation. But I am not able to figure out how to authrize users against Task. Are there any examples on how to authorize users against Task? TIA Sachin ...more >>

Website Administration Tool not working from published application
Posted by vamichael NO[at]SPAM gmail.com at 1/31/2006 7:40:33 PM
When I try to run the Website Administration Tool from my published application using http://localhost/myapp/webadmin.axd I am getting a "resource not found" error message. I can use the Admin tool from the IDE however. I noticed some people referring to a directory called c:\Inetpub\ww...more >>



caching is application level or session
Posted by Vikram at 1/31/2006 7:35:06 PM
I am using Output directive at page level for caching the page. If i refresh the page, then page comes from cache, but if i open new IE window and then navigate to the page, it does not comes from the cache.. so what is the problem with this...I am using ASP.net 2.0 ...more >>

Can I use images in a class?
Posted by Miguel Dias Moura at 1/31/2006 7:28:56 PM
Hello, I am using the profile in Asp.Net 2.0 to save complex types, i.e., a class. I am using an SQL 2005 database as my profile provider. Can I use a file or image in a class and save it in my profile? Should I do this? Public Class Document Private _image As Image Public Pro...more >>

Anyone have a clue why this happens??
Posted by Dan at 1/31/2006 5:22:09 PM
Hi guys I have an aspx page that accepts a posted to field, the id number of a product. On the page it then loads the details and allows editing of the product with a save button. The save button fires off sql to save the changes using that id number posted. My problem i had was that ...more >>

adding a HTTPHandler ASP.NET 2.0
Posted by Alexandre at 1/31/2006 5:15:36 PM
Hi, I have created an HTTPHandler in ASP.NET 2.0 I now the way to add it in the web.config but my question will be stupid... when I compile my application in asp.net 2.0 from vs 2k5... umm what is the name of the assembly that is produced? I cannot seem to find it anywhere on my server, ...more >>

Random Confirmation Image/Text
Posted by David Lozzi at 1/31/2006 5:09:57 PM
Howdy, I'm looking to add a confirmation step in my registration process which requires the user to read an image and enter the text into a textbox. I've seen this everywhere, i'm just not sure what its called to be able to search for it. Is it easy to create? Thanks, -- David Lozzi...more >>

fileupload - default file?
Posted by David Norman at 1/31/2006 5:09:27 PM
I want to implement a repetitive admin function of kicking off an operation using a file that changes infrequently. All I'm interested in is the file name and path, I'm not performing any file transfer. I've put a fileupload control on the page to allow the user to specify the file. Now I w...more >>

Hi where do I ask team foundation related questions?
Posted by Nalaka at 1/31/2006 4:31:01 PM
any direction is appreciated Thanks Nalaka ...more >>

Security System Like Hotmail Etc
Posted by damiensawyer NO[at]SPAM yahoo.com.au at 1/31/2006 3:42:06 PM
Hello all, You know how, when you create an account on hotmail, gmail etc, they pop up a graphic with a registration password that is bent and twisted so that it can't be read by a screen scraper? I'd like to include one of these in an app I'm writing. I figure that there would be some good...more >>

Looking for XHTML compliant text editor
Posted by Diffident at 1/31/2006 3:05:29 PM
Hello Guys, I am looking for a text editor which produces a proper XHTML output. My requirement is to generate an XML Document object out of the output produced by the text editor. I tried several third party controls including freetexteditor. Freetexteditor seems to be having the XHTML ou...more >>

CSS for layout and asp.net - good books?
Posted by MattB at 1/31/2006 3:01:27 PM
I have an asp.net 1.1 application that I distribute to clients and they modify the pages to their liking (to match their existing web sites). This process can be pretty awkward, and I'd like to look into leveraging CSS more to make it easier. I have a basic understanding of CSS, but I'm no e...more >>

How about a "Make As ..." ?
Posted by The Colonel at 1/31/2006 2:40:56 PM
Man, just got a new drive and realized I have to now install THREE versions of Visual Studio (6, 2003 & 2005). Why can I not use the latest version to work with EVERYTHING? You know, "make as ..."? :) OK maybe not for 6, but why can I not create 1.1 apps with 2005? ...more >>

ASP.NET 2.0 image caching
Posted by Amelyan at 1/31/2006 2:40:42 PM
Is there a way to cache an image without having to cache the whole page (aspx) or the whole control (ascx) where the image is located? Thanks, -Boris ...more >>

Datagrid is not paging.
Posted by Doru Roman at 1/31/2006 2:17:21 PM
Hi, I try to use a datagrid with paging. Even though it shows the numbers for the following pages at the bottom of the grid, when I click on the page number it does not go there, it keeps the first page, even though there are lots of them to be seen. Thanks, Doru ...more >>

Help: GridView Control Causing 2 Postbacks on Selection
Posted by tacmec at 1/31/2006 2:08:25 PM
ASP.NET 2.0 (C#) application. I have a web form with a GridView, which is populated dynamically. See the code below. First time to the page, IsPostBack is false. Therefore, DisplayItems() is called and the GridView is populated. No problems. When I click the select button in the GridView, ...more >>

Set default text on databound object
Posted by MasterChief at 1/31/2006 1:56:50 PM
I have an insert template textbox that is bound to a field in SQL. Since it is the insert template it really doesn't have anything in it. How do I set the default text? Like for example if I have a insert template field that is databound to a date sql column how can I set the text to be a defaul...more >>

Page Cannot Be Found - DNS Error
Posted by jimmyrose at 1/31/2006 1:55:47 PM
Ive searched and searched but can't find anyone with a similar problem to mine. Ive made a web form that just enables you to choose a period in DateTime, and filter by certain categories once the sql data has been returned. it all works fine until I request a month or more of data (30000 records...more >>

compilationn error for html text writer
Posted by Jon Paal at 1/31/2006 1:44:00 PM
why the error ? Compiler Error Message: BC30452: Operator '&' is not defined for types 'System.Web.UI.WebControls.FontUnit' and 'String'. Source Error: Line 203: writer.AddAttribute("border", "1") Line 204: writer.AddAttribute("style", ("FONT-SIZE: " _ Line 205: ...more >>

Brilliant Billy...just brilliant...(ASP.Net Debugging)
Posted by Zamdrist at 1/31/2006 1:23:33 PM
After much gnashing of teeth and pull of hair (mine and others)...the last piece to the myterious puzzle that is ASP.Net debugging, and getting it to work is: <drum roll please> The case sensativity of <customErrors mode="Off" />... Absolutely brilliant...MSDN documentation not only fails...more >>

Gridview RowUpdating is not firing
Posted by Alex A. at 1/31/2006 1:21:24 PM
I've got an unbound gridview that I'm late binding. The RowUpdating isn't firing when the gridview's update button is clicked. What am I missing? Thanks ...more >>

Forms Authentication issues
Posted by eric.olstad NO[at]SPAM gmail.com at 1/31/2006 12:59:08 PM
I'm pullin my hair out here. I've created a login page that uses Forms Authentication. Initially, it loads the types of authentication methods from a database and asks the user to select the auth method from a drop down list. Each method corresponds to an external module (assembly) that is lo...more >>

showmodaldialog issues
Posted by luna at 1/31/2006 12:45:05 PM
im playing around with showmodeldialog, and the child window isnt returning the variable to the parent in the parent i have Button2.Attributes.Add("onclick", "var strReturn; strReturn=window.showModalDialog('test.aspx',null,'status:no;dialogWidth:370px;dialogHeight:220px;dialogHide:true;h...more >>

Writing to an ASP textbox from javascript
Posted by alanliang NO[at]SPAM gmail.com at 1/31/2006 12:45:01 PM
I want to be able to populate an asp textbox with logitude and lattitude values whenever a user selects a point or creates a marker on google maps. Simply, how do I change an asp's textbox value through javascript? Thanks, Alan ...more >>

Resource file question
Posted by Evian Spring at 1/31/2006 12:25:07 PM
In .Net 2.0, the resource file is into an XML format which I think is great. However I would like to know if .NET comes with tools that allow you to convert that resource file to a flat text file. The flat text file would be what I send to the translation document. What I mean by flat f...more >>

Transferring User based on Short URL
Posted by Brian Hoops at 1/31/2006 12:11:51 PM
Is there an easy way to configure a site to load certain pages based on a short URL entered? For example... www.domain.com/sitemap loads www.domain.com/application/sitemap.aspx?show=all www.domain.com/privacy loads www.domain.com/application/privacy.aspx etc. I currently set up a fold...more >>

mailing list asp.net c# any source code
Posted by David Buckley at 1/31/2006 12:06:40 PM
does anyone have any source code to a maling list application that uses ms access at all in c # i am stuck thanks i am using asp.net 2.0 thanks in advance ...more >>

ASP.NET StateServer connection timeouts on IIS 6
Posted by AV at 1/31/2006 11:48:44 AM
I have a web server in production running IIS 6 (Windows Server 2003 = SP1) and hosting multiple virtual websites with each website hosting = many ASP.NET applications in virtual directories. Each website is = running in it's own worker process and all the application use the out = of process A...more >>

Guess What ...
Posted by Jim in Arizona at 1/31/2006 11:29:48 AM
I'm getting married in mid march so know what that means!? That means that you only have about a month to meet me somewhere and take full advantage of my non-ring wearing self! Hurry! Time is running out. Just tell your boyfriend you need a day break from him! He'll understand! HAHA .. I...more >>

Insert method problems
Posted by Ed Dror at 1/31/2006 11:25:46 AM
Hi there, I have ASP <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Guestbook.aspx.vb" Inherits="Guestbook" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" >...more >>

How to Return pure XML (no WS)
Posted by Stefano Peduzzi at 1/31/2006 11:16:30 AM
Hi, I've to return an XML (a KML for Google Earth) from my Web Server. How can I do it with ASP.NET 2.0??? These are the requirements for a "KML Server" as stated by Google: KML Server requirements When responding to a request from the Google Earth client, a KML server must follow a certain ...more >>

Looking for a good book on object design w/ databases
Posted by Joel Barsotti at 1/31/2006 10:55:32 AM
Hi, I have a little website that is getting bigger all the time (hit 1M pageviews in a month). I've got an object library I've designed for all the things I use in my website (users, orders, products, searching, ect..). But I never really have seen what the best practices look like for...more >>

how do you execute javascript after script is regsistered?
Posted by simon at 1/31/2006 10:50:33 AM
hello, what code would i use to kick off a javascript script after i had registered it? If (Not Page.IsClientScriptBlockRegistered("jsScript")) Then Page.RegisterClientScriptBlock("jsScript", strScript) End If looking to kick off a script from inside a codebehind, but con...more >>

How do I reset session timeout timer?
Posted by Ken Varn at 1/31/2006 10:26:25 AM
My ASP.NET application has a module that needs to change the local system time on the hosting machine. I have session timeouts enabled, but I need to reset the session timeout if the local system time is changed. I don't see any means to do this. My problem is that if the system time is reset ...more >>

data disappearing problem on the forms when navigate
Posted by c676228 at 1/31/2006 10:18:26 AM
Hi all, the data disappearing problem occurs to all my controls even my regualr web control like asp:textbox, when I click back button in web browser from second page to first page and then click continue button on the first page to second page again, all the data entered , even in web server...more >>

Newb textbox question
Posted by Eric at 1/31/2006 10:11:28 AM
I have a textbox on a form that is populated from the database when the form loads. When I check textbox.Text when the user clicks my submit button, the value is always what it was when the form loaded, no matter of what the user changed the text to. Any suggestions? protected void Page_L...more >>

Images not cacheing in 2.0?
Posted by roy anderson at 1/31/2006 9:06:10 AM
Hey all, Thought I had this figured out a week ago, but evidently not. Basically when I publish a site in 2.0, the images aren't cacheing? For instance, let's say I created a page with a background of 100 tiled images (and each image was the exact same file). What SHOULD be happening is that ...more >>

Casting user controls
Posted by Ryan at 1/31/2006 8:06:28 AM
Has anyone else experinced major issues with the model ASP.NET 2.0 uses for user controls? When I attempt to cast a dynamically loaded user control (or master page, for that matter), like the following: Dim article As App_Controls_ctlArticleDetail = Page.LoadControl("~/App_Controls/ctlArtic...more >>

asp.net c# PDF to "View as html"?
Posted by bnlockwood NO[at]SPAM gmail.com at 1/31/2006 7:15:24 AM
I'm looking to have the same kind of feature gmail does in that it is able to view pdf files as html. I want to be able to have a PDF file, have a view as html button but not have 2 files one html and one pdf... I just want one that opens as html rather then opening Adobe Acrobat. I'm coding in...more >>

Regular expression
Posted by Xavier at 1/31/2006 7:10:26 AM
hello, what is the expression to check the date in the format DD.MM.YYYY example 31.01.2006 thanks ...more >>

insert NULL
Posted by NuB at 1/31/2006 6:17:33 AM
I have a sql query that is doing an update of records, how can I add NULL to the field in the database if the field on my screen is blank? example: I have 5 textboxes, and a user can leave some blank, delete data from a text box then hit update, how can I have NULL inserted into the field on...more >>

Convert a PHP cookie to an ASP.NET cookie
Posted by Nuno at 1/31/2006 6:17:29 AM
Is there any way I can read a php cookie from asp.net? Nuno...more >>

Script Alternative: Client-Site Controls by Custom .NET Assemblies ?
Posted by sqpost NO[at]SPAM hotmail.com at 1/31/2006 6:01:13 AM
Hi, Can we enrich the client site controls with a compiled C# class instead of javascript functions? With ASP.NET, isn't it possible to write a control in C# and embed the compiled dll into the object tag by which the user can download it and the page controls can access this dll (a temporary c...more >>

How to troubleshoot authentication problems with login server cont
Posted by markelc at 1/31/2006 5:48:16 AM
I've created several new users through the CreateUserWizard without a hitch but when I can't login using the login server control with any of them. How do I troubleshoot this problem? I've used SQL Server Profiler and it seems to be getting hung up on the aspnet_Membership_GetPasswordWithForma...more >>

Is HTTP an Async Protocol
Posted by Bob Badger at 1/31/2006 3:17:08 AM
Hi, Simple question (although I guess with a complicated answer). Is HTTP an async protocol? For instance, if I send a message to a c# webservice via http what is the protocol actually doing? Thanks in advance Steffan ...more >>

Problem reading data into Dataset
Posted by Camper Joe at 1/31/2006 2:57:17 AM
Here's my code: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim db As New SqlConnection Dim strSQL As String = "SELECT * FROM users WHERE strUsername = '" & txtUsername.Text & "'" Dim ds1 As DataSet = New DataSet() ...more >>

How to Open Separate Browser Window with Server Controls?
Posted by Brad at 1/31/2006 1:04:51 AM
The subj line says it all. I'm trying to open another window using available ASP.NET/Framework 1.1 library. I know how to do it in Javascript; I don't know how in ASP.NET. Anyone? Thanks for any assistance! Brad ...more >>

Server.Transfer and IHttpModule problem
Posted by Richard at 1/31/2006 1:03:53 AM
I've developed a small ASPX template framework (based on Chun Li's article on CodeProject: http://www.codeproject.com/aspnet/headerfooter.asp#xx849313xx) which uses a IHttpModule to apply usercontrols (e.g. header and footer) on pages. The module determines if templates should be added to the p...more >>

Best way to process a file with 20,000 records
Posted by Me at 1/31/2006 12:47:28 AM
Hi all What is the best way to upload and then process a csv file that contains around 20,000 records? The data needs to be validated and then added to the database. All records that dont satisfy the validation requirements will need to be recorded. However the update can still go ahead for t...more >>

CreateUserWizard validation doesn't work
Posted by VB Programmer at 1/31/2006 12:10:02 AM
I have several required field validators on each step of my CreateUserWizard. When I click Next it goes to the next step, even though the user hasn't typed anything in. I placed each "page" of validators in their own validation group. Any ideas why this isn't working? Thanks! ...more >>

Creating A Gridview Programmatically
Posted by Brian McClellan at 1/31/2006 12:00:00 AM
Just wondering if anyone has a simple example of creating a gridview completely programmatically, i'm not doing anything terribly sophisticated. When creating the gridview declaratively evertying works fine, however programmatically, while the grid will display data that exsists in the data...more >>

Limit the number of characters given a "Box" size
Posted by Mark at 1/31/2006 12:00:00 AM
Hi, I am trying to work out a way where I can accurately predict the number of character which will "fit" into a box size. Say I have a virtual area of 500px by 200px I need to find out how many size 8 font characters will fit into this box. I know that I could take the average and say tha...more >>

Link Button Javascript!!!
Posted by Adam Knight at 1/31/2006 12:00:00 AM
Hi all, <asp:linkbutton id="lbtnRemSuperintendent" runat="server" CausesValidation="False" CssClass="drkLink">- Remove</asp:linkbutton> Is there any way to declaratively add a javascript on click event to a link button??? As far as i know using the OnClick property will initiate a serv...more >>


DevelopmentNow Blog