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 > december 2005 > threads for monday december 5

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

Is SessionState timeout the same as login timeout
Posted by Randall Parker at 12/5/2005 11:25:06 PM
Does the SessionState timeout field in Web.config control how long a logged in session will stay logged in? For example, I want my users to be able to log in once during their work day and for their log-ins to remain valid for 12 hours. Is this below the way to do it? <sessionState ...more >>


Can't get VS2003 to recognize OpenType Font
Posted by Charlie Peppler at 12/5/2005 10:32:12 PM
I've just installed a new OpenType font (http://www.typography.net/type/bliss.htm) on a WindowsXP Pro box. The font is useable in Office 2003 apps, no problem. However, when I open up VS2003, and create a form, with a text box in it, and try to set the font, the new font does not appear in ...more >>

Maintaining Authentication across ASP.Net Web Apps
Posted by Os at 12/5/2005 9:24:46 PM
Hi, What would be a good way to maintain authentication across web applications? I have an existing application (Framework 1.1) which does the user authentication. Currently, we have developed another application in Framework 2.0 which will only allow authenticated users from the Framework...more >>

Browser Progress Bar Shows several times
Posted by Mardy at 12/5/2005 8:41:02 PM
In my asp.net application, the browser progress bar shows more than once for some pages. For example, I have a cancel button that merely sets one panel to visible =true and another panel to visible =false. The progress bar shows twice when the button is clicked. Does anybody know why this ...more >>

Recommended Deployment of ASPNet2.0 to multiple servers
Posted by windsurfing_stew NO[at]SPAM yahoo.com.au at 12/5/2005 8:26:52 PM
Hi, We have a website which is deployed to multiple web servers by robocopy across a WAN. In visual studio 2005 if you choose to publish the site to a directory it regenerates all of the dlls and for some reason changes all of the last modified dates on the aspx files to the present. This m...more >>

How NOT to cahce downloads
Posted by Michael Tissington at 12/5/2005 8:26:16 PM
How do I prevent downloads from being cached when they are downloaded from my site ? These are files of type pdf, zip, exe -- Michael Tissington http://www.oaklodge.com http://www.sqlview.net ...more >>

Contents of Machine.Config File?
Posted by Bill at 12/5/2005 7:26:08 PM
If my web site is on a shared server, how can I can see the contents of the "Machine.Config" file for my machine? Also, is "Machine.Config" specific to asp.net or can a classical ASP page use it as well? ...more >>

Select depending on Session() value
Posted by Carlos Albert at 12/5/2005 6:31:30 PM
Hello everybody, I have a gridview, and the SelectCommand should change depending on a Session value. Not the WHERE, but the field that it retrieves. It goes like this: SELECT NAME, COST, CATEGORY(###) AS CATEGORY FROM TABLE Where Category can be Category1, Category2, etc, etc, etc, and I...more >>



unable to load a page from web matrix web server
Posted by Naby at 12/5/2005 6:27:50 PM
hello I'm trying to load a web page from web matrix web server using the following syntax http://IPaddress:portnumber/webpagename. When I try that syntax in the navigator I get error code "403: Forbidden" but if the I use the alternative syntax instead http://locahost:portnumber/webpagena...more >>

Help - client side validation not working, driving me MAD!
Posted by Alan Silver at 12/5/2005 6:20:46 PM
Hello, I have some simple client-side Javascript validation that was working fine until now. For some reason (don't ask me), it has stopped working and I can't figure out why. I have switched to version 2.0 (from 1.1) and have changed the page to use a master page, but other than that, it...more >>

Moving focus to next field
Posted by venky at 12/5/2005 5:26:29 PM
Hello all, I have a form and for phone fields i have three text boxes for first three area code and next three and then last 4. I have the max characters as 3, 3 and 4 and which works fine but once in the first phone field after the user enters 3 characters, how can i move the focus automati...more >>

file download dialog coming twice
Posted by Vikram at 12/5/2005 4:45:09 PM
i am using following code in button click... of asp.net code behind page Response.Clear() 'clears the current output content from the buffer Response.AppendHeader("Content-Disposition", _ "attachment; filename=Add2Calendar.vbs") Response.AppendHeader("Content-Length", mStream.Length.ToSt...more >>

Page works fine with internal webserver but not on IIS
Posted by Eric at 12/5/2005 4:38:17 PM
Hi, I developed my ASPX page on the build in webserver of VS2005 but when I try to run it on IIS it doesn't work. The error I get is: XML Parsing Error: not well-formed Location: file:///E:/VB.NET%20projecten/website%20field%20service/PrecompiledWeb/website%20field%20service/fshome.aspx...more >>

WebPart Question
Posted by Parag C Mehta at 12/5/2005 4:36:45 PM
Hi, We are exploring the new possiblities in ASP.NET v2.0. I want to have a page, in this page I have one WebPartManager 3 zones and I want to dynamically add WebParts to 3 zones. I chose Page_InitComplete event (as explained in PDC 05) to load UserControls dynamically into WebParts and A...more >>

Interact with secundairy form.
Posted by Edwin Knoppert at 12/5/2005 4:30:30 PM
I'm looking for a javascript solution (NOT using ASAX) to popup a 2nd form which invokes an .ASPX url. Nothing fancy, the 2nd form get's a result in the html. The 1st form should wait until 2nd form has completed execution, the 2nd form may be terminated by the user via the close button. Th...more >>

e-mail from textbox and datagrid controls.
Posted by Carlos at 12/5/2005 4:12:33 PM
Hi all, I currently have a task that calls to send an e-mail from a textbox, and a field of a datagrid. When I send it from the multiline textbox, I notice that the text is sent as a single line, even though I try to send it to include the new line breaks. Is there any way to make the tex...more >>

thread-safe static methods in ASP.NET?
Posted by PJ6 at 12/5/2005 4:05:21 PM
I'm looking for some examples specific to ASP.NET that show how to serve data from a singleton instance to multiple sessions in a thread-safe manner. Any suggestions? TIA, Paul ...more >>

DropDown in DataGrid
Posted by RS at 12/5/2005 3:51:53 PM
Hello, I need to add a dropdown list to datagrid. Once page is displayed on change of the selection of the dropdown for that row, I need to be able to capture the value of the dropdown and do some things in the code behind. I got Dropdown list to show up in the grid and all values that I need ar...more >>

Skin file ane VWD Toolbox
Posted by Andre at 12/5/2005 3:47:38 PM
Hi, I'm using Visual Web Developer 2005 to create a .skin file. But i have a problem (i think) ;o) When editing my skin file, in the toolbox, i can only drag HTML controls.. the Server Control (In the Standard section of the toolbox) are disabled. In skin file we can only pu...more >>

satellite assemblies in ASP.NET 2.0
Posted by Adam Calderon at 12/5/2005 3:41:40 PM
In ASP.NET 2.0 you have the choice of using the built in App_GlobalResoruces or App_LocalResources style of using resources or you can use your own resources utilizing satellite assemblies. In the SDK under "Resources in ASP.NET Applications" the documentation demonstrates how to use your own sa...more >>

HttpWebRequest.GetResponse() buffered read - possible ?
Posted by microdevsolutions NO[at]SPAM yahoo.com.au at 12/5/2005 3:38:43 PM
Hello I've seen examples to read a file from somewhere into a HttpWebRequest object then write it to a HttpWebResponse object then stream it into a Stream object, very similar to the following code snipet :- ============================================== Uri uri = new Uri("http://www.somewh...more >>

Could not connect to mail server System.Web Could not access 'CDO.Message' object. ?????
Posted by Adam Knight at 12/5/2005 3:31:30 PM
Hi all, I am trying to use System.Web.Mail to send email via asp. I keep getting the error listed above.; obviously cdo is not installed on the respective server. Can anyone point me to away around this... Unfortunately i don't have control over the production server, so any work aro...more >>

RequiredFieldValidator - Clearing a page with errors
Posted by Eytch at 12/5/2005 3:27:01 PM
Hey: I am a rookie developer so please bear with me. I want to develop a small application for my office but I am having trouble clearing a page that has required fields. If I make a textbox required and then trigger it by not entering in any data the page seems to be totally locked. (Whic...more >>

SqlDataSource UpdateParemeters
Posted by cognizance42 NO[at]SPAM gmail.com at 12/5/2005 3:01:05 PM
Hey gang, I'm in the process of fixing an application a former programmer slap together. We found the database design went against company standards, so our DBA went through to fix her up. Now I'm working on the task of fixing the UI code to interact properly with the new changes. However, ...more >>

Async MultiThreading
Posted by michaeltorus at 12/5/2005 3:00:22 PM
Hi If I start a bunch of asynchronous threads using a deletegate.beingInvoke, what is the prefered way to have the main thread wait until all threads have returned before continuing ... I simply don't like the idea of an exmpty while loop, and even worse a while loop with a Thread.Sleep statem...more >>

MS ACCESS query
Posted by Dave Harrington at 12/5/2005 2:55:41 PM
Hi all - I got a pretty basic question that's been bugging me today. I'm using ASP.NET, C# and MS Access for a database driven application. I have a datagrid that will populate based on a registered user's access level. There are some instances where I'd like to use a basic OR statement in m...more >>

Webgardening
Posted by J-T at 12/5/2005 2:55:17 PM
I have two questions in IIS, 1) If I assign my ASP.NET application to an application pool with one worker process only ,and if the worker process is supposed to be shut down after 20 minutes what happens to to my global variables like application objects and etc. 2) If I enable webga...more >>

Datagrid
Posted by dotnettester at 12/5/2005 2:40:02 PM
hi, I have a datagrid with custom columns (autogeneratecolumn=false). Based on some logic I want to hid a column, or make a column visible. How can I do that? Forexample, if I have a <ASP:ButtonColumn> which is visible by default. If based on certain value , I want to hide it. How can...more >>

Setting the background image on a webpart title
Posted by DexHex at 12/5/2005 2:23:47 PM
Hi, I am stumpt. Is there anyway to set the background image on a webpart title? ...more >>

Templating with UserControls and WebControls.Repeater
Posted by David R at 12/5/2005 2:12:43 PM
C# ASP.NET1.1 w/ VS2003 on IIS6 Hi In my application, I have a "PageTemplate.ascx" that contains a user-provided template for a page with 2 controls on it, one of these is a content placeholder. In my BasePage class, the content placeholder is replaced with content gleaned from a data...more >>

displaying binary data
Posted by Manny Chohan at 12/5/2005 2:11:02 PM
Hi Guys, I have set the datatype of one column as image in database. I can upload doc, txt etc files in this column. How can i display the document in webpage for example set the text of label or use Reponse.Write? I am unable to do so as it shows some garbage letters and if set the con...more >>

java socket reading response from asp.net
Posted by Jason Chu at 12/5/2005 1:19:01 PM
I've written a java applet to write multipart form to post to asp.net page. It works, asp.net can read all the form values and things i wanted from the socket posting. Now I want to get some sort of a reply/response from asp.net, but as soon as I try to read something from java's socket's ...more >>

using AJAX when class instances get disposed after load
Posted by PJ6 at 12/5/2005 1:00:24 PM
AJAX is great, but in order to reference specific class instances server-side, I have to maintain a static function to return them from a unique identifier. Only... the consumer controls themselves get disposed after the page loads! The object(s) I'm concerned with are not controls themselve...more >>

GridView in a GridView
Posted by Carlos Albert at 12/5/2005 12:39:05 PM
Hello everybody I'm working (or trying to, at least) with a gridview within another gridview, and the 'child' gridview is related with the 'parent' from a field. With a simple gridview I used to work all by codebehind (mostly because I get the XML from some librarys), using gridview.databin...more >>

VS 2005 and IIS 5.0
Posted by MartyNZ at 12/5/2005 12:28:03 PM
iSupport SolutionsI've just installed VS 2005 standard on my XP Pro sp2 PC. Working with a web project on a file system works fine, running an asp web site from IIS works fine. But every time I try to run my recently created ASP.NET 2.0 web site IIS hangs and inetinfo.exe CPU usage hits 100%!!...more >>

Automatically Insert Code into each New Webform
Posted by Mike at 12/5/2005 12:04:03 PM
I don't think this is possible, but wanted to check anyways. I have the following line of code in the Page_Load() event of every webform within as asp.net project... Dim GiftPurchase As AccountingLogic.Detroit.GiftPurchase Is there anyway I can have this automatically appear for each new ...more >>

TreeView SelectedNodeChanged Event
Posted by Andrew Robinson at 12/5/2005 11:06:01 AM
I am using a TreeView to perform navigation and have a few nodes that need to generate a popup menu. For this, I use the SelectedNodeChanged event and then add the relevant "window.open" script to the page using the ClientScript.RegisterStartupScript method. This seems to work fine, but if ...more >>

aspx.vb SqlDataSource
Posted by prontoo at 12/5/2005 10:52:27 AM
Hello, I dont know how to get a recordset from sqldatasource with selectcommand and put in standard listbox (not html) when i press the standard button. Thank you ...more >>

ReadOnly Properties - Arguements For/Against
Posted by Rob Meade at 12/5/2005 10:37:27 AM
Hi all, Ok - I guess this one will eventually still end up as a "personal choice" kinda answer, but I thought I'd run it passed the wealth of knowledge and experience that's in this group. Typically when I'm writing my classes I'll have a series of properties which I set to be read only,...more >>

asp Lable does not wrap at new line.
Posted by Nalaka at 12/5/2005 9:56:30 AM
Hi I am showing a text paragraph in a labe control. But, the label control is ignoring my "newLines".... (newline+carraige return) ( I correct this paragraph using a multiline textBox) how do I get the label to go to a new line at line breaks? Thanks Nalaka ...more >>

Session Object!!
Posted by Adam J Knight at 12/5/2005 9:51:38 AM
Hi all, I have just migrated a project from Web Matrix to VS. The project contains a class which retrieves values in the Session object. I am attempting to retrieve an instance of the Session object this way. I was certain that this worked previously??? Unfortunately is VS i am getting...more >>

trick for server-side execution without reloading page?
Posted by PJ6 at 12/5/2005 9:46:33 AM
After resigning myself to really learn JavaScript, I finally made my own grid control that populates itself and updates data . It's actually pretty sweet. The only problem I have with it is that every edit posts back, and when that happens, the browser accumulates a history of old page states ...more >>

How do I use a class with my asp.net page?
Posted by COHENMARVIN at 12/5/2005 9:44:26 AM
I have a class written in visual basic that I would like to call from an aspx page. The vb file is called "encryption.vb", and it contains: Namespace Encryption Public Class Hash Public Class Symmetric and more classes I don't know how to call these classes from a aspx page. Do I...more >>

ASP.NET 2.0 Master Page public properties
Posted by Joel Reinford at 12/5/2005 9:43:39 AM
I am attempting to learn how to use Master Pages in ASP.NET 2.0 and am having no success in getting the content page to see the public properties in the master page. I am using code beside and have tried both with and without namespace references. Can anyone give me any suggestions on what ...more >>

How to handle cross-page posting problem?
Posted by Andrew at 12/5/2005 9:08:02 AM
Hello, friends, I tried to do cross-page posting, i.e., in firstpage.aspx I used action="secondpage.aspx". Since I am using asp.net 1.1, so it always goes back to firstpage.aspx aftern submitting firstpage.aspx. I then tried in page_load of firstpage.aspx: if (this.IsPostBack) ...more >>

Div with borders only partially rendering
Posted by Lee at 12/5/2005 8:54:36 AM
Hello all, I have an aspx page with a Div that holds a few controls such as textbox and combo box. I use this same setup on several other pages with no problem. For one page in particular, the borders around the div are not rendered correctly and I am having a pickel of a time figuring...more >>

databinder.eval in code behind
Posted by Niclas at 12/5/2005 8:46:15 AM
Hi, I would like to evaluate a field in a datagrids data source (that is not bound to a column in the grid) in code behind rather that using inline code Databinder.Eval(container.dataItem,"MyField"). I don't seem to be able to use "container" in code behind, Would appreciate if someone coul...more >>

Hide Datagrid Column via client side scripting (Javascript)
Posted by Rob at 12/5/2005 8:41:33 AM
Does anyone know how I could hide a column in a DataGrid? To make the problem harder I am using AutoGenerateColumns="True" so I don't know how to find the control using document.getElementById(ControlID) and then hiding it by using display:none; Anyone have any suggestions? Thanks for the ...more >>

multilingual asp.net calendar control
Posted by Zahir at 12/5/2005 8:40:31 AM
Hi : I want to use the asp.net calendar control. I have to provide the multilingual options. Can anyone pls let me know the properties being set for this control..... Thanks in advance Zahir ...more >>

removing some values from trace
Posted by vsr at 12/5/2005 7:19:02 AM
is there any way to remove some information from trace, tracing by default displays session , application variables, but i need to remove these two from trace.can any let me know how can i do it?...more >>

Getting values from dynamically added controls
Posted by dotnettester at 12/5/2005 6:11:04 AM
Hi, I added a few link buttons in a function (loadControls) that is called only on the first time the page is loaded. On the postBack I don't call this function and want to retrieve the values of those controls (linkButtons). But the only time I can see the values is if call the (loadContro...more >>

ASP.NET page qury
Posted by shishir.y NO[at]SPAM gmail.com at 12/5/2005 5:54:37 AM
Hi All, I will try to explain the problem I am facing. I have an aspx page which loads properly. It has a text box. When the user enter something in the text box and press button control next to it, I need to do some kind of validation and will provide a confirm message to the user (us...more >>

.net 2.0 Theme and Skins Question (Please Help Driving Me Crazy)
Posted by kfc1976 NO[at]SPAM yahoo.com at 12/5/2005 5:12:12 AM
Hi All, First of all, following are the facts 1) I've been trying to solve the following issue for the past 8 hours (Not Kidding) 2) If I can't find the answer, It will drive me completely crazy Platform: XP Pro, .net 2.0 FrameWork, Visual Studio 2005 Problem Regarding: Theme and skins i...more >>

simple form question
Posted by adam at 12/5/2005 4:58:03 AM
I have a simple form question. I order to access a payment gateway I have a asp.net page which has to have a form that use POST for method and _blank for target. Before the information of the form can be send of, a checksum has to be calculated. I want to calculate the checksum server side for...more >>

Login control db
Posted by John at 12/5/2005 4:45:07 AM
Hi What db does the built-in user control in asp.net uses? sql server? Access? is it possible to choose? Thanks Regards ...more >>

How to get an Access database on the web from my own computer
Posted by dennist685 at 12/5/2005 4:40:02 AM
How to get an Access database on the web from my own computer I have an Access database project in inetpub/wwwroot/Access2 . I build it, and then press cntrl-F5. - I still get the development server - Version Information: ASP.NET Development Server 8.0.0.0, instead of IIS. This is a ser...more >>

ASp.net 2.0 Authentication
Posted by Juan Puebla at 12/5/2005 3:55:02 AM
Hi, I'm using asp.net 2.0 authentication with sql server 2005. I have also roles and I'd like to authenticate a user and then send them to specific page depending on roles. This is what I'm using: If Membership.ValidateUser(TextBox1.Text, TextBox2.Text) Then FormsAuthenticati...more >>

how to migrate 1.1 project to 2.0?
Posted by HK at 12/5/2005 1:51:31 AM
I can't believe that I've bought a couple books on ASP 2.0 and nothing says how to migrate a current project. I searched google and find all kinds of intense junk about compatibility, etc. but nothing with a few simple steps to upgrade the project. Maybe we won't be using all the new classes a...more >>


DevelopmentNow Blog