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 > may 2006

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

DateTime Funk in DropDownList...
Posted by Vagabond Software at 5/31/2006 11:49:43 PM
I'm using a DropDownList in an EditItemTemplate column. This DropDownList will only ever have two dates in it; Now and the default DateTime value (1/1/1900 12:00:00 AM). Somewhere, somehow, the DropDownList is interpreting the default DateTime value as a string value "1/1/0001 12:00:00 AM"...more >>


Input validation on detailsview
Posted by Kjell Arne at 5/31/2006 11:45:01 PM
Hi! I have a detailsview control in a webpart with some templated fields on. I set the ValidationGroup property to som value on these fields to distinguish from other web parts on the page. However, I'm not able to set the same ValidationGroup on the submit controls on the detailsview. Thos...more >>

How to Implement a Browse Button in asp.net WebApplication
Posted by conckrish NO[at]SPAM gmail.com at 5/31/2006 11:10:20 PM
Hi all, This is all about ASP.NET WEB APPLICATION... I have a Button and when i click that button... i need to open the File Dialog through Which i have to select the Image Path... And When i press the OK Button of the File Dialog ..... i have to get the File name selected and set it as T...more >>

Files Transmitted Via Response.BinaryWrite()
Posted by A_StClaire_ NO[at]SPAM hotmail.com at 5/31/2006 8:31:46 PM
hi, I'm using an .aspx page to distribute files via the following code. items in caps are constants. Response.ContentType = RESPONSE_CONTENT_TYPE; Response.AddHeader(RESPONSE_HEADER_NAME, RESPONSE_HEADER_VALUE_PREFIX + sTargetFilename); Response.BinaryWrite(abBytesToWrite); my quest...more >>

ViewState (v1.1) gets corrupted after 978th characters
Posted by Jerry at 5/31/2006 5:52:59 PM
Hi, I've been getting dozens of the same exceptions every week from our web server (running asp.net v1.1). I looked at the viewstate in the exception, all of them shared the same problem: having some extra characters (0x21 0x0d 0x0a 0x20, which is "!\r\n ") inserted after the 978th characte...more >>

How to initialize dropdownlist value in a gridview column edit template
Posted by keithb at 5/31/2006 5:17:43 PM
I have dropdown list in a gridview column edit template. It works OK, except when I edit a row, the dropdown list does not initialize to the existing value that shows in the textbox that displays in the item template. I tried to initialize the selected value of the dropdown list with some line...more >>

cannot convert from 'string' to 'system.datetime'
Posted by John at 5/31/2006 4:52:33 PM
I have a drop down that is showing dates, I need to pass the selected date to my proc, so I pass it like this; getCarSales(Convert.ToDateTime(carTimeFrame.selectedItem.value).ToShortDateString()); but when i compile I'm getting the error" 'cannot convert from 'string' to 'system.datetime' ...more >>

Regular expression for stripping tab and new line characters in Render
Posted by paul.hester NO[at]SPAM gmail.com at 5/31/2006 4:42:57 PM
Hi all, Does anyone have a good regular expression to strip tab and new line characters in the Render method? Thanks, Paul ...more >>



Trying to build website
Posted by Arthur Dent at 5/31/2006 3:59:29 PM
Hello all, We have a development web server where we host our sites under development and let clients look at them as they are coming along at milestones to make feedback and suggestions. I am developing websites (ASP.NET 2) against this server, using VS.NET 2005 from my machine, running W...more >>

Better datepicker control?
Posted by Klaus Jensen at 5/31/2006 3:41:34 PM
Hi! Can anybody recommend a nice datepicker-control, which works like the one for Windows forms? I need the combination of being able to enter a date manually (and have it validated) - and pick a date using a popup-calendar. Thanks in advance. :) ...more >>

Master pages and Redirects & paths?
Posted by Rob R. Ainscough at 5/31/2006 3:36:47 PM
I'm using a single Master page. I'm having some strange results using Redirects in master pages using relative pathing i.e ~. I'm using Form authentication and whenever I navigate to my Login form (under a different dir called Secure) and then navigate back to my main form under root dir a...more >>

Session management
Posted by Justin at 5/31/2006 2:53:10 PM
Right now, I am managing session state through SQLServer (sessionState mode="SQLServer"). Any time I am accessing session variable, I know there will be roundtrip (server hosting the application code to the server hosting the session). My question is if I am accessing the session variable ...more >>

DirectoryServices Update AD property
Posted by Davie at 5/31/2006 2:49:14 PM
I have the following code for updating the secretary field in AD using VB.NET 2005. However, I get a rather unhelpful 'Unspecified error' when i try to set the property. Any help would be greatly appreciated. Dim usr As New DirectoryEntry(personDistinguisedName, adminUserName, adminPass...more >>

selectednodechanged event on .NET 2.0 treeview problem
Posted by tanya foster at 5/31/2006 2:39:42 PM
Hello, I have populated a treeview in asp.net 2.0 from an xmldocument. The treeview structure in the asp web page looks something like... -orderdata -order -lines -operations -materials -material -partnumber="123" ...more >>

Syntax Challenged
Posted by Jim McGivney at 5/31/2006 2:39:10 PM
I find myself Syntax Challenged. An array resides on a MasterPage. I want to use the values of the array on an aspx page which is a content page of the MasterPage. I can not find the syntax that works. For a single value (non-array) the following will work. On the MasterPage: public Str...more >>

HttpWebRequest POST
Posted by Sergio Costa Faria at 5/31/2006 2:13:35 PM
Hi. I need to send a form through POST to the VISA website, and I'll receive = four fields these website, also by POST. Someone let me know, how can I to make it in ASP.NET? I know that I can to make it using HttpWebRequest / HttpWebResponse, but = I do not know how. Thank you Sergio....more >>

read dataTable rows
Posted by CSharpGuy at 5/31/2006 2:08:42 PM
Is is possible to read rows in a dataTable and return the data in a string format? I have a DataTable being populated by a stored procedure. It has 14 rows in it and contains ID's, I want to take each ID from the dataTable and pass them to my stored procedure, is there a way to do that and if...more >>

GridView Column sizing issue
Posted by benis.ong NO[at]SPAM gmail.com at 5/31/2006 2:05:46 PM
I have a gridview whose rowupdate, rowediting, rowcreated, rowcancelingedit commands are all written programmatically. Im trying to keep the columns in this grid view consistent by formatting the cells in the rowcreated event. My main problem is that the table cells are not picking up this for...more >>

Problem with ViewState ?
Posted by Jarod at 5/31/2006 1:58:28 PM
Hey I change backColor of linkButton in my Page_Load: lbDoSth.BackColor = Color.Red; But I have multiView on this page. On one of the views I have detailsView. When I add a new row a set Visible = false on this detailsView. And rebound appropriate gridView. Then I press the button and I hav...more >>

XSD.exe - Generated Classes
Posted by David Jessee at 5/31/2006 1:48:02 PM
I was wondering how people tend to use the classes that are generated by the xsd.exe tool. They're great if you need to quickly serialize/deserialize a state....but I was wondering if people were actually using them within their applications' business logic, or if folks are using them as an...more >>

PerformanceCounter / System Up Time / TimeSpan
Posted by Rob Meade at 5/31/2006 1:15:54 PM
Hi all, I'm having a bit of trouble with the following function.... Private Function GetSystemUpTime() As TimeSpan ' declare variables Dim Result As TimeSpan Dim PerformanceCounter As PerformanceCounter ' create new instances of our objects PerformanceCounter = New...more >>

Trace.axd not created
Posted by kpg at 5/31/2006 1:12:14 PM
In the webConfig file I set Trace enabled=true, Pageoutput=false but I don't get a Trace.axd in my application root. If I turn pageoutput=true then I see the trace info on the page. ??? I created an empty trace.axd, just in case it needed a file to be present, but it stays empty. kpg...more >>

Use a label in a FooterTemplate control? Surely, there must be a way...
Posted by Groove at 5/31/2006 1:00:12 PM
I have a typical Repeater that contains a Template (html table). The repeater / template lists many records and in the footer, I'd like to simply SUM up the $$ amounts from all the records in the repeater. Easy enough. So I tried to place a Label control in the footer and fill the Text of t...more >>

Open newly created HTML page in new window?
Posted by mcmwhite NO[at]SPAM hotmail.com at 5/31/2006 12:34:53 PM
Hi, Does anyone know how I can open a newly-created HTML page in a new window, using ASP.NET? Eg. I have an ASP.NET page which creates some new HTML, based on what the user has entered into a textbox. The ASP page has a textbox (txtYourName) and a button. Clicking the butto...more >>

ASP.NET 2.0 TreeView - node text as plain text (not hyperlink)
Posted by Elton Pruitt at 5/31/2006 11:57:54 AM
The documentation on the ASP.NET 2.0 TreeView control, located at http://msdn2.microsoft.com/en-us/k5c13faz(VS.80).aspx says that "Node text ... can be displayed as either plain text or hyperlinks." Has anyone found a way to actually display the node text as plain text? I need to do that but...more >>

Client Scripts
Posted by Demetri at 5/31/2006 11:14:01 AM
For Menu, Treeview, etc. Where are the javascripts for these? -- -Demetri...more >>

IIS, ASP.net, Firefox, and Localhost
Posted by darrel at 5/31/2006 11:06:12 AM
All of the sudden, I can no longer open my localhost site in Firefox without be inundated with dozens of 'please log in' dialogue prompts. In the past, I'd get one per session. Any idea what might have triggered this all of the sudden? IIS? My ASP.net app? Firefox? -Darrel ...more >>

Website Search Free Text
Posted by csgraham74 at 5/31/2006 10:56:30 AM
Hi guys, im building a website for a client but they have asked for a free text search facility on the homepage to search the whole site and then give a list of links to the static html pages. I was wondering if this is possible and what would be the best way to go about this ??? My site...more >>

get values from drop down
Posted by John at 5/31/2006 9:15:53 AM
I have a drop down on my form and I need all the values in that drop down and pass to a stored procedure, how can I get the values of the drop down and pass them all to my stored procedure call? ...more >>

Compiler Error Message: CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login'
Posted by keithb at 5/31/2006 9:08:13 AM
A web site published from its development environment (VS Web Server) to an IIS 6.0 site displays this message: Compiler Error Message: CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login' Anyone have an idea about the cause? Thanks, Keith ...more >>

Nested Master Pages: Accessing Properties
Posted by Diane Yocom at 5/31/2006 8:47:23 AM
I have two nested master pages, each with public properties. From my content page, I am able to access properties from both pages using either Master.PropertyName (for the child master page) or Master.Master.PropertyName (for the parent master page). The solution compiles and the HTML look...more >>

Is MS silent about MVC-Page controller for ASP.NET 2.0
Posted by Lorenzo Jimenez at 5/31/2006 8:40:02 AM
It seems that there is a big problem in the web controller arena in MS because none can be found for ASP.NET 2.0. Maybe is because UIPAB (v 1 and 2) had flaws according to this article: http://www.ingeniousapps.com/Products/IngeniousMvc/Introduction.aspx#ID0EQF Is MS doing something ? Is...more >>

asp.net and sql server
Posted by amjad at 5/31/2006 8:31:02 AM
how to connection sql server table with aspx like pulling data from table to grid view.... simple example to start .... thanks...more >>

help with asp.net
Posted by amjad at 5/31/2006 8:01:02 AM
how to create custom right click menu with aspx.net mean if i right click on any textbox or combo box it show me custom right click menu . i know how to do with access and vb6 but dont know with aspx.net thanks ...more >>

GridView and PagerStyle problem
Posted by Kamen at 5/31/2006 7:55:01 AM
Hello there, I try to define the properties font-size and font-bold of the pager of a gridview using the pagerstyle, but the settings are not appleyd at run time. What could be the reason for this? I am very appreciated for your help. Kamen Here is the ASPX-code: ...more >>

Application domain unloaded after each page
Posted by amolkasbekar NO[at]SPAM gmail.com at 5/31/2006 7:54:33 AM
Hi all, I have a web application that I am trying to migrate to 2.0. I used the new web application project type. I am running it on Winxp with IIS 5.0. Everything compiles fine but when I run the web app, I find that it is calling Application_OnStart, Session_OnStart for each aspx before...more >>

System.Web.Compilation.BaseCompiler.ThrowIfCompilerErrors
Posted by MIkeStuart at 5/31/2006 7:41:01 AM
We are getting the following exception in our IIS6/ASP.NET 1.1 application and it stops if we copy our DLLs back into the local BIN directory. But will start happening again in several hours? What could be causing something like this and why would recopying our DLLs back into the directory...more >>

Reading/Writing XML Datasource...
Posted by saywhat at 5/31/2006 7:27:40 AM
Is it possible to read and write to an xml datasource using controls, a la Access/SQL? For instace, using a grid or form control? ...more >>

SqlDataSource and GridView
Posted by Mike P at 5/31/2006 7:21:25 AM
When you use a SqlDataSource to hook up data to a GridView it seems to be to be very inflexible. For example, I want to create my own Delete button with my own code and I also want to create a popup warning for the user before delete takes place. Whenever I do this with a SqlDataSource, I get ...more >>

Authentication
Posted by Demetri at 5/31/2006 5:51:02 AM
Hello, I have built a web application with authentication modeled after the following video by Scott Guthrie: http://download.microsoft.com/download/8/3/6/836dd5f8-fa92-499f-8219-0d326f13bf18/hilo_masterpages-nav_FINAL.wmv So I have a site map, a treeview control on a page that binds to t...more >>

Help on register a client script using a Web Custom Control
Posted by lourivas at 5/31/2006 5:28:22 AM
Hi, I create a class with a property called MyProperty that needs to register a client script if the value is set to true. When i change the property value to true i always receive a message "Property value is not valid/Object reference not set to an instance of an object". I'm using VS 2005. W...more >>

Where can I download VS Studio 2005 and find Bin Laden :) ?
Posted by omvinh NO[at]SPAM tma.com.vn at 5/31/2006 5:23:02 AM
Hi all, Where can I download VS Studio 2005 ? Pls contact me via emails : omvinh@tma.com.vn lttuan@tma.com.vn Many thanks, IL2F ...more >>

Where do I download VS Studio 2005 ?
Posted by omvinh NO[at]SPAM tma.com.vn at 5/31/2006 5:08:02 AM
Hi all, Where can I download the trial version of VS Studio 2005 ? Many thanks, IL2F...more >>

how to get the column names from the gridview
Posted by Pradeep at 5/31/2006 4:23:57 AM
hi, im having a very peculiar problem. I populate the gridview based on the result of a query, and the gridview shows the rows that are returned by the query. now if i give gridview1.rows.count i get exactly the no of rows in the gridview but when i give gridview1.columns.count i always get it ...more >>

Validation only when the user hits button
Posted by Pawel Pabich at 5/31/2006 4:17:57 AM
Hi, I have very simple code: <asp:TextBox ID="TextBox1" runat="server"/> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ValidationGroup="1"> <asp:Button ID="Button1" runat="server" Text="...more >>

The requested FTP command is not supported when using HTTP proxy
Posted by chris at 5/31/2006 3:54:40 AM
Hi, I am trying to upload files on FTP and used the code below: Dim request As FtpWebRequest request = WebRequest.Create("ftp://ftp...../test.txt") request.Method = WebRequestMethods.Ftp.UploadFile re...more >>

<<< State of the art web solution Online>>>
Posted by mae2x at 5/31/2006 3:35:54 AM
<<< State of the art web solution Online>>> WickedInnovations has an extensive working experience in E-commerce solutions, web site design , website development , graphic design , search engine optimization , database integration, multimedia presentations, corporate Identity and a lot more. ...more >>

can't open pdf file from aspx page
Posted by graphicsxp at 5/31/2006 2:27:03 AM
Hi, I have the following: Dim p As String = Server.MapPath("~/Uploads/pdf/test.pdf") Response.Redirect(p) The value of p is correct and the file exists. If I enter manually the value of p into my browser address bar, then the pdf file is properly opened. However from the code it doesn't w...more >>

Header problems using themes/master pages in 2.0
Posted by Christophe Peillet at 5/31/2006 2:19:02 AM
I have an application that works fine on localhost, but when it is deployed to a production server, I get the following error: Using themed css files requires a header control on the page. (e.g. <head runat="server" />). I am using themes and a single Master Page for the application, with ...more >>

Clear Request.Form
Posted by Kittie at 5/31/2006 2:06:21 AM
Hello, I'm pretty new to web programming and i'm facing an issue. Hope someone can help! I have a LinkButton in a form and when i click on it, it posts back to the page. The problem i want to resolve is that if i refresh the page, i get this annoying POSTDATA message dialog that ask for d...more >>


DevelopmentNow Blog