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 > march 2006 > threads for thursday march 23

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

How to add roles to user using Forms Authentication in ASP.NET 2.0
Posted by Jules at 3/23/2006 11:44:39 PM
When creating this website I user a custom authentication method to validate the usercredentials (I think the membership provider is an overkill since I only use the authentication part). When I have a authenticated user I use FormsAuthentication.RedirectFromLoginPage to authenticate the user ...more >>


How to log to a text file in ASP.NET 2.0 using HealthMonitoring
Posted by Anonieko at 3/23/2006 10:13:52 PM
Logging To a File In A S P . N E T 2 . 0 . I also want weekly rolling filename for the log file. Step 1. Create a class library ( 2 classes) ============================== AppWebEvent.cs -------------- using System; using System.Web.Management; using System.Text; using System.Web; ...more >>

What if cookie are disabled?
Posted by Andrea at 3/23/2006 7:37:30 PM
I noticed that if cookie is disabled, unfortunately adding cookie to the collection doesn't trap any error, and this is really good for some aspects, because it's impossibile to understand that since next time you use the cookie. Now supposing to work on an environment where cookie are disab...more >>

Single or multiple thread?
Posted by Andrea at 3/23/2006 6:52:08 PM
Suppose a base class like partial class X : Page ... and a class A that is called from class X somewhere along the code. I'm not able to understand if for each user connected to the web site, a thread is created and so every call to class A stay in different thread or all works into a...more >>

GridView formatting rows/columns question
Posted by J055 at 3/23/2006 6:47:58 PM
Hi I've been looking into different ways of formatting columns/rows in the GridView control. I realize now, I think, that once the datasource is bound to the control the original column type information is lost, i.e. converted to a string. So my question is: is it better to format data w...more >>

Sending Email via Exchange Server from ASP.NET
Posted by Gilbert Cheung at 3/23/2006 6:01:02 PM
Hello. I am writing a website for my company. There is a sign-up form that requires us to send a confirmation email to our customer. Our company uses Exchange Server 2000 as our mail server. We decided not to implement any smtp server as that may post some additional security risk. The que...more >>

Binaries and installers
Posted by CuriousGeorge at 3/23/2006 5:17:30 PM
I recently upgraded an ASP.Net 1.1 app to .Net 2.0 and am now struggling with the different binary system used. Previously a binary was created in the bin subfolder of my ASP.Net app. I could add that binary to my installer. With ASP.Net 2.0 there are no binaries generated in the bin subf...more >>

Active Directory LDAP Authentication Fails in IIS 6
Posted by P Webster at 3/23/2006 4:54:15 PM
We recently moved a web site that validated user credentials in Active Directory from IIS 5.1 to IIS 6, and the validation code no longer works. The web.config file is set to Windows authentication because all we do is verify the user on the login form so we can redirect them to the appropriate...more >>



ASP.Net 2.0 project root question
Posted by Iulian at 3/23/2006 4:32:01 PM
I have a question regarding the asp.net project setup. I created a very simple project located here: c:\web sites\test\ When it runs it runs here: http://localhost:1315/test/Default.aspx In Default.aspx if I put a link that refers to "~/login.aspx" or "/login.aspx" it doesn't work be...more >>

Login.aspx
Posted by Ahmed Hashish at 3/23/2006 4:24:15 PM
I have an asp.net (2005) application using forms authentication. It has a simple login page (login.aspx) that uses FormsAuthentication.RedirectFromLoginPage the problem is that the redirect url always points to the default.aspx although I don't have default.aspx in my web application. ...more >>

getting "Validation of viewstate MAC failed" error
Posted by aaaaaa at 3/23/2006 3:40:27 PM
running a crystal (v10) reporting app on a virtual web server and getting the "Validation of viewstate MAC failed...." error when opening the crystal viewer. Any help please!!!...more >>

Question Framework 1.1 & 2.0
Posted by Matías at 3/23/2006 3:15:06 PM
If I have installed both versions of the framework, can I say to may application use 1.1 or 2.0 or when I run the applicacion will use the higher version???? ...more >>

IDE/Debugger Extremely Slow
Posted by DCC-700 at 3/23/2006 2:34:24 PM
I am running VB for ASP.Net in VS.Net 2003 and am experiencing extremely slow response in the ide at times and the debugger. Below is additional detail on the problem. Any thoughts are much appreciated. VS.Net IDE Extremely Slow Symptoms: · When you type in IDE editor you have to wait seve...more >>

change an attribute of all controls, before the page renders
Posted by neilmcguigan NO[at]SPAM gmail.com at 3/23/2006 2:08:22 PM
i want to enumerate all server controls in a page if it has a text property, change it right before the page is sent to the browser how do i do this? i take it i have to override something like page.Render()... thanks! neil ...more >>

missing identifier ?
Posted by Jon Paal at 3/23/2006 2:00:26 PM
what's missing here ? Compiler Error Message: BC30203: Identifier expected. Source Error: Line 11 Line 9: Public Class GetVol Line 10: Line 11: Private Shared<DllImport("kernel32.dll")> _ Line 12: Function GetVolumeInformation(PathName As String, VolumeNameBuffer As S...more >>

Having problems with Netscape 6+ and XHTML 1.0 Transitional
Posted by vivek at 3/23/2006 1:42:12 PM
I'm using a normal DHTML menu control (known as skmmenu control) and It works fine with IE. But I have Issues in displaying the submenu in Netscape 7+. It doesn't seem to be taking the style.position = 'absolute' and instead it displays the submenu in the same origin. Since I'm working on VS ...more >>

WindowsTokenRoleProvider Anyone?
Posted by progrock at 3/23/2006 1:41:41 PM
Hey All, I'm attempting to put together a "secure" ASP.NET 2.0 application with one requirement that has given me a bit of grief: In a nutshell, if the user's session expires then they should be forced to re-authenticate with the application by providing logon credentials. These credentials ...more >>

XML Documentation in ASP.NET web sites
Posted by gzinger at 3/23/2006 1:37:01 PM
Since I never seen the following question answered, I am re-posting it: Hi Im using ASP.NET 2 with C# in codebehind files and Visual Studio 2005 Team Edition. I have embedded lots of XML Documentation (<summary>,<see>,etc) into my ASP.NET project in code behind files of ASP pages, user co...more >>

javascript library functions not loaded after going from cookieless to cookies?
Posted by Liam at 3/23/2006 1:12:20 PM
We recently decided to go from cookieless to cookies, changing web.config to read cookieless=false. Since making that change, I've noticed that javascript functions kept in included libraries are not available. They'd been working for over a year. The libraries are included in the <HEAD> of...more >>

Microsoft Caching Application Block w/ Web Farm
Posted by Kevin Burrowes at 3/23/2006 12:51:47 PM
I need to implement caching for a large enterprise application and we are planning to use the newest Caching Application Blocks. (Enterprise Library Jan. 2006) We want to cache Business Entities (DTO's) at the service layer and have a few questions. Are there other options than using Mic...more >>

Checkbox and dropdownlist row in repeater row
Posted by RichardH at 3/23/2006 12:49:10 PM
Hi, I have x number of table rows that all should have a checkbox and a dropdownlist on each row. The checkbox could be checked and the dropdown should contain y number of values that are related to the row. I can't find a good control for this in ASP.Net 2.0. Now I use a repeater and ch...more >>

Binding two fields in the DataNavigateUrlFormatString
Posted by genc_ymeri at 3/23/2006 12:44:58 PM
Hi, I would like to bind the hyperlink column but I don't see how to. I tried somethink like this but instead of showing ID nummbers it shows "ID=ID" Any tip is very much appreciated. Genc PS: Code I tested with aHLCol.DataTextField = "RR_ID" aHLCol.DataNavigateUrlField = "FI...more >>

SqlDataSource
Posted by Victor Rodriguez at 3/23/2006 12:37:12 PM
Is it possible to add records and edit records by hand using code on a SqlDataSource and then save it on the server? thanks, Victor ...more >>

need example of how to get assembly info
Posted by Jon Paal at 3/23/2006 12:32:48 PM
Trying to get assembly and hard drive info any working examples in vb available ? I couldn;t find any examples for assembly info. I tried this for hd info but no success. Imports System.Management .... Public Shared Function Volume(ByVal strDriveLetter As String) As String If strD...more >>

ASP.NET Dynamic Gridview Question
Posted by Bishop at 3/23/2006 11:06:07 AM
I have a number of simple select queries that a user needs to be able to execute and display the data on the screen in a gridview. My thought was that I could use a Gridview set to dymanically generate columns and bound to a SQLDataSource. Then the user can click buttons (or whatever) and it...more >>

Asp.Net 2.0 Bug
Posted by Amelyan at 3/23/2006 11:04:26 AM
My testers getting this exception 1% of the time they click button on the page. This happens in both IE6.0 and FireFox1.5. Any ideas? System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: Invalid postback or ca...more >>

Disabling controls on aspx pages
Posted by Fred Flintstone at 3/23/2006 11:01:49 AM
I'm a bit confused about something. I have an aspx page populated with dynamic controls; textboxes, labels, radios and so on. On the page is a Yes/No radio combination and 3 textboxes. The textboxes are visible. If you click the No radio, the textboxes should disappear. In my code, I'm setti...more >>

script tag generating error
Posted by zino at 3/23/2006 10:47:31 AM
on windows XP and visual studio 2005, I cannot load a javascript or a style sheet file. when I try to run the aspx page I get a client side runtime error stating: " A Runtime error has occurred Do you wish to debug? Line 2: Error: Syntax error Yes No " when I click Yes/No, the pa...more >>

Making My first ASP.Net Web Application.
Posted by Husam at 3/23/2006 10:41:27 AM
Hi EveryBody: I am trying to make A new project by using Vb.Net 2003 every time I tried to open New ASP.Net Web application I got This message: Visual Studio.Net Has detected that the Specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.Net Web Applicati...more >>

URL Rewriting: site.com/bandname
Posted by musosdev at 3/23/2006 10:13:36 AM
Hi guys I want to create a situation whereby users can use a band name to access a data page. So.. site.com/bandname actually goes to site.com/music/artist.aspx?id=100 I currently do this by having loads of directories, but that means loads of work if I add a new artist, so I wanted to ...more >>

Uplad progress bar
Posted by Kevin at 3/23/2006 9:56:09 AM
Hi How can I make an upload progress bar like have http://rapidshare.de/ when upload a file to the server?? Thanks =) ...more >>

Response.TransmitFile and Action Canceled page
Posted by mgalvez at 3/23/2006 9:29:29 AM
I'm developing an interface that sends a file to the client. it works but the client also gets an "Action canceled" page (IE) how can I remove this page? or display the application home page? thank you! the conde is in the Page_Load sub: Response.Clear() ...more >>

Question on building projects using VS .NET
Posted by Diffident at 3/23/2006 9:27:01 AM
Hello All, I have a question as to why my users are noticing error when I am building the project on the production system. Here is the problem's background. In order to build the project on the production system, I use the Visual Studio's File > Open From Web and then build the solution. ...more >>

IIS ASP.NET 2.0 Bug
Posted by Chip at 3/23/2006 8:33:57 AM
Argh yourself. You are CLOSE to right. Debugging is something you do to identify the problem SO YOU CAN FIX IT. I will obviously not be fixing IIS even if I do figure it out. Yes, I obviously need to figure out a work around, but my preferred solution woulld have been, "Oh, MS has identified ...more >>

EventArgs e
Posted by clickon at 3/23/2006 8:32:46 AM
You have to put it in every event handler, and i have seen it used but i can't work out what it is, what it does and why it's there. Could someone point me to an explanation because i really havn't been able to find one....more >>

Printing a thermal label
Posted by Beginner at 3/23/2006 7:23:27 AM
I have to print a Fedex shipping label on a Zebra(thermal) printer. I initially had the label information in a base64 string which I decoded into a memory stream. Now I need to send this memory stream to a thermal/label printer. How do I do this? Thanks for any help. ...more >>

ASP.NET 2.0 Intranet starter kit
Posted by Darko Konrad at 3/23/2006 7:16:37 AM
hi guys, i'm about to build an companies intranet portal and i saw on couple of pages that there has been an intranet SK available for VS 2005 beta. In my version of VS2005 i cannot find it any more and on asp.net site neither. since i saw that the portal was designed using webparts it seemed...more >>

Update Databound controls within a DetailsView TemplateField
Posted by clickon at 3/23/2006 6:52:30 AM
This is driving me nuts, it is such a simply thing to do but i cannot for the life of me work out how you are suposed to do it. I want to update the data in DropDownListB based on what is selected in DropDownListA. I am not trying to do anything fancy with AJAX, i am happy to use Post Backs...more >>

Session Variables and Static Variables
Posted by cobus.lombard NO[at]SPAM gmail.com at 3/23/2006 6:30:15 AM
I have found it very easy to have a Helper class that has static members which access Session Variables. For example: public class HelperClass { public static doCustomer CurrentCustomer { get { if(HttpContext.Current.Session["Current_Customer"] == null) ...more >>

Need same viewstate for same page across multiple servers
Posted by Punisher at 3/23/2006 6:05:27 AM
Is this possible? We have 7 webservers servering up the same content, but each has a different viewstate. How can we make them all have the same one?...more >>

NET RUNTIME CRASH ON WIN2K, IIS 5.0
Posted by Les Bell at 3/23/2006 5:46:23 AM
I have a problem similar to that described on http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?query=+Failed+to+load+resources+from+resource+file&dg=&cat=en_us_e0006ee2-ce2f-4563-8421-cf54b6030827&lang=en&cr=us&pt=&catlist=&dglist=&ptlist=&exp=&sloc=en-us but I would like...more >>

Help on mavigation bar ???
Posted by serge calderara at 3/23/2006 5:40:22 AM
Dear all, I have an asp application which is based on different framset with separate banner area. I would like to build on the banner area a kind aof menu sitch board to go to different places... After a user click on a particular menu, I need to show to use the current menu that he has...more >>

Atlas "UpdatePanel" just refreshing the page
Posted by Martin Russ at 3/23/2006 5:26:47 AM
Hi, Playing around with Atlas (March CTP). I have a block of tables followed by a timercontrol that is supposed to update an UpdatePanel for the date/time. The timercontrol is working great, but the whole page flickers when the date/time gets updated. The rest of the page IS NOT being re...more >>

ASP.NET and ASP Conversion
Posted by Baren at 3/23/2006 2:51:17 AM
Hi! All, If I just convert a ASP file extension to .ASPX and place it in a ASP.NET Application, will the page execute?? If no, then how can we make the page execute without much changes to the code(incase there is some alternate method to do so)? Thanks in advance.. Regards, Baren ...more >>

how to pass client side variable to asp.net?
Posted by Beffmans at 3/23/2006 2:44:23 AM
HI how to pass client side variable(javascript) to an asp.net webform? I was thinking using an invisible asp:textbox control to store the value in? any ideas? thanks Bert *** Sent via Developersdex http://www.developersdex.com ***...more >>

Static fields in ASP.NET pages
Posted by mark.norgate NO[at]SPAM gmail.com at 3/23/2006 1:11:52 AM
Hello I'm writing an application in ASP.NET 1.1 and have come across a problem using static fields in my page classes. I have lots of controls on the page that all need to bind to the same datasource, so I thought I'd create a singleton in the base class that reads from the database and pro...more >>

how make a textbox enabled false without postbac k
Posted by Patrick.O.Ige at 3/23/2006 12:00:00 AM
I have a textbox and a submit button on a page, I want the user to type in some characters before i enable or make the submit button visible <asp:TextBox id="txt" autopostback="true" runat="server" Width="70%" Rows="4" TextMode="MultiLine"></asp:TextBox> I used the...more >>

web.config "configSections" error in asp.net 2.0
Posted by wolfgang wagner at 3/23/2006 12:00:00 AM
hi all! i'm trying to define a custom config section like described in the online help of VS2005: <configuration> <configSections> <section name="sampleSection" type="System.Configuration.SingleTagSectionHandler" /> </configSections> <sampleSection s...more >>


DevelopmentNow Blog