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 > february 2006 > threads for friday february 17

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

Username and Password
Posted by Miguel Dias Moura at 2/17/2006 11:55:18 PM
Hello, I need to set a basic format for the usernames and passwords in my web site. Basically, I need to know what should be the minimum requirements for having a good security level. Something like having a password with a minimum of 8 letters (6 letters and 2 numbers). This is just an e...more >>


How to access and bind a label inside a GridView Template Field?
Posted by Miguel Dias Moura at 2/17/2006 11:43:19 PM
Hello, I have a GridView in my page with a TemplateField and an Asp Label inside it. I need to access that Label in runtime and change the field to which it is binded. Can someone please tell me how to do this? Thanks, Miguel ...more >>

Display image on gridview from SQL
Posted by Sudha Pune at 2/17/2006 10:50:47 PM
I have not found any simple way for the above in the groups...can any one post...take the scenario of northwind(2005) categories table which have the column of picture as image type...i want to load all images into a gridview in simple way...can any one help... thanks a lot ...more >>

Generate code documentation xml for ASP.NET 2.0 website
Posted by Carl Johansen at 2/17/2006 10:40:19 PM
Hi all, I have an ASP.NET 2.0 website in Visual Studio 2005 (ie I open it with File | Open Web Site...). I have put XML comments in the source code in the App_Code directory (with <summary> tags, etc) and I want to turn these into XML files that can then be run through NDoc (along with app...more >>

Close ModalDialog form after saving data
Posted by laks at 2/17/2006 9:58:28 PM
Hi I'm opening an aspx page with javascript: window.showModalDialog("mypage.aspx", "", "status:no"); In mypage.aspx I've got a button which shall first save the displayed record in the C# code behind (this works fine) and if successfull, mypage.aspx shall be closed (window.close). Dat...more >>

Image Rollovers with the Hyperlink Control
Posted by Nathan Sokalski at 2/17/2006 8:28:53 PM
I have several System.Web.UI.WebControls.HyperLink Controls which I want to display as rollover images. I know how to make these manually using the <a> and <img> tags or the <a> tag and a System.Web.UI.WebControls.Image Control or a HyperLink and Image Controls, but the onMouseOver and onMouse...more >>

+ in URL causing problems
Posted by Terry Burns at 2/17/2006 8:03:21 PM
Hi i have noticed in my IIS logs that there are 404 errors when crawlers use + signs to delimit search strings, this is only more recently. IE /courses/NET+Framework+Course.htm ' causes errors if they use spaces /courses/NET%20Framework%20Course.htm Then no problems. Is there a s...more >>

Is there a way to know if a user is browsing my site?
Posted by andrea at 2/17/2006 6:19:04 PM
I should make a page that modify the web.config file, appsettings area. For what I know, every modify to config file mean a reboot of the context application, so if a user is browsing on a web site, it mean losting session and everything .... and in a shopping cart scenario it's not exactly th...more >>



accessing datalist in repeater
Posted by jjack100 NO[at]SPAM gmail.com at 2/17/2006 5:15:36 PM
I have a form that is submitted to another page. The form contains a variable number of dropdownlists within a repeater. When the form is submitted, I need to access the values of each dropdownlist. I never know how many dropdownlists will be present in advance. Also, both the repeater and ...more >>

GridView ASP.NET 2.0 Column Heading Justification
Posted by dm1608 at 2/17/2006 4:50:08 PM
I have two columns in a 6 column GridView that I woud like to left-justify. How do I do this...? I see thwere I can see the alignment for ItemStyle within the properties, but I do not see anything for headers. Any help would be appreciated. ...more >>

GridView ASP.NET 2.0 Question
Posted by dm1608 at 2/17/2006 4:46:11 PM
Hi, I'm using a GridView and an ObjectDataSource to display data. How can I display a "No records found" message if there are no query results? Currently, I'm getting a blank page since the GridView has nothing to display. Thanks ...more >>

Formating Textbox value as short date...
Posted by Alper OZGUR at 2/17/2006 4:10:07 PM
I want to format the text of Textbox by javascript... Any idea? ...more >>

Persistent Cookie not working
Posted by jrhea2006 NO[at]SPAM kellogg.northwestern.edu at 2/17/2006 4:01:42 PM
I want my site to remember users when they come back without requiring them to login again (assuming they checked "remember me" on the login control). I've tried increasing the timeouts to 3000000+ but it still requires users to login if the session times out (roughly 30 minutes or so). Wha...more >>

This could be shorter tight? (String to Hex)
Posted by Edwin Knoppert at 2/17/2006 3:18:06 PM
public static String StringToHex(String sString) { if (sString.Length == 0) { return ""; } StringBuilder sb = new StringBuilder(sString.Length * 2); Char[] chars = sString.ToCharArray(); String T = ""; foreach (Char c in chars) { T = "0" + Convert.ToString(c, 16).ToUpper(); sb.Append(T.Subs...more >>

health monitoring
Posted by russell.lane at 2/17/2006 3:17:39 PM
This is a health monitoring for web applications / web services question. I'm trying to set up health monitoring for web services and a web application. To start very simply, I want to turn on event logging for web requests. To do this I added the following markup to the <system.web> sect...more >>

howto launch an executable from an aspx page
Posted by Abraham Andres Luna at 2/17/2006 3:08:50 PM
hello everyone, i am having a hard time launching an executable from an aspx page. i have already setup impersonation in the web.config file like so: <?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <system.web> <authorization> <allow use...more >>

Get windows account details from user
Posted by McGeeky at 2/17/2006 2:29:01 PM
Hi. We are using Windows authentication and can easily get the Windows login account name through Context.User.Identity.Name. But is there a way to retrieve the First Name and Last Name properties of the login from Active Directory? Thanks -- McGeeky http://mcgeeky.blogspot.com ...more >>

ASP.NET capture login id... LDAP?
Posted by Chris at 2/17/2006 2:17:00 PM
I want to capture a users windows login Id and display it in asp.net web page (using VB.net). Any and all suggestions accepted.. A code snippet wud be really appreciated. Read an article in MSDN (LDAP), but cud'nt make it working. ...more >>

Run time complitation
Posted by Joel Barsotti at 2/17/2006 2:00:33 PM
Sometimes when I ftp up new files the server can't find name spaces or give me errors like Unable to cast object of type 'ASP.mainnav_master' to type 'ASP.mainnav_master'. Most of the time these errors are associated with files that are unrelated to my upload. Any idea what causes this? ...more >>

config GridView so row shows in edit mode
Posted by John A Grandy at 2/17/2006 12:38:34 PM
I'm not using SqlDataSource or ObjectDataSource. I'm handling events , similar to approach commonly used in 1.1. DataGrid. My question is : How do I configure a GridView's edit mode row format ? Here is my aspx : <asp:GridView ID="gvTasks" runat="server" AllowSorting="true" BackColor=...more >>

Back Button Problems
Posted by TCB at 2/17/2006 12:22:48 PM
I have a problem...I have a classified adds web app. This if what is happening: 1. The user enters the site 2. The user checks one of the adds. This web page has a user control that load similar adds to the one the user has currently selected, in this same user control there is a form so t...more >>

Getting a domain name of a site
Posted by Adam Tibi at 2/17/2006 12:07:28 PM
Hi, Is there a way of getting the domain name of tghe currently executing site, I tried using this silly code: public static string GetDomainName() { string serverName = System.Web.HttpContext.Current.Request.ServerVariables["SERVER_NAME"].ToLower(); if(!serverName.Contains(".")) { ...more >>

Control access to Page
Posted by Joe at 2/17/2006 11:59:44 AM
Hello, Can a User Control interact with HTML Controls in the calling Page (anything with a runat="server") from the control? So, code in the Control impacts, for instance, the visibility of an HTML Control in the calling page? Any links or pointers would be appreciated. Thank you, ...more >>

asynchronous file upload
Posted by Marco Assandri at 2/17/2006 11:53:27 AM
Hi, I saw some web sites where I can upload file asynchronously. May I do the same think with asp.net? ...more >>

Retrieving the profile for a particular username?
Posted by Jéjé at 2/17/2006 11:41:58 AM
Hi, I want to access the profile of a particular user to apply / change some parameters. Like a list of authorized projects. (and other properties) The administrator will go on a web page, select the user, change the list of authorized projects, save it. how to do this? thanks. J...more >>

RegisterClientScriptInclude
Posted by Tom at 2/17/2006 11:39:11 AM
I am new to ASP.NET. I am converting a fairly good sized app from classic to .net. Some of my pages have a lot of controls and javascript functions. I would like to keep these intact as much as possible. I have put my javascript in a seperate file and I am trying to include it using Re...more >>

Looping Forms Collection Error
Posted by greg at 2/17/2006 11:31:53 AM
HI, I have an asp page that loops through the forms collection gathering data from input controls that web surfers have entered in. The problem I have is when I get to the submit button, I get the follow error "Type mismatch: '[string: "Send Me the Brochure"]' " "send me the brochure" is the ...more >>

persist a class over a session - concept
Posted by Xavier at 2/17/2006 11:28:17 AM
hello, i have a class, for example :"CustomerClass" , with a set of public properies like CustNr,CustName,CustEmail .... The class is initialised when the session is started. What is the best way to persist the property values? Must each property stored in a separate session, and by each a...more >>

Public ASP.NET Web Form Demonstration
Posted by John Rivers at 2/17/2006 10:57:26 AM
Hello, I have been looking for a demonstration of "best practice" web application using asp.net web forms, in particular looking at an app that shows a typical database application with multiple users inserting, updating and deleting records in a table, showing concurrency control etc. Ca...more >>

Error when creating a new Web Service
Posted by SBlain at 2/17/2006 10:42:29 AM
I have an application which runs in our development enviroment which is Windows Server 2003 with the DOT.NET 1.1 framework. OUr production eviroment is W2K Server with SP4. We have other ASP.NET applications and web services running on the same server wich are running perfectly fine, it is onl...more >>

2.0 GridView .. Sorting Question
Posted by sloan at 2/17/2006 10:34:22 AM
Ok, I've gotten somewhat handy with the new GridView. And I have it bound to a business object datasource, via the ObjectDataSource. Lets say I have 3 databound columns EmpID, LastName,FirstName I have it working where.... If I click the Header, that it will sort based on the Header I cl...more >>

microsoft access driver problems
Posted by somersbar NO[at]SPAM yahoo.com at 2/17/2006 9:17:16 AM
hey, ive been trying to set up a web form in visual basic.net that can access a microsoft access database. i need to use odbc also. i can get it working using a windows form but not a web form. might be that ive set up the database wrong using the odbc data source administrator? i get an e...more >>

wizard control
Posted by Remoting at 2/17/2006 9:14:27 AM
I am trying to customize the side navigation template in a wizard control. Is there a way to highlight the sidebar button when a corresponding page is loaded on the wizard? Thanks in advance, Anil ...more >>

Distribution of Migrated Application
Posted by mwieder NO[at]SPAM gmail.com at 2/17/2006 8:42:48 AM
We migrated our ASP.NET 1.1 application to 2.0. We want to deploy using the fully compiled mode and have made the appropriate selection in teh IDE to publish a non-updatable site. However, what gets published are more files then it would appear we need. I understand that empty copies of the a...more >>

Using hidden form fields to preserve state
Posted by Mark at 2/17/2006 8:38:49 AM
Assume you have a web application with many different web pages, and you'd like to avoid using cookies and storing session state in any form. Assume further that bandwidth and security are not issues. Could you conceivably store a serialized object containing state information in a hidden ...more >>

Membership Services Problem
Posted by Wayne Wengert at 2/17/2006 4:29:41 AM
I am trying to add some profiles to an ASP.NET 2.0 application that uses the membership services login control. I created a Sub for Public Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As EventArgs) But that event never fires. The new registration information is getting ...more >>

Please help with regular expression
Posted by paulsmith5 NO[at]SPAM hotmail.com at 2/17/2006 1:17:06 AM
Hi, Not sure if this is the correct ng for posting this question but I am using aspx and I couldn't find a more suitable alternative. Anyway I'm developing a web app and I want to validate a users input on a form. I need a regular expression to validate a string which must be from 1 to 5 cha...more >>

SmtpException with email form
Posted by Helter Skelter at 2/17/2006 12:39:29 AM
hi everyone, i'm sorry for bugging you with this email form but i need it done. i have some code that is executes at the press of a button: System.Net.Mail.SmtpClient EmailMessage = new System.Net.Mail.SmtpClient(); EmailMessage.Host = "smtp.gmail.com"; EmailMessage.Send(F...more >>

How to do this in ASP.Net 2.0 ?
Posted by Luqman at 2/17/2006 12:00:00 AM
A user should be able to access the page 2 only via Page 1. If he tries to go to page 2 directly, unauthorised access error should occur. Any idea please ? Best Regards, Luqman ...more >>

ASP.NET Dev & Browsers!
Posted by Adam J Knight at 2/17/2006 12:00:00 AM
Hi all, What browsers do you all use when developing & testing ASP.NET applications? Are there any recommendations, or just whats on your pc?? Cheers, Adam ...more >>

Test if Session Variable Exists!!
Posted by Adam J Knight at 2/17/2006 12:00:00 AM
Hi all, I am trying to test to see if a Session variable exists. This was my initial attempt, and doesn't work int intInstructorID = (Session["InstructorID"].ToString() == null ? Convert.ToInt32(Request.QueryString["InstructorID"]): Convert.ToInt32(Session["InstructorID"])); Can anyo...more >>

The request failed with HTTP status 401: Unauthorized
Posted by ad at 2/17/2006 12:00:00 AM
I have a WebService in localhost, and the set in the web.config is <add key="WebReference.Service" value="http://localhost/HealthService/Service.asmx"/> and the code to refer the WebService is WebReference.Service wsHealth = new WebReference.Service(); But when I use code to execute a ...more >>

"Page Cannot be Displayed" problem with aspx on IIS6
Posted by Nestor at 2/17/2006 12:00:00 AM
Hi, I have a aspx application running on II6. I've set security to be only Integrated Windows Authenication. When I access the website from the server PC I can access the site. When I try to connect from another PC, I'll first be prompted with a username and password as expected, but when I...more >>

How do I?
Posted by Mr Ideas Man at 2/17/2006 12:00:00 AM
Trying to use a DataItem value in an if statement. Cause it isn't a data binding expression..'Container' is not recognised. Is there some other way i can get at this value??? It is contained within a Datalists item template. <%If(IsDBNull(Container.DataItem("crbk_disabled_ses...more >>

Is there any best tools or methods to trace the web page processing?
Posted by ABC at 2/17/2006 12:00:00 AM
Is there any best tools or methods to trace the web page processing? I want to monitor what methods and functions to be called when I debug the website. ...more >>

Requested registry access is not allowed
Posted by Patrick.O.Ige at 2/17/2006 12:00:00 AM
Hi All, After installing Enterprise Librabry and building the libraries when i load an aspx page i get the error :"Requested registry access is not allowed" I'm about to look into it but if anyone here has tackled the error before let me know Patrick [SecurityException: Requested reg...more >>


DevelopmentNow Blog