Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > june 2006 > threads for wednesday june 28

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

session state with user login2
Posted by nasirmajor NO[at]SPAM yahoo.com at 6/28/2006 11:18:45 PM
dear all, a simple quetion from still a bigginer in asp.net i have a simple webpage with username and password which is linked with database. now when user gives his username and password and if information is right he does move to the required webpage. but i want the session to start with his...more >>

Capture the Click Event ASP.NET 2.0
Posted by rishabhshrivastava NO[at]SPAM gmail.com at 6/28/2006 9:06:29 PM
Hello ALL, I have a specific requirement and need some suggestions on how this can be done... I have a web page containing several User Controls and I need to Update the database as soon as I make any change in values of any control i.e. If I change the text of TextBox and click any where else ...more >>

ASP.NET 2.0 Session_End Question
Posted by CK at 6/28/2006 8:10:47 PM
We recently upgraded a 1.1 app to 2.0. We are experiencing a strange bug that happens randomly. When a user is authenticated a string variable is added to the session. During debugging I put a watch on this variable and the sessionID. Strangley the sessionID goes in an out of scope, meaning ...more >>

User Controls
Posted by tshad at 6/28/2006 6:37:34 PM
I created a User Control that just does some VB code and doesn't have any HTML in it. Mainly it is an initialization piece that I want to put on all my pages. It just has this code: *************************************************** <script runat="server"> Sub Page_Load(sender as Obje...more >>

styling the GroupName in asp:Panel
Posted by Sridhar Chinta at 6/28/2006 6:33:47 PM
hey all i am not able to change the color of Groupname in panel control from blue to black any suggestions? ...more >>

asp.net and UserSettings
Posted by Tigger at 6/28/2006 6:22:49 PM
I've just found out that asp.net will not allow the use of UserSettings in its config file. This seems to mean that I cannot use any dlls which have UserSettings!!!! It makes sense that asp.net does not provide the means for users to modify settings, but it does not make sense that my appli...more >>

Binding data to radiobutton in a FormView
Posted by sck10 at 6/28/2006 6:22:19 PM
Hello, I am trying to use a radiobutton inside of a FormView for editing data. My question is how do you bind the radio buttons to the data field? Thanks, sck10 <td style="width:30%; text-align:center;"> <asp:RadioButton id="rbn01Approved" runat="server" Text="Approved" TextAlign...more >>

unexpected tilde ~
Posted by jbolty at 6/28/2006 6:05:29 PM
There have been a few threads talking about using the tilde ~, t reference the webroot path. My problem though is handling an unexpecte tilde in a url. this url: http://localhost/mysite/~Default.aspx returns this error: Invalid file name for monitoring 'C:\Inetpub\wwwroot\mysite\~De...more >>



Problem with alert message
Posted by Vivian at 6/28/2006 6:00:33 PM
I've created a web page with ASP .NET and C#. Say my aspx filename is "WebForm1.aspx", I have created another C# file named "Details.cs". My problem is I want to prompt an alert message from both WebForm1.cs and Details.cs, WebForm1.cs works fine, but no message can be shown from Details.cs...more >>

Failed to access IIS metabase (ASP.NET 2.0)
Posted by Kivak Wolf at 6/28/2006 5:39:32 PM
Hey all, First off, I know some people have had this problem, and I read their post. However, I am still clueless... =( Here's the problem: I have a local IIS on my computer which I am using to run ASP.NET 2.0 locally. However, after I build my web page and try to show it in the browser, it...more >>

Doesn't work: <td runat =server background="~/Images/Header2.gif">
Posted by Maxwell2006 at 6/28/2006 4:23:17 PM
Hi, Using ASP.NET 2.0, I have this tag in my asp page: <td runat =server background="~/Images/Header2.gif">&nbsp;</td> The problem is when I run the page, the server side TD tag renders in this format in html output: <td background="~/Images/Header2.gif">&nbsp;</td> I expect ASP....more >>

partical classes
Posted by suspended NO[at]SPAM gmail.com at 6/28/2006 3:04:05 PM
In my ASP .NET application, I have two partial classes A and B that belong to the same namespace "DataBank". I need to manipulate an object in class A from within class B. Since partial classes cannot be accessed through the namespace, how can I access the variables of one class from the other? ...more >>

windows media
Posted by rodchar at 6/28/2006 2:43:01 PM
hey all, what do i need to do to play a windows media file on my web page? thanks, rodchar...more >>

Native .NET Function to Bind to WebControl via ID String???
Posted by ChrisFrohlich at 6/28/2006 2:30:01 PM
Is there a function I can use to bind to a web control on an ASP.NET 2.0 page if I have a string for the ID of the control? I'd like to be able to throw an ID string at a function and bind a control object to a textbox control without having to loop through all the controls on the page. ...more >>

Client-Side User Confirmation Within DataGrid
Posted by simon_eyer NO[at]SPAM hotmail.com at 6/28/2006 2:28:29 PM
Hi, I use a datagrid with a delete command. I create a validation on the delete command and i have a problem: the confirmation message is supposes to appear each time I do this command but it appear just sometimes. Is anyone can tell me how to get this message everytime I use this command ? tha...more >>

how to add user controls
Posted by Ufit at 6/28/2006 1:54:51 PM
Asume I have panel on a webform and I created few user controls (.ascx) How do I programaticaly add my user controls to that panel so it displays them as some sort of controls list? I've tried instantiating class and adding by panel.Controls.Add(mycontrol) but it doesnt work and nothing comes up....more >>

Visual Studo 2005/Visual Source Safe 6.0 Weird behavior.
Posted by clintonb at 6/28/2006 1:15:39 PM
Using Visual Studio 2005, I created a new website: File->New->Web Site and chose the ASP.Net Web Site template. Saved it in location c:\Projects\GCSLRMS_DotNet\WS\WebSite1. It created the solution file: C:\Documents and Settings\clintb.GCSSOFTWARE\My Documents\Visual Studio 2005\Projects\We...more >>

Idseparator not set as default
Posted by Simon Tuohy at 6/28/2006 12:51:00 PM
Hi, I am using VS2005 to build a web application. I am currently at the prototyping stage, so best practices are not so important. I need to refer to a control on an ASP page from within some Javascript. I am setting the ID of the masterpage to "Master", so that all my controls are named ...more >>

Modal Popups in ASP .NET
Posted by suspended NO[at]SPAM gmail.com at 6/28/2006 12:18:11 PM
I recently saw an application which uses a frameless popup while loading (i.e. a popup appears on top of the application, not inside the browser window). How can such popup be displayed in the application while its loading? Here is a screenshot: http://www.zerdex.com/working.jpg Thanks. Je...more >>

Dynamic HTML in ASP.NET
Posted by Colin at 6/28/2006 12:14:35 PM
Hello, I can manage quite well in ASP but would like some advice in the best way to achieve dynamic layout in ASP.NET and still keep the page and code separate. Let's say I already have a data source which contains a few records with a picture link and a label. That's simple so far but no...more >>

FreeTextBox problem with validate request
Posted by Smokey Grindle at 6/28/2006 11:44:53 AM
to start off with the page the free text box (version 3) is on has validateRequest="false" in the page directive already... but even with that when I am in the page and then click on a link to another page (as long as its changing pages, not posting back) it says this System.Web.HttpExcept...more >>

VS 2005 - The Project Location is Not Trusted Dialog Box
Posted by scott at 6/28/2006 11:42:44 AM
Hi, When opening a VS 2005 project on a server i get the following message: "The Project Location is Not Trusted Dialog Box" I then cannot see the project. Im opening the project from a mapped drive and i have full rights on it. Thanks for any help. Scott ...more >>

Getting a random letter.
Posted by darrel at 6/28/2006 11:05:42 AM
I can grab a random number in vb.net like this: Dim RandomClass As New Random Dim RandomNumber As Integer RandomNumber = RandomClass.Next(1, 26) However, what I want is a random number. Short of making a case statement with 26 options, is there a more streamlined way to get an integer betw...more >>

From ASP/VB6 to ASP/VB .NET
Posted by Patrick Bates at 6/28/2006 10:54:36 AM
We have a few web applications we are beginning to migrate over to .NET, a process which began by rewritting several of our ActiveX controls as Windows Form Controls which access Web Services. Our next stage is to begin converting the VB6 DLLs to VB.NET, and finally to convert the ASP pages t...more >>

Reset Form error (FormView - ASP.Net 2.0)
Posted by sck10 at 6/28/2006 10:34:58 AM
Hello, I am using the following javascript (document.myform.reset();) to reset my form values in a FormView. My reset button works, but I have the following statement at the bottom of Internet Explorer bar: "Done, but with errors on page". Any help with this would be appreciated. Than...more >>

Cannot Connect to Remote Server
Posted by leeo at 6/28/2006 9:15:40 AM
This is driving me absolutely mad. We've been using this code to connect to a remote site: System.Net.ServicePointManager.CertificatePolicy = New cCertificatePolicy wr = CType(WebRequest.Create(goSettings.NHSDPBClaimsURL), HttpWebRequest) nc = New Netwo...more >>

Best way to dump HTML strings to a page in ASP.Net?
Posted by mathewda NO[at]SPAM gmail.com at 6/28/2006 7:59:34 AM
I'm currently work'n on a project where I'm dynamically generating some HTML as text into a string builder. My ASP page has a <span> tag on it and after I gernerate HTML to my string builder I concat all the strings and set the span's innerHTML property to this output. What I'm wondering is if t...more >>

session state with user login
Posted by nasirmajor NO[at]SPAM yahoo.com at 6/28/2006 7:34:06 AM
dear all, a simple quetion from still a beginner in asp.net i have a simple webpage with username and password which is linked with database. now when user gives his username and password and if information is right he does move to the required webpage. but i want the session to start with his...more >>

Send email with asp.net 1.1
Posted by amjad at 6/28/2006 7:17:02 AM
hi how to send email through groupwise not smtp with asp.net 1.1 lang=c sharp.. thanks...more >>

UNIT TESTING FOR ASP.NET 2.0
Posted by ni_no_spam at 6/28/2006 6:30:02 AM
Hi, In my recent ASP.NET project I have made the use of NUNIT to test out the libraries. However I would be interested in unit testing the front end (i.e. simulating a user browsing the web site, clicking buttons, filling out web forms, etc...). After a bit of Googling, I found NunitAsp ...more >>

dynamic columns and datagrid items
Posted by SMai24 NO[at]SPAM gmail.com at 6/28/2006 6:22:19 AM
created 4 boundcolumns dynamically or programmatically and bind them to a datasource, when client click on a button before posting back to the server, i am trying to extract the data from the datagrid throught its datagrid.items, but nothing is there(count = 0). Does anyone have any clues about...more >>

Invalid Cast Exception
Posted by Lammert at 6/28/2006 6:21:16 AM
Good afternoon, I have a very strange problem. When I execute the code below the program throws an InvalidCastException. When I debug the code I see e.Item.DataItem is an object from the type OrganisatieOnderdeel. When you read the additional you can see the types are the same. How can I solv...more >>

Creating two different session's from the same page
Posted by Vidds at 6/28/2006 6:03:01 AM
I have a asp page on one(www.abc.com) site from which I click one hyperlink which opens a aspx page of another site (www.xyz.com) now I click the same link and open one more instance of the same site (www.xyz.com) , Now in this scenario is it possible to maintain 2 different sessions in those ...more >>

Downloading Multiple images in one request
Posted by renil at 6/28/2006 5:43:27 AM
I am trying to extend Microsoft Visual studio Personal Website starter kit. In that, we can only download one picture at a time. I need to download the entire Album to my local machine. The photos are saved in SQL Server. From that how can I download the entire photos in one Album? Thanks and...more >>

System.NET.Mail and Outlook
Posted by anewell NO[at]SPAM valassis.co.uk at 6/28/2006 4:05:07 AM
Is there any way that I can use the System.NET.Mail classes to send an email so that the sent emails appear in the Sent Email folder in Outlook for the email address of the person that I am sending the email from ...more >>

Pass values from URL to other pages ?
Posted by velu at 6/28/2006 3:59:02 AM
i have a page A and Page B. in Page A have 2 links to Page B. to display a set of date based on condiction set in url.. like in page A link1 = pageB.aspx?id=1 link2 = pageB.aspx?id=2 so when page B opens it sould get the values from the url and run a queary.. like SELECT * FRO...more >>

Freeze columns in GridView ASP.NET2.0(Urgent)
Posted by Abhijeet Kumar at 6/28/2006 3:56:02 AM
Hi I am working with ASP.NET2.0, How can i freeze some of the columns of GridView Control. Thanks in Advance. ...more >>

ASP.Net 1.1 Application Object & ADO.Net DataSet
Posted by msuk at 6/28/2006 3:50:01 AM
All, I have a VB.NET/ASP.NET application that uses some common data throughout. Now what I would like to do is instead of hitting the database every time to fetch back two dataset of 5 rows 2 cols I would like to use the application object to store these 2 dataset. I would like to know if...more >>

How to add extra field(In stock/Out of stock) to a DropDownList ?
Posted by savvy at 6/28/2006 3:48:26 AM
I am developing a Garments shopping cart. On the single product page where the customer selects size and colour of a garment and if its ok for him, then adds to his basket, so every time he checks for Colour (dropdownlist) and Size (dropdownlist) I'm checking whether the Item is "In Stock" or "O...more >>

Always display decimals using UK/US format?
Posted by JDC at 6/28/2006 2:52:27 AM
Hi all, Is there a recommended way (i.e. not a bodge) to get a GridView to always display decimal numbers using a dot as the decimal separator, regardless of the locale the user is viewing the page from? (I.e. 3.1415 not 3,1415) Thanks in advance, Jeremy ...more >>

Performance between Html with run at server and Webserver controls
Posted by thomson at 6/28/2006 12:08:44 AM
Hi all, if i make an Html input control with run at server attribute will there be more performance when compared to Webserver controls, and will there be a Viewstate for Html control with runat server attribute, Can anyonw give some insigts on this Thanks in Advance thomson ...more >>


DevelopmentNow Blog