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 2007 > threads for wednesday march 7

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 Islam Really a Religion of Terror?
Posted by Happy Man at 3/7/2007 11:42:48 PM
Is Islam Really a Religion of Terror? Every time speculation arises that a terrorist attack has happened, Non-Muslims and Muslims alike suspect the Islamic connection. Of course the disclaimers abound, but a lingering suspicion about Muslims is left in the general views of terrorism, even if ...more >>

about CreatUserWizard control
Posted by miladhatam NO[at]SPAM gmail.com at 3/7/2007 10:59:56 PM
how can i change the validation of "password" field of CreatUserWizard control thanks ...more >>

Question regarding code behind mode.
Posted by archana at 3/7/2007 9:44:04 PM
Hi all, I am new to asp.net. I have one question regarding code- behind model. I have written page_load event in code behind as well as in aspx page. Means i am doing mixing of code-behind as well as single file model. Is it possible to write some code in code behind and some in aspx page ...more >>

Alert box doesn't appear
Posted by Jan at 3/7/2007 9:42:27 PM
Hi, Why don't i see the Alert box? The page is redirected without showing it. I also tried with parameter 'False' and 'True'. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim a As Integer a = 5 If a = 5 Then ...more >>

how to make message appear after record is inserted?
Posted by Jan at 3/7/2007 9:21:59 PM
Hello, Just after the new record is inserted in the database using a Detailsview control, i would like to display a short message "the record is inserted". In the aspx file, i defined a hiddenfiekd: <asp:HiddenField ID="HiddenField1" runat="server" Visible="false" /> In the code-behind: ...more >>

ASP.net 2.0 interfacing with DB
Posted by greatwhite at 3/7/2007 8:18:00 PM
Alright, I'm new to ASP.net from ASP 3 and I can see that there are a bunch of fancy database controls. I have an instance where I would like to get information from a single column row by row and then act on that data through if statements. I then like to pass on the row number (id) and have ...more >>

XML Deserialization is returning empty object?
Posted by Frank at 3/7/2007 7:00:37 PM
Hi All, I've been yanking my hair out all day over this one, and finally decided to grab some sample code from MSDN, only to find the exact same problem What's the problem? The problem is that the call to Deserialize( ... ) is returning an empty object and I don't understand why? oIt...more >>

Data ... need advice on this ... a little bit confused.
Posted by shapper at 3/7/2007 6:36:33 PM
Hello, I need to create a data object to hold a number of records with 3 columns. A datatable would do. My problem is this: 1. I will use this as a GridView datasource. 2. I will need to postback so I can Insert, Delete, Update records into this data object. So, of course, the da...more >>



Gridview - is individual cell click event possible?
Posted by K B at 3/7/2007 5:11:03 PM
I would like to create a gridview as below: Project Name 1-1 1-2 1-3 1-4 1-5 1-6 Project 1 BLUE BLUE BLUE BLUE GREEN GREEN more projects I would like to fill the cell with a solid color based on the value of the cell (e.g., documents that are complete (blue...more >>

SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute
Posted by chieko at 3/7/2007 5:02:05 PM
Hello, We recently converted from ASP.net 1.X to ASP.net 2.0 application. Since then, we randomly get the SQL errors when the function tries to get records from SQL. We are using stored procedure and DataAdapter to fill data to Dataset. Does anyone know how to solve this problem? I co...more >>

Multiple Menus Structures required
Posted by Bazza Formez at 3/7/2007 4:41:46 PM
Hi, I am building a new site where I want to utilise the new Menu control feature with .Net 2.0. I can see how this normally works, ie. by defining a SiteMapDataSource control and use of the map.sitemap xml file which defines the menu nodes & sub-nodes that will be used to build the menu. ...more >>

DropDownList box ~ Update Concatenated fields ~Help Please???
Posted by Brad Isaacs at 3/7/2007 4:11:31 PM
Using ASP.NET 2.0 with SQL Server 2000 Inside my dropdown list box I am using an SQL DataSource to select the following data SELECT RTRIM(c.Name_First) + ' ' + RTRIM(c.Name_Last) AS Contact, c.phone As PriPortPhone FROM mppaContacts c Dropdown list box works ...more >>

inconsistent timeout periods
Posted by Arthur Dent at 3/7/2007 3:52:39 PM
Hello all, I am having a significant problem with the security in my app. I am experiencing a problem, where the session apparently times out, and all my session data is reset just as if a new session was started, ... but the FormsAuthentication ticket doesn't expire, and so i wind up with ...more >>

difference between Web-Site and Web-Application-Project
Posted by Hafner Avi at 3/7/2007 3:34:18 PM
Hi, I am trying to find out what is the difference between Web-Site and Web-Application-Project in Visual Studio 2005 ? People – what do you recommend ? Thanks Avi ...more >>

how to make animation object in a webform in visual studio express addition
Posted by moussa at 3/7/2007 3:18:55 PM
iam building a web application and want to let an image and labels appear for a certain period of time then disapper how can i do this in visual studio express adition 2005 visual basic. ...more >>

Add row to GridView
Posted by shapper at 3/7/2007 3:14:13 PM
Hello, I created a GridView which has a function as datasource that returns a dataset. I need to add new rows to the GridView when a button is clicked. Then I have another button which should create a dataset from all rows on the GridView: the original ones and the ones that were added. ...more >>

A design question about format provider
Posted by Nick nkw at 3/7/2007 3:06:41 PM
I am building an asp.net application. However, it had to use a lot of Convert.ToDatetime or Parse. And I had a lot of the following code: IFormatProvider provider = new CultureInfo(ConfigurationManager.AppSettings.Get("culture")); .... DateTime.Parse(lblDate.Text, provider)... .... Conve...more >>

ASP.Net Forms Authentication - Storing Enrypted Ticket In HttpCookie
Posted by Mythran at 3/7/2007 1:59:36 PM
We followed an example found on MSDN to create an encrypted FormsAuthenticationTicket and storing the ticket in a cookie. Is this the "correct" way to store the authentication ticket? We are attempting to create a web service from the web application and our goal is to have the user login ...more >>

AJAX UpdatePanel PostBack Problem
Posted by jobo at 3/7/2007 1:44:17 PM
I have a news section of the website contained within the updatepanel. What I want is that when a news summary is clicked, the news item opens up in that same box. I thought I wired everything up correctly so that it did not do a postback. But when I walked through the execution process, it in f...more >>

SQL Session State and Cookieless set to false
Posted by timothy.alvis NO[at]SPAM gmail.com at 3/7/2007 1:28:08 PM
I have verified the following: Metabase IDs for the IIS websites are identical. machinekey is identical between the two servers. If cookieless is set to true, everything works. If cookieless is set to false, each web server on the farm (only two) has its own sessions. Any suggestions? Any...more >>

asp.net Accessing UNC path - File Not Found
Posted by PP at 3/7/2007 1:21:05 PM
Hi I have a web site (ASP.NET V2.0) that runs under the active user account. When a user tries to load a tiff via from a UNC path it comes up with File Not Found though the user has full access to the UNC path. What possible reasons would cause this problem. Thanks ...more >>

GridView.Sort <> SQL 'ORDER BY'. what's up with that?!?
Posted by Ryan H at 3/7/2007 1:20:09 PM
Given 2 records with 1 'Name' column (varchar): "Tri-Star" "Triangle" GridView.Sort("Name", SortDirection.Ascending) will sort the records like so: 1. "Triangle" 2. "Tri-Star" While a standard SQL 'SELECT * FROM MyTable ORDER BY Name ASC' will sort the records like so: 1. "Tri-Star"...more >>

ASP.net Application using Impersonation
Posted by Buck at 3/7/2007 1:15:59 PM
I have an application that is using impersonation and when I try to launch an executable, the executable is started with the NetworkService account used in the Application Pool identity. My understanding is that it should launch using the logon account. Windows 2003, IIS6.0, and ASP.NET 2.0. ...more >>

Which way to convert to xml
Posted by JJ at 3/7/2007 12:46:54 PM
I've got an n-layer application that fetches data from an SQL database using stored procedures. This information is read into various classes which represent a hierachical structure:. eg. public class Page : Base_Page { private int _parentPageID; public int ParentPageID { g...more >>

GetRequestStream hangs
Posted by ratnakarp NO[at]SPAM gmail.com at 3/7/2007 11:52:44 AM
Hi, I'm new to httpwebrequest programming. I'm using httpwebrequest to pull the rss file with contenttype as "GET". it works fine. I get all the results and store all the values in the list. the list has a url (desclink) property too. i do httpwebrequest again for these url's with contenttype...more >>

New Tab Page As Target
Posted by Fred Chateau at 3/7/2007 10:47:47 AM
What is the HTML anchor attribute to open a hyperlink in a new tab page rather than a new browser window? -- Regards, Fred Chateau http://hotelmotelnow.com ...more >>

Ajax accessing web site problem
Posted by Ben at 3/7/2007 10:17:31 AM
Hi, I'm in the process of learning Ajax, and trying to convert examples out of a book to work in a C#.NET environment. I've hit a snag and need some guidance. The example I'm working on attempts to access an outside web site (GoogleSelect, in fact), and does so by using a PHP script...more >>

Advice and Guidance Wanted
Posted by Rusty Hill at 3/7/2007 10:15:10 AM
I am getting ready to build a new ASP.NET 2.0 web application from scratch. I have not used ASP.NET 2.0 yet. My application is going to use role based security, SQL reporting services, language localization, master pages, themes, etc. The application is going to be an enterprise level "Softw...more >>

The 'SelectedIndex' and 'SelectedValue' attributes are mutually exclusive
Posted by Dooman at 3/7/2007 9:59:31 AM
Hello, I am getting this error when binding a drop down list box to a dataset: The 'SelectedIndex' and 'SelectedValue' attributes are mutually exclusive I have looked at other posts and they al refer to this error when accessing data in the list box. Any ideas? Thanks! Randy DeFor...more >>

XMLTextWriter: Help
Posted by Manny Chohan at 3/7/2007 9:10:05 AM
Hello Guys, I need to generate the following in XML <CrossRef Affiliate="Sabre" Code="XX12334"/> <CrossRef Affiliate="Galileo" Code="XX45678"/> <CrossRef Affiliate="Worldspan" Code="YY123456"/> <CrossRef Affiliate="Amadeus" Code="YY78495"/> I have the Following code: tw.WriteStartEleme...more >>

Profile not saving
Posted by Ismail at 3/7/2007 9:08:57 AM
Hello, I am using asp.net20 membership. I have some properties in web.config <properties> <add name="FirstName" type="System.String" allowAnonymous="true"/> <add name="LastName" type="System.String" allowAnonymous="true"/> <add name="JobTitle" type="System.String" allowAnon...more >>

How to tell the difference between two push buttons in a datagrid
Posted by david at 3/7/2007 9:02:58 AM
I have added two pushbuttons, Select and Update, in a DataGrid, grdFiles, by Property Builder. It seems that there is only one event handler for both, private void grdFiles_SelectedIndexChanged(object sender, System.EventArgs e) in my application code. How to add two separate event handle...more >>

WebServer to host ASP.NET applications
Posted by Aspiring .NET Programmer at 3/7/2007 8:51:39 AM
This is one of the fundamental questions I have. Would greatly appreciate any response. I have been using and still use IIS for hosting my ASP.NET applications. As the size of the application grows and the number of users accesing the application grows to lets say 100 or more, is IIS still a ...more >>

Sort DataSet
Posted by shapper at 3/7/2007 8:34:40 AM
Hello, I have a DataSet with a DataTable that has 2 columns: Level and LevelName I want to sort the rows ascending using Level values. How can I do this? Thanks, Miguel ...more >>

alternate if
Posted by rodchar at 3/7/2007 8:29:39 AM
hey all, is there another way to say the following (seems too wordy) prefix == "TXT" || prefix == "DRP" || prefix == "LBL" || prefix == "CHK" || prefix == "UPD" || prefix == "UPC" thanks, rodchar...more >>

dot net - uploading photos query - help / comments / suggestions
Posted by mike_ni at 3/7/2007 8:11:58 AM
im designing a site (still in my head at the moment) where users will be able to upload photos but I would like somewhere in the upload process, for these photos to be resized down to e.g 600 x 400 to reduce the database size, keep the output a standardised on screen and to reduce viewing/downlo...more >>

Delivering SQL Datatable as EXCEL Spreadsheet to the browser?
Posted by John Kotuby at 3/7/2007 7:55:59 AM
Hi all, Can anyone point me to an article about how to transform an ADO.NET Datatable in ASP.NET 2.0 to appear as Excel in the browser such that the user can open it up on his/her local machine in Excel if they want? Thanks... ...more >>

Seesion Manager
Posted by thejamie at 3/7/2007 7:55:08 AM
Being new at web in general and starting in over my head (http://www.vbdotnetheaven.com/UploadFile/karthik_mcc/SessionWebGardenVb11102005083632AM/SessionWebGardenVb.aspx), I'm hoping to get some general direction on implementing an interface. In the article above, there are public listings of...more >>

Client timeout during long process
Posted by Terry Olsen at 3/7/2007 7:14:04 AM
I have a web app that gathers live data from network pc's and then displays it to the client. It worked fine until I was asked to allow the user to select multiple pc's for display. Now, depending on how many pc's are selected, can take above 10 minutes to return the results. This causes clients...more >>

Find value in DataSet
Posted by shapper at 3/7/2007 7:01:45 AM
Hello, I have 2 data sets: dsLevels and dsLevelsSubscribed. And I created this loop: For Each row As DataRow In dsLevels.Tables(0).Rows ??? row("LevelName") Next row I need to check if there is any row in dsLevelsSubscribed with the same value in column "LevelName"...more >>

Confused about Repeater Events! Can anyone help?
Posted by champ.supernova NO[at]SPAM gmail.com at 3/7/2007 6:03:42 AM
I have a repeater, which contains in its <HEADERTEMPLATE> a drop-down list (set to autopostback). If the page is a postback, I want to modify the SQL of the repeater's datasource, DEPENDING ON the value of the drop-down list. However, I can't evaluate the drop-down list submission at Page_Lo...more >>

Urgent | Highlight Row in DataView
Posted by tirath at 3/7/2007 5:47:02 AM
hi, I have a DataView which has around 50 items(the page has scrollbars). there is a search box on top of the page. when user enters an Id, i do DataView.find("Id"). I get the row index but i need to highlight this row and set focus on this row. that means my page might have to scroll down if...more >>

Protect EXE using defaulthttphandler?
Posted by andy NO[at]SPAM felsconsulting.co.uk at 3/7/2007 4:43:21 AM
Hi I have a website which i have secured using forms authentication. I have also secured htm, pdf, doc, xls files using the httphandlers section in the web.config and routing the requests from IIS thru dotnet. Now I need to secure a .exe application in a subdir. I have made it so we have t...more >>

session related issue
Posted by pintu at 3/7/2007 4:35:26 AM
Hi Friends. in my application i am facing problems in maintaining session state. I am working on asp.net 2.0. So i didnt checked the session on each page and almost the project is completed. Now problem is like after 20 minutes the session gets ended.so session related errors are coming when an...more >>

Regular expressions
Posted by Zeba at 3/7/2007 4:34:48 AM
Hi guys, I need some help regarding regular expressions. Consider the following statement : System.Text.RegularExpressions.Match match = System.Text.RegularExpressions.Regex.Match(requestPath, "([^/]*?\ \.ashx)"); (where requestPath is a string) What does the regex: [^/]*?\\.ashx ...more >>

How to pass argument in image button's click handler
Posted by TarDuk a memory beyond the life at 3/7/2007 4:26:11 AM
I am developing a shopping cart application for jwellary designing \ now i am displaying all the product in the table dynamically. and also show on image button as a add to cart after every item. now when ever client clicks on the add to cart button than i want the item id no in the button's cli...more >>

Remove Items
Posted by shapper at 3/7/2007 4:10:29 AM
Hello, I have 2 datasets, A and B. I need to remove all elements in A that already exist in B. How can I do this? Thanks, Miguel ...more >>

Timeout Ajax
Posted by Arnaud Viscusi at 3/7/2007 2:01:19 AM
Hi, 1- Anybody knows the timeout on Framework Ajax ? 2- And how modify this value ? Best Regards A. Viscusi ...more >>

add together values in collection
Posted by Jeff at 3/7/2007 1:45:16 AM
ASP.NET 2.0 In my webproject I got a class named "Tag".This class contains a variable named "Weight" of datatype int... This is a generic list (I assume it is a generic list) of Tag objects List<Tag> tags = new List<Tag>(); PROBLEM: I want to add together all the Weight values in the li...more >>

Retrieving the selected item from the dropdown list and storing it in a local variable
Posted by yasodhai NO[at]SPAM gmail.com at 3/7/2007 12:51:36 AM
Hi, I used a dropdown control which is binded to a datagrid control. I passed the values to the dropdownlist from the database using a function as follows in the aspx itself. <asp:DropDownList ID="FldType_add" Runat="server" DataSource='< %#GetFieldType()%>' DataValueField="Type" DataTextFi...more >>

[newbie] creating array in C#
Posted by Jeff at 3/7/2007 12:09:33 AM
Hey I'm trying to create a simple array in C#, but it won't compile. There must be something wrong with how I define the array: These are the 2 approaches I've tryed, both gives compile error: String FontScale[] = {"xx-small", "x-small"}; String FontScale = {"xx-small", "x-small"}; Any ...more >>

how to access html <hr> in code-behind?
Posted by Mich at 3/7/2007 12:00:00 AM
Hi, 1) i defined a html line in the aspx file like this but it's still visible:: <hr id="hr1" visible="false" /> So i defined it like this and now it's hidden: <hr id="hr1" style="visibility:hidden" /> My first question: why does it not work with property 'visible' (it's present in the...more >>

compare validator
Posted by Mr. SweatyFinger at 3/7/2007 12:00:00 AM
comparing two textboxes for equality email address and confirm email address once the email address textbox has been filled in, then you switch to the confirm email address textbox, but before you get a chance to type the confirmation, the validator fires off "both email addresses must m...more >>


DevelopmentNow Blog