Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > june 2006 > threads for wednesday june 21

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

Forcing the user to present smart card for login
Posted by sehgal_anil NO[at]SPAM yahoo.com at 6/21/2006 11:55:22 PM
Hello all, I am working on an asp.net web application where I have to force the user to present smart card. How can I do it? thanks, Anil. ...more >>

Javascript in ASP.NET
Posted by Peter Afonin at 6/21/2006 11:51:51 PM
hello, I've been using Javascript in ASP.Net before, but I cannot figure out how to solve this particular puzzle. I was mostly registering JS at startup, but this is not a case. The task is very trivial: The Sub is running, when certain condition is met, the user gets a message box with ...more >>

Checkfield in detailsview
Posted by loga123 at 6/21/2006 11:17:19 PM
Hi All, I have a checkfiled on my detailsview. While inserting/editing a record if this checkfield is checked, I am updating 3 other tables in "UPDATE" statement of the sqldatasource. But....it's not working so. In my UPDATE sql statement, I am checking if (@checkfieldValueFromDetailsView ...more >>

wrong test?
Posted by Spartaco at 6/21/2006 11:16:18 PM
This is a test I made that I believe has a wrong solution, they say the correct answer is C ?!? ---- You are an asp.net developer and currently you are working on te sql statement you will use to retrieve data from te customers table. Wat is te result of the following statement ? SELECT...more >>

adding items to an arrayList
Posted by Darrel at 6/21/2006 10:12:09 PM
I'm trying to grab the files in a directory and add each one to an array list. Thist is what I have: 1 Dim filesToUpload() As ArrayList 2 Dim batchFiles As String() = System.IO.Directory.GetFiles(Server.MapPath("/batchupload/")) 3 Dim arrayCount As Integer = 0 4 For Each fileName As String...more >>

Form authentication and html files
Posted by nick at 6/21/2006 10:01:02 PM
I have an Asp.Net 2.0 application using form authentication. I want the html pages be protected by the authentication system too. The accessing of html files need to be authenticated in my local system. However, it doesn't after I uploaded the files to my web host site. Any setting to modi...more >>

.NET 1.1 dynamically added controls
Posted by Mike at 6/21/2006 9:26:01 PM
Hi, I am having troubles dealing with dynamically created WebControls. I have this HTML code: <form id="Form1" runat="server" method="post"> <table width="960" align="center"> <tr> <td align="center"> ...... <td colspan="5"> <div id="plh...more >>

Sending username and pagename to ConnectionString
Posted by Guru at 6/21/2006 8:49:01 PM
I have a web application where people have to login to use the system. I have my own login system and a database which stores login details. ASP.NET pages are written with VB as code behind. I am using ADO as it is a lot easier than ADO.NET. (Note: I have an ADO class that I can call on any web...more >>



get client user culture info
Posted by David Thielen at 6/21/2006 8:45:01 PM
Hi; How do I get the client user culture? I need to get the names for the weeks/months, num days/week, months/year, days/month, etc to display date selections to the user correctly. -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com ...more >>

I'm lazy: how do I make the first databound record not display/chop off the first element from SqlDataSource
Posted by kenfine NO[at]SPAM nospam.nospam at 6/21/2006 8:40:42 PM
I'm using ASP.NET 2.0, C#, SQL Server 2005, and databound controls like the DataList and the GridView. Right now I'm using SqlDataSource as part of very quick and dirty site; I'm not looking to tier things. I want the topmost/first data element in a particular control to NOT be displayed. T...more >>

How To Link A StyleSheet To A Master/Content Page
Posted by SR at 6/21/2006 6:39:49 PM
I have started a web site using ASP.NET 2.0. I would like to centralize all of my classes in a StyleSheet but I cannot figure out how to link the StyleSheet to a Content Page since there is no header. I tried to put the link tag in the Master page, but the classes are not recognized in the ...more >>

TemplateField in 2.0 // Disappears on Postback when TemplateField is added thru code
Posted by sloan at 6/21/2006 6:04:35 PM
I am programmatically adding BoundField's and TemplateField's to a GridView. I have it working fine. BoundField bf = new BoundField(); bf.DataField = "EmpID"; bf.HeaderText = "The Employee ID"; bf.SortExpression = "EmpID"; mygridview.Columns.Add(bf); I know the TemplateFields are...more >>

Draw Images on fly
Posted by mrajanikrishna NO[at]SPAM gmail.com at 6/21/2006 5:58:04 PM
Hello friends, I have developed an application using ASP.NET and SQL Server. Ours is a garment factory. I need to design another module in my application. I want to generate images on fly based on users selection(body, sleeve etc). Until here no problem. Coz we have only 2 types of bodies...more >>

worker thread - how to?
Posted by David Thielen at 6/21/2006 5:01:01 PM
Hi; I need to have a worker thread that awakens every 15 minutes and then sends some emails (sometimes). 1) What is the best way to set up the worker thread? 2) How do I access the IIS smtp server to send an email? -- thanks - dave david_at_windward_dot_net http://www.windwardrepor...more >>

How to display last entry point after a postback?
Posted by Keith at 6/21/2006 4:59:51 PM
How can I make a long web page display at the last point of user entry after postback? Thanks, Keith ...more >>

Displaying two pages that are identical apart from the stylesheet being used
Posted by Mr Flibble at 6/21/2006 4:41:31 PM
I want my site to host a Default.aspx and a Default2.aspx page with one page being rendered using Stylesheet1.css and the other using Stylesheet2.css. So far I've just copied Default into Default2 (cut and paste) but this is crap because every time I need to change my site I will need to make t...more >>

Make part of a website password protected.
Posted by UJ at 6/21/2006 4:04:47 PM
How do you make a part of a website require a login ? I've done it with forms authentication where the entire site (with a few exceptions) require somebody to log in. But how do you do it when you want about half the site to be a subscriber area? TIA - Jeff. ...more >>

Charting!!
Posted by Vai2000 at 6/21/2006 3:39:13 PM
looking for a shareware charting tool which plugs into asp.net 2.0 apps? TIA ...more >>

ASP.NET 2.0: CompareValidator problem
Posted by R.A.M. at 6/21/2006 3:18:53 PM
Hello, I am learning ASP.NET 2.0 and I have a problem with CompareValidator control. On .aspx page I have a control: Date of birth: <asp:TextBox ID="BirthDate" runat="server" ValidationGroup="BirthDate" /> It works fine, but when I add CompareValidator with Type: <asp:CompareValidator ID...more >>

TreeNode open & close clicking caption
Posted by Andrea at 6/21/2006 2:52:01 PM
Hi, Im using an ASP.NET 2.0 TreeView control on a web page with an Xml MapSiteMenu. Some nodes does'nt have url property (just acts as container of other children nodes). My question is: Can i open and close a treenode without clicking on +/- image (but just clicking on the treenode capti...more >>

Change password using Forms Authentication
Posted by Felix Melendez at 6/21/2006 2:47:38 PM
Hi there! I'd like to know if anyone out there can give me a helping hand. I've developed an asp.net application that uses Forms Authentication. Question: I'd like to give users the ability that after every 30 days, they must change their passwords. So if the 30 days have passed, and user ...more >>

Server.Transfer with url change
Posted by David Thielen at 6/21/2006 2:46:02 PM
Hi; I would like to do the equivilent of a Server.Transfer() so I can pass data along in the context. But I want the new url to show like a Response.Redirect() - but that loses the data I stuffed in Context. What I need is a way to a) have the url of the page redirected to show up, b) pa...more >>

HTTP_HOST in global.asax
Posted by Greg Collins [Microsoft MVP] at 6/21/2006 2:44:06 PM
Is there a way to get the HTTP_HOST value in the Application_Start event = handler in global.asax? I have multiple sites running from the same hosted service, and want to = keep track of current visitors for each site separately. My intention was to get the HTTP_HOST value, and use that with...more >>

CompositeControl class failing to register postback
Posted by Mantorok at 6/21/2006 2:10:30 PM
Hi all I have an abstract class called SimpleControl and then I have descendant classes, for example StringControl. In my SimpleControl I am calling Page.RegisterRequiresPostBack(this) in OnInit method. However it is not posting back the value. Any ideas? Thanks Kev ...more >>

ASP.NET Application Lifetime & Cache Expiration
Posted by Sashko at 6/21/2006 1:51:50 PM
Hi, I made an ASP.NET (.NET 1.1) application that uses the Context.Cache object within Global.asax as a static member. It is set up in such a way that whenever the cache items expire, they recache themselves automatically. However, I ran into a problem. It seems like my application ends pr...more >>

Getting Users FullName
Posted by John Daly at 6/21/2006 1:35:01 PM
The following code works fine on my development pc: Public Shared Function GetFullName(ByVal userID As String) As String Dim sQry As String = "WinNT://" & userID.Replace("\", "/") & ",user" Dim oUser As DirectoryEntry = New DirectoryEntry(sQry) Return oUser.Properties("Full...more >>

Javascript Message Box
Posted by Joey at 6/21/2006 1:20:11 PM
Does anyone know how to create a javascript message box? I do not want to use 'alert' or 'window.alert'. That causes a message box with a warning icon. That is not appropriate for communicating a message like "Changes were saved." Any suggestions? ...more >>

what namespace (or GUI toolbar in VS 2003) is imagemap hotspot under?
Posted by Mad Scientist Jr at 6/21/2006 1:18:21 PM
I found some info on creating an imagemap in .NET at http://msconline.maconstate.edu/Tutorials/ASPNET2/ASPNET05/aspnet05-04.aspx but in VS.NET I don't see any ImageMap object under System.Web.UI.WebControls or any ImageMap control on the Web Forms toolbox (just Image and Image Button). I...more >>

Stored Procedure Help
Posted by MDB at 6/21/2006 12:52:16 PM
Hello all, I know this may not be the correct group but was hoping someone could help anyway. I have a stored procedure that is not returning the correct information. For some reason it is not returning the correct lane or reference number and was wondering if someone can take a look and help...more >>

Handling Slow Loading User Controls
Posted by Alixx Skevington at 6/21/2006 12:26:09 PM
I want to be able to have a page that has several controls on on it, but I want the page to load first of all and display a loading image on each control and then I want to then display teh controls as the data has bound to each control as some of the data I need to load is very big and takes ...more >>

ASP.NET 2.0: Administering Users
Posted by Knoxy at 6/21/2006 12:25:03 PM
Hope someone can help with this as I've been pulling my hair out. I'm using the built in membership with sql server and trying to admin users. On my website, I have an admin section to administer users. It's nice and easy if all I need to do is look at the data stored in the aspnet_membership...more >>

Serve SSL via HttpModule?
Posted by bradwiseathome NO[at]SPAM hotmail.com at 6/21/2006 12:09:09 PM
I have an IIS 6.0 web server that does not have an SSL certificate set up on the web site. Is it possible to enable SSL via my ASP.NET 2.0 web application only by inserting the SSL handshake, etc in an Http Module or anywhere else in the ASP.NET pipeline? For example, I could then offer differ...more >>

X and Y coordinates of Link Button
Posted by PokerJoker at 6/21/2006 12:02:02 PM
I know you can do it with an ImageButton... but i'm bound by the fact that i'm using a third party control with a link button, i'd really like to get the X and Y coordinates of the control so that i can position a pop over div appropriately on the click (using ajax). Thanks! -Justin...more >>

I changed the web browser for debugging in Visual Web Developer and want IE back
Posted by Christian Blackburn at 6/21/2006 11:56:25 AM
Hi Gang, About 6 months ago I changed the web browser for debugging to Mozilla. I don't even have that installed anymore, because I'm using Sea Monkey, but I can't remember how I changed that. Truthfully I would like it to just go back to IE. Does anyone know how I can do that. Thanks, C...more >>

GridView and Formatting
Posted by Victor Rodriguez at 6/21/2006 11:56:16 AM
Why is it that when I setup a BoundField Column and set the DataFormatString property to {0:C} I get everything in 100.0000 format instead of 100.00? Thanks in advance, Victor ...more >>

Mysterious bug with asp.net!
Posted by Jens Jensen at 6/21/2006 11:51:07 AM
Hi, We are streaming a pdf file to clients via Internet explorer .The pdf file is streamed over https . Sometime, when the file opens, it is seen for a few millisecond and is killed again. Meaning , the client has no chance to view it. This only happens for some clients. We have created a...more >>

Returning Contents of Remote Virtual Directory
Posted by dr.remulak NO[at]SPAM gmail.com at 6/21/2006 11:35:22 AM
How can I return a list of the directory names in a virtual directory? For example: If you open the directory below in your browser, I would like to return an array to my ASP.Net app with all of the directory names found (batters/, gid_2006_06_20_anamlb_sfnmlb_1/, etc.). http://gd2.mlb.co...more >>

I want to populate iframe when click on button+asp.ne
Posted by subba_reddy at 6/21/2006 10:45:37 AM
Hi, I have iFrame and command button(webser control) in my aspx page, want to populate the iframe with someohter page when I click on comman button . - SUBB -- subba_redd ----------------------------------------------------------------------- subba_reddy's Profile: http://www.hig...more >>

Multiple databound dropdown lists
Posted by Lair at 6/21/2006 10:38:59 AM
I am creating a page that has three to four databound dropdown lists. Each one is has different data sometimes from the same table but with a different where clause. What is the best way to populate the data onload? Right now it's opening and closing a connection for each dropdown list/Query. I...more >>

Connectionstring User and Password Not Being Used
Posted by DJ at 6/21/2006 10:17:01 AM
Hi, Got a real problem here and I can't figure it out. I set up the connection string to my database in my web config file, do it right by the book, and retreive it using the ConfigurationManager.ConnectionStrings("string").ConnectionString property. I assign the string to the sqlConnecti...more >>

How to Peek at Entire HttpRequest.InputStream?
Posted by samtilden NO[at]SPAM gmail.com at 6/21/2006 10:11:52 AM
I want to print out some tracing messages from Global.asax.cs/Application_BeginRequest(). I easily got: System.Web.HttpContext.Current.Request.RawUrl, and System.Web.HttpContext.Current.Request.Params["HTTP_SOAPACTION"]. I would now like to get the entire: System.Web.HttpContext.Curr...more >>

VS2005 Executes Code After I Hit Stop
Posted by ohnoonho NO[at]SPAM hotmail.com at 6/21/2006 10:11:30 AM
Hello, I posted this in the C# group but thought maybe the better place would be here since it is happening with website projects so please forgive any cross posting. In my website projects I can set a breakpoint, run the app, the breakpoint gets hit, and I can step through or check some va...more >>

Should I use Protected Configuration?
Posted by Be_Reasonable at 6/21/2006 10:10:41 AM
As many other people I have to make a decision on how to store my connectionString. I'd like to use the new Typed DataSets. And I can not use integrated security with our Oracle database. So what is a little programmer to do? I have read the documentation on Protected Configuratioon availabl...more >>

Data-Driven Visibility in a Datagrid Cell?
Posted by JebBushell at 6/21/2006 9:34:10 AM
I would like to set the visible or display property of a LinkButton control in a datagrid based on data. I could do it in javascript but I feel that it should be possible in vanilla ASP.NET. Is it possible to get access to the relevant row of data in the ItemDataBound event, for example?...more >>

Unreliable Image Display in VS2003
Posted by JebBushell at 6/21/2006 9:33:48 AM
Here are two lines from the HTML view of my page that should display the same jpg: <asp:Image id="Image2" ImageUrl="~/SpotImages/paw.jpg" width="16" height="16" runat="server"></asp:Image> <asp:Image id="Image3" ImageUrl="../SpotImages/paw.jpg" width="16" height="16" runat="server"></asp...more >>

automatic mailing in asp.net
Posted by cortukmehmet at 6/21/2006 8:32:17 AM
hi i must develop a web site that must be send all sales reports at every day to company managers... how can i send these mails without browsing this page.is it possible to make this automatically?? Thanks... ...more >>

Reading an excel spreadsheet using ado.net
Posted by lanem at 6/21/2006 8:30:58 AM
I am trying to read and excel spreadsheet using ado.net in asp.net 2.0(vb.net). It seems to work fine, but I cannot read some cells. There are some cells, that contain numbers, that I always just get a blank back. Has anyone seen anything like this before? Thanks....more >>

Example for Using the new 2.0 Menu
Posted by Tom at 6/21/2006 8:28:20 AM
I am looking for an example of how to build a menu from code hind. I need to be able to use images for the top navigation and set the orientation horizontal. Does anyone have an example I can use to get started? Thanks Tom...more >>

How to create section 508 compliant Data Grid - ASP.NET v1.1
Posted by Corey B at 6/21/2006 8:03:21 AM
I have a data grid that has three columns: First Name, Middle Name, and Last Name. The grid has a list of people with a blank row at the bottom of the grid (in the footer) that allows the user to add a new person to the list. There is also an Edit button at the end of each row that allows the...more >>

Creating a Request timer HttpModule
Posted by Manso at 6/21/2006 7:54:01 AM
Hi, We want to create a generic request timer that will inject the time it took to render each page as a HttpModule. We want to be able to inject this just before the finishing </body> tag but I can't seem to find a event to add an handler for. The timer should start in BeginRequest and end...more >>

ASP.Net, using firefox of MAC to browse problem, very slow!
Posted by Jack at 6/21/2006 7:35:11 AM
To who may concern: We've built an asp.net application, and it is ok in IE/Firefox on PC, but it is very slow in firefox on MAC, is there any solution about this? Thanks in advance! Jackfan. ...more >>

user controls help
Posted by rodchar at 6/21/2006 7:16:02 AM
hey all, i have a datalist that i'd like to make a user control. if i do that can i control if i want the datalist property RepeatDirection to be Vertical or Horizontal from the client design page? thanks, rodchar...more >>

rewriting URLs?
Posted by Smokey Grindle at 6/21/2006 6:56:30 AM
I use to know how to do this in .net 1.1, but not sure in 2.0 (cant even remember 1.1 its been 2yrs since I did ASP.net last) but say I have this site that is dynamic http://localhost/content.aspx?page=23 how can I make that translate into this http://localhost/Content/23 that virtua...more >>

Asp.Net AutoPostback and control focus
Posted by robin9876 NO[at]SPAM hotmail.com at 6/21/2006 6:43:05 AM
In Asp.Net v1.1 web form I have a number of controls which have the autopostback enabled. Is it possible after the autopostback has run that the control that caused the autopostback to get the focus? ...more >>

formating date
Posted by amjad at 6/21/2006 6:37:02 AM
how to change date format with asp.net 1.1 using c# code like 03/12/1955 00:00:00 to 03/12/1955 thanks can i overload string function like public override string ToString() { return(String.Format("birthDate: {d}", this._BirthDate.ToString())); } is that the correct syntax seem ...more >>

RDLC vs. Crystal Reports
Posted by Altman at 6/21/2006 6:24:13 AM
I am currently using ASP.Net 2003 and will be upgrading to 2005 sometime in the near future. I have been having issues with using Crystal Reports that were included with .Net to handle my reporting needs. I was wondering if anybody has an opinion on how the new reportViewer control works in co...more >>

Simulating a Web Service Application
Posted by Anbu at 6/21/2006 6:23:02 AM
Hi All, I'm in a strange situation. I have WSDL files generated by a Apache Axis software. But i dont have access to the application, becuase of few reasons. I want to validate the application that I'm preparing now. Anybody had overcome such situation? Expects some help from you. Than...more >>

Client Site App adding value to a Web App
Posted by bmntech NO[at]SPAM gmail.com at 6/21/2006 4:52:17 AM
I want to create a client app, adding value to and building on my Web app. The user of this client app will be able to seamlessly access the public web site, but will also have additional functionality and content not available on the public site. The rational is to allow the user to work dis...more >>

Textboxes are rendered wider than other input controls
Posted by funstercinsolata NO[at]SPAM gmail.com at 6/21/2006 3:51:25 AM
--- This is my simple default.aspx: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!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...more >>

"ProfileCommon could not be found" error
Posted by AMP at 6/21/2006 3:45:02 AM
Hello, I have enabled Profiles in the web.config and seems to be working fine (I can see the auto generated ProfileCommon class including my custom properties in my \Temporary ASP.NET Files directory and I can see my Provider in the ProfileManager.Providers ProfileProviderCollection). BUT wh...more >>

Client Side Validation
Posted by dfalconer NO[at]SPAM goodpractice.net at 6/21/2006 3:28:27 AM
I have a vb.net site which has a form on it using Client Side Validation. This works fine on my local machine (Windows XP Pro, IIS 5.1), fine on our staging server (Windows 2003 SP1, IIS 6). However when i deploy to live (Windows 2003 SP1, IIS 6) with it the page generates a javascript error and...more >>

Receiving Data on the Same Connection Using WebRequest
Posted by leeo at 6/21/2006 1:48:42 AM
Hi We're using the following code to send an XML file to a secure server: Dim wr As HttpWebRequest Dim nc As NetworkCredential Dim xd As XmlDocument Dim xw As XmlTextWriter Dim oItem As ListViewItem Try wr = CType(WebRequest.Create(goSettings.NHS...more >>

need to get unique ids of selected checkboxes in datagrid
Posted by nasirmajor NO[at]SPAM yahoo.com at 6/21/2006 1:03:22 AM
dear all, i have a datagrid with checkboxes for selection of rows. and want to get unique id/ids(job_code) from the selected rows in array etc. can anyone help. <asp:datagrid id="dgResults" runat="server" DataKeyField="job_code"> <Columns> <asp:TemplateColumn> ...more >>

how to indicate "deprecated"?
Posted by cruster at 6/21/2006 12:19:12 AM
Is it possible to indicate, that some method of a custom control is deprecated? ...more >>

Clear all textbox data
Posted by Danial at 6/21/2006 12:00:00 AM
Hi, I am using asp.net 2 and i want to blank all textbox data of one form with (for each control) and i write following coding in button control, but it did not work. Dim ctl As Control For Each ctl In Me.Controls If TypeOf ctl Is TextBox Then CType(ctl, TextBox)...more >>

Web.Config Connection String
Posted by Gunawan at 6/21/2006 12:00:00 AM
I would like to apply membership on my web. The problem I have is ASP.NET Configuration does not recognize setting I've made What went wrong in this configuration on web.config? <connectionStrings> <clear /> <add name="SQLGUN" connectionString="driver={SQL Native Client}; Use Integrate...more >>


DevelopmentNow Blog