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 monday march 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

ItemTemplate/AlternativeItemTemplate & Skin
Posted by Jeff at 3/5/2007 11:44:11 PM
Dear reader :-) ASP.NET 2.0 I have a GridView on my webpage. The ItemTemplate and AlternativeItemTemplate should have different background color. I've tryed this technique which don't help at all, it only displays backgorund color for the label control, it doesn't fill the entire Item...more >>


is there any way to avoid __VIEWSTATE hidden field in the page
Posted by reju at 3/5/2007 10:04:11 PM
Hi, I am not using view state.I disabled the view state, but this hidden __VIEWSTATE variable and some text is coming when we are taking the view source.Is there any way to remove this variable? Reju ...more >>

Pass the name into HTM file
Posted by JoeP at 3/5/2007 9:33:32 PM
Hi All, =20 I have an HTML which I load as string and send it via MailMessage class. oMailMessage.Body =3D cHTMLString =20 Before it is sent as e-mail I need to pass the HTM file the user First and Last in the first line. =20 It is a form where the user enters his/her details a...more >>

Islam, the Religion of Ease
Posted by lovelydiab NO[at]SPAM hotmail.com at 3/5/2007 8:27:15 PM
Excuse me!! Would you stop for a moment?! O...man...Haven't you thought-one day- about yourself ? Who has made it? Have you seen a design which hasn't a designer ?! Have you seen a wonderful,delicate work without a worker ?! It's you and the whole universe!.. Who has made them all ?!! You kn...more >>

Date validation
Posted by Peter Afonin at 3/5/2007 7:12:45 PM
Hello, Can anyone recommend me a regular expression that could validate any date format, including military - dd-MMM-yyyy, i.e. 1-Mar-2007. I've found many datetime validation expressions, but not for this format. Thank you, -- Peter Afonin ...more >>

Menu
Posted by jimmyjoe at 3/5/2007 6:47:10 PM
Hi Everyone, I'm designing a menu with a transparent border around the static menu items. This gives the effect of the items "floating". When I try using the transparent border on the submenu(dynamic) items it comes out white. What am I missing here or is this a bug? thanx... ...more >>

Dynamically changing style definitions in page header
Posted by Jason_SanDiego2006 at 3/5/2007 6:25:36 PM
Hello all, Hang with me, I'm a little new. I'm working on a web application in C# using ASP.NET 2.0 The goal of my application is to have pages whose styles can be dynamically changed based on the logged-in user's saved preferences. The user can define their own styles (font-size, font...more >>

Why am i not getting a session ID cookie??
Posted by spitapps at 3/5/2007 5:19:35 PM
I want to have sessions on my website, this is my web.config file: <configuration> <appSettings/> <connectionStrings/> <system.web> <sessionState mode="InProc" cookieless="UseCookies" timeout="20" cookieName="whatever"></sessionState> <!-- Set compilatio...more >>



Atlas and MSN messenger
Posted by Matteo Migliore at 3/5/2007 5:17:28 PM
Hi! I'm looking for an Atlas sample to use MSN Messenger on a ASP.NET application. The major problem is how to catch asynchronously answers from user. I hope to be clear :-) Thx! Matteo Migliore....more >>

Evaluate Checkboxes entered at Runtime
Posted by Michael Haberfellner at 3/5/2007 4:49:43 PM
hi folks, i do have the following problem (that nearly drives me nuts :) 1. within body-tags i call a void <% void_buildlist("lstService"); %> 2. this void connects to a database and creates code for a selfmade-grid 3. this is posted in the void by response.write and put on the website up...more >>

String to Enumeration
Posted by shapper at 3/5/2007 4:22:51 PM
Hello, How do I convert a string an enumeration value? I have the following Enum: Public Enum MyEnum Book = 1 Movie End Enum Basically, I have a variable of type MyEnum and I want to define a value to it: Dim MyString As String = "Book" Dim MyVar As MyEnum = M...more >>

decode base64 encoded login info
Posted by Mr. T at 3/5/2007 4:16:59 PM
Hello, i'm developing an application where i want to use the login auth application provided by our organisation. However i'm a bit stuck on processing the auth string i get back. The way it works is as follows: people go to a general login form, where they type in their username and pas...more >>

XMLSerialization - appending blocks to existing xml file
Posted by Frank at 3/5/2007 3:24:59 PM
Hi, Let's say I have a file named myFile.xml Within that file I have blocks of data which I'd like to add at different times during the day. e.g. <LogEntry> <Stuff> stuff here </Stuff> <LogEntryDate>date time here</LogEntryDate> </LogEntry> .... <LogEntry> <Stuff> ...more >>

Upgrade Visual Studio 2003 Web Service project to VS 2005, file structure ruined
Posted by robin at 3/5/2007 3:02:26 PM
When I convert my VS2003 Web Service project to VS2005, the file structure is changed automatically and application will no longer build because file location have changed. I've tried to move the files to original locations but continue to get errors because of reference problems. Is it com...more >>

ASP.NET 2.0 Web Site gives Stack Trace without line numbers
Posted by John Kotuby at 3/5/2007 2:52:19 PM
Hi all, I am working on what I "thought" was a Web Project in VS 2005 using VB. I have published the site to an IIS server in our office for testing. When I hit a runtime error I get a basically unreadable stack trace that shows me the function or sub where the error occurred plus an offset i...more >>

aspmenu require click to activate
Posted by pickedaname at 3/5/2007 2:36:03 PM
Hi, How do I require a mouseclick before the root menu items will expand instead of mouse-over on an asp.net 2.0 menu control? I would like to know how to do this with the menu control in the framework and not some 3rd party control, please. To those users out there with an opinion instead ...more >>

Property. What is going on here?
Posted by shapper at 3/5/2007 2:26:13 PM
Hello, I created a Structure as follows: ' Pair Public Structure Pair ' -- [Properties] ---- ' Expression Private _Expression As String Public Property Expression() As String Get Return _Expression End Get Set(ByVal...more >>

Forms authentication - How to create first administrator type user in application
Posted by Matt Adamson at 3/5/2007 2:08:33 PM
If we use forms authentication in our web application we need an initial administrator account from which the first user can log on to create new users and assign roles. How do others do this, use the member ship API to create the first user as part of the installation process or use direct ...more >>

visual studio question
Posted by Mike at 3/5/2007 1:34:19 PM
I just installed a VS 05 onto my new laptop, I can create a new web app, but when I goto Debug, I don't see Run without Debugging as an option, its only allowing me to run my web app in debug mode. How can I just ran my web app and not be in debug mode? ...more >>

AJAX error with GridView
Posted by srinivas at 3/5/2007 12:56:08 PM
Hi All, I'm having a grid view(GridView1) with a hyperlink column.It's ID is Link1 I want to show a popup on hyperlink click. I'm using ajaxToolkit:ModalPopupExtender for that. But when i'm using TargetControlID="Link1" for ajaxToolkit:ModalPopupExtender I'm getting an error System.InvalidOp...more >>

We're shipping!!! - Windward Arrow
Posted by David Thielen at 3/5/2007 12:52:25 PM
If anyone wants to see what I've been working on the last 6 months (all those questions) - http://www.windwardreports.com/arrow.htm -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm ...more >>

Use Custom COntrol in DataGrid
Posted by rn5a NO[at]SPAM rediffmail.com at 3/5/2007 11:09:13 AM
I have created a custom server control which is actually a Button clicking which prompts a user with a JavaScript confirm message asking him whether he would like to proceed or not. If he clicks *OK' in the confirm box, he is taken to the next page. If he clicks *Cancel* in the confirm box, he s...more >>

AJAX.NET
Posted by pickedaname at 3/5/2007 10:52:44 AM
Hi All, I have a progress update control and using the alwaysvisiblecontrol so that my progress indicator shows up without impacting my page layout. I like it. Problem is, it's not centering the first time it become visible. both horizontal and verticle are set to middle and center. Initially...more >>

Why would a URL contain a GUID or Session ID in it?
Posted by jm at 3/5/2007 9:33:25 AM
What would cause a URL to have a GUID in it? I have a guy who made a web page and when you go to default.aspx it works, but rewrites the URL to have a something like http://myserver/path/(some long guid/hex number with parathesis)/default.aspx. That number changes every time. Is it a session ...more >>

Structure
Posted by shapper at 3/5/2007 8:57:26 AM
Hello, I have created a structure, MyStruct, with 3 properties: Name (String), Valid (Boolean) and Type (Enumeration Type). I need to do the following: 1. Create a list of items of type MyStruct using a simple method like: MyStruct.Add(...) 2. Access each list item using a For Loop. ...more >>

Not a Valid Virtual Path
Posted by Larry Bud at 3/5/2007 8:13:09 AM
....error when trying to build a project on a port other than 80 (on a remote server). Happens with VS 2005. I've google the hell out of this and I find people with the same issue, but never any solution. Has anyone been able to do this successfully, WITHOUT getting an alternate IP address...more >>

Calendar control...
Posted by RAB at 3/5/2007 8:00:49 AM
I want to make my calendar control only be able to change the month for the current year. ie I want to be able to scroll to Feb 07, Jan 07 but not to Dec 06. Any ideas of how to set this functionality up? Thanks, RABMissouri2007 ...more >>

Help with XPath query
Posted by Diffident at 3/5/2007 7:39:24 AM
Hello All, I am trying to construct an XPath query against an XML document, for a requirement that I have. Below is the XML fragment: <SUBMISSIONS> <SUBMISSION YEAR="2004"> <MONTH NAME="JAN">10</MONTH> <MONTH NAME="FEB">02</MONTH> . . <MONTH NAME="DEC">78</MON...more >>

User Authentication
Posted by Wannabe at 3/5/2007 7:36:11 AM
When a user accesses our site, I would like to authenticate them and redirect them to the login page if they are not authenticated. Problem is that the method I am using in global runs more than once and the line where I check the session username returns an error the second time through. The ...more >>

NameValueCollection ...
Posted by shapper at 3/5/2007 6:43:24 AM
Hello, I am having some problems in looping through each item in NameValueCollection: 1 Dim a As New NameValueCollection 2 a.Add("My String", City.NewYork) 3 a.Add("My String", City.Paris) 4 a.Add("My String", City.London) 5 6 For Each b As KeyValuePair...more >>

bamboozling error message
Posted by Mike P at 3/5/2007 6:16:10 AM
I am repeatedly getting the error message 'error converting datatype varchar to bit'. I am passing a varchar variable to a stored procedure (where it is also a varchar) and then trying to write it to a table (where it is also a varchar). I have no idea why it is trying to convert it to a bit, ...more >>

Gridview pagination without javascript
Posted by Ismail at 3/5/2007 5:31:54 AM
Hello, What needs to be done to get gridview pagination to work without javascript ie browser has javascript disabled. Is their a property in the gridview control that can be set to do serverside pagination? Many thanks Ismail ...more >>

Handling OnClick and GetPostBackEventReference
Posted by Mark at 3/5/2007 5:13:10 AM
I am writing a control and want to handle an OnClick event on the client-side before then conforming to the postback mechanism. I have got the server-side events working for my OnClick event by adding to the rendered element's OnClick handler using GetPostBackEventReference. How can I provide ...more >>

copying a table in a clipboard
Posted by Daniel at 3/5/2007 4:44:10 AM
Hello Can you please give me a sample code on how to copy a Table into a clipboard using vb.net Thank you...more >>

Is it possible to treat values and items of a DropDownList like a HashTable?
Posted by mark4asp at 3/5/2007 4:43:59 AM
Is it possible to treat values and items of a DropDownList like a HashTable? My page records the value of the ConsultantName in a label lblConsultant and the ID in a hidden field hidConsultantID If I know the value of the ID: hidConsultantID, how do I lookup the corresponding name, given th...more >>

css missing
Posted by jos at 3/5/2007 3:59:00 AM
I am for the first time using css. The problem is that the first page of my application is shown without the css formats, but only in de VStudio environent. The first page is the logon page (not named login.aspx) but with my own coding . When I successfully login then all further pages are...more >>

dropdownlist postback not firing
Posted by GearĂ³id at 3/5/2007 3:17:33 AM
Sorry to repost, but please see below... this is driving me mad at this point. http://groups.google.com/group/microsoft.public.dotnet.general/browse_thread/thread/f36624de068d5333/55a7318a2f318442#55a7318a2f318442 ...more >>

Third-party charting: bubble & radar?
Posted by JDC at 3/5/2007 2:41:57 AM
Hi all, There are quite a few really nice-looking charting libraries out there for ASP.NET, but I need to create some less common chart types, specifically the "bubble" and "radar" charts that Excel offers. Can anyone recommend a library for this? Thanks in advance, JDC ...more >>

dropdownlist
Posted by Eugene Anthony at 3/5/2007 1:44:06 AM
I have a table call category that has two fields (CategoryID,Description). The code bellow will display two description as added on the category table. SqlConnection cnn = new SqlConnection(ConfigurationManager.ConnectionStrings["myConnection"].Con nectionString); SqlCommand myCommand = new...more >>

3-tier development
Posted by Mike P at 3/5/2007 12:57:05 AM
I have been programming for a while in C# and ASP.NET, and on some big projects I have tried to make an attempt to do 3 tier develpoment, putting all my database stuff in a separate class and creating business classes where necessary. But I have been going through the 3-tier development tutoria...more >>

Web.Config and httpmodules
Posted by Mikael Syska at 3/5/2007 12:00:00 AM
Hi, Google gives alot of hits on httpmodules but I can't seem to find any useful on my problem ... I have a site where I'm using my own auth system ... ( guess it could be better but its work, maybe I will make a new one later, or use the build -in ) But to my problem ... I have a Adm...more >>

VB6 dll can not be added into vs2005 web application project
Posted by Victor at 3/5/2007 12:00:00 AM
hi guys I have an issue about adding a vb6 dll into my vs2005 web project. but this dll can be added into a vs2003 project and works fine. Can anyone give me some ideas or possible reasons about why this happens? Cheers Victor ...more >>

New to ASP.NET
Posted by SF at 3/5/2007 12:00:00 AM
I have an default page with one DropdownList that show the category and a gridview control to list Subject and date of the select category (from DDL). I have an SQL Database to supply the control with information. The page seem to work OK except that there is no data (empty) in the page when r...more >>


DevelopmentNow Blog