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 > january 2008 > threads for wednesday january 23

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

Need GridView Help
Posted by Jonathan Wood at 1/23/2008 10:24:06 PM
I'm displaying data in a GridView that allows user to select a row. When a button is clicked, I need to locate the selected row. The problem is that I need an ID value from the selected row, but I do not want to display that ID value in the grid. I tried creating a hidden column, but I can'...more >>


Importing namespaces in a class
Posted by Ralph Wiggum at 1/23/2008 8:48:57 PM
I have an aspx that looks like this: <%@ Import Namespace="System.Collections.Specialized" %> <%@ Assembly Src="MyClass.cs" %> .... I'm only using the imported namespace in MyClass.cs, not in the aspx itself. Is it possible to do the import in MyClass.cs, instead of the aspx? I can't figure ...more >>

getElementById returning null value
Posted by Rob at 1/23/2008 8:35:20 PM
Hi, I have a label that I'm trying to make invisible on the client side using the OnClientClick event for a button. In the javascript function I have the following code: var x = getElementById("ctl00_ContentPlaceHolder1_label"); x.Visible = true; The function is being called correctly...more >>

Custom Columns in GridView
Posted by andytidy@gmail.com at 1/23/2008 8:20:35 PM
After going through some newbie examples I've created a DAL and BLL for my project. So far I simply display the DataTable to a GridView. I can create custom columns that do simple functions, for example: ReturnVal = UnitPrice - Discount What I would like to do is have a little more flaxabili...more >>

Pre-compiled web sites
Posted by Philip at 1/23/2008 7:09:12 PM
I deploy pre-compiled asp.net web sites using vs.net 2008. Since I am using pre-compiled web sites why do I get health monitoring "compilation starting" and "compilation ending" alert messages occasionally throughout the day ? If the web site is pre-compiled then why is there a need to compi...more >>

GridView
Posted by Rodrigo Ferreira at 1/23/2008 6:48:59 PM
How do I show some data in a gridview without data binding?I mean i want to add this by my self on runtime. ...more >>

replace the address in client browser for server.transfer with the the real location?
Posted by JX at 1/23/2008 4:54:44 PM
Is it possible to replace the address in client browser for server.transfer with the the real location? ...more >>

'' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long.
Posted by rote at 1/23/2008 3:20:31 PM
Hello Everyone, I'm retrieving data from Excel from my asp.net page The WorkSheet name is StatusPasPorts. When i remove the column [Account Reference No.] it does work fine but if i use it i get error : '' is not a valid name. Make sure that it does not include invalid characters or pun...more >>



FIPS validated cryptographic algorithm ASP.Net 2.0 Parsing Error
Posted by George at 1/23/2008 2:50:48 PM
All I am receving the following error message when I attempt to run my ASP.Net 2.0 Site on a server built to pass the DISA Gold scan. -------------------------------------------------------------------------------------------------------- Parser Error Message: This implementation is not p...more >>

newbie question: gridview, how to automatically update all fields
Posted by Mark at 1/23/2008 2:42:37 PM
Newbie question, but I can't find anything either here or at ms that shows the answer. I want to update the database by allowing the user to make changes via gridview. I was wondering if there was an easier way to write the UPDATE command than having to individually spell out each and every ...more >>

newbie gridview question - how to autoupdate a field
Posted by Mark at 1/23/2008 2:23:18 PM
I have a newbie question. I am showing the grid control bound to my = database, but I want to automatically update a "last changed by" field = whenever someone updates a record. I tried adding = onrowupdated=3D"GridView_RowUpdated" to the gridview definition and then = the following code but it...more >>

Newbie book recommendation
Posted by Alan T at 1/23/2008 2:08:46 PM
I am new to asp.net and would like to learn using C#. Any good introductory book in tutorial/step by step approach book recommendation? ...more >>

VS2008 debugger stops immediately
Posted by WT at 1/23/2008 1:30:07 PM
Hello, I have a web application using framework 3.5 with C# and ajax extensions. Vista. When I start debugger with F5, the Cassini browser is opened, debugger seems to start in VS but it stops immediatelly, the application continue to run in the browser without stopping on break points. S...more >>

Sys.WebForms.PageRequestManagerServerErrorException... Err 401
Posted by Juan Marcial at 1/23/2008 1:27:03 PM
I try to put on production an application asp.net 2.0, across IIS 6.0. This app has a process that read any binary file. This file is in external directory (same disk) of asp.net app. This file is update from an external ftp process. - Over local host works fine. - Over Internet I have thi...more >>

CustomValidator
Posted by Andrew Han at 1/23/2008 1:25:40 PM
I have a webpage with about 10-15 textbox controls. I want to write one ClientValidationFunction to be used by all the textbox controls. However, every textbox is going to have a different value range. How can I pass parameters (the allowed min and max value of each textbox) into one generic ...more >>

Refresh my memory:Interactions between separate IE instances?
Posted by B. Chernick at 1/23/2008 12:10:02 PM
Ok guys, refresh my memory. I have a vague memory from years ago of a Dot Net 1.1 web app in which one window was opened from another (not a message box or anything like that, but a fully separate Internet Explorer. When the finish button was clicked, the second window while closing somehow ...more >>

getting rowcount
Posted by segue at 1/23/2008 11:26:03 AM
The below code doesn't give me the last record count. Feedback very appreciated. Thanks for all that you do. qstring = "SELECT COUNT(*) FROM CustomerInformation " Dim newSql As New SqlConnection(connectionstr) newSql.Open() ...more >>

which control can I use to link to a new window?
Posted by Carlos at 1/23/2008 9:34:50 AM
Hi all, I was using the Hyperlink control to link to another URL. However, I need to open a new window where that URL can be displayed, and I do not see a property in the control that allows me to do that. I would not like to use Javascript at this time. Is there any other control that can h...more >>

.NET version question
Posted by Scott at 1/23/2008 9:32:12 AM
On my web server I have both .NET 1.1 and .NET 2.0 installed. I'm in the process of moving my web services from my old server to my new server. My web services are written in both .NET 1.1 and .NET 2.0. The thing I'm coming accross is that my .NET 1.1 web services will not run under ASP.NET 1...more >>

Two Calendar Controls
Posted by Tom Nowak at 1/23/2008 9:23:00 AM
I want to build a form that contains two calendar controls. When the user clicks dates on both, I want to go to a database and get records that were added between the two dates. I am having problems setting up the SQL statement. I want to so something like SELECT name, employee, change ...more >>

Panel Control "Object reference..."
Posted by cfps.Christian at 1/23/2008 7:59:36 AM
I'm at my wits end trying to figure out this stupid error. <asp:Panel ID="pnlDep" runat="server"> <asp:Label ID="lblDep" runat="server" Text="Department: " /> </asp:Panel> <asp:Panel ID="pnlMaj" runat="server"> <asp:Label ID="lblMaj" runat="ser...more >>

dynamic gridview select
Posted by rodchar at 1/23/2008 7:24:00 AM
hey all, // Show the Select Button CommandField selectcol = new CommandField(); selectcol.ShowSelectButton = true; selectcol.ItemStyle.CssClass = "gvSelect"; selectcol.ControlStyle.CssClass = "gvSelect"; GridView1.Columns.Add(selectcol); I ...more >>

Gridview Previous value in RowDataBound
Posted by rlm at 1/23/2008 6:43:00 AM
I have a gridview, and in the RowDataBound event I do some processing on the data. I need to know if the one of the columns has changed from its previous value, but I do not see how to get the previous value. Doesn't viewstate have that already? I know I can access the current value with e....more >>

IIS7 on Windows Server 2008 RC1 Configuration Data is invalid
Posted by Olivier MATROT at 1/23/2008 6:10:01 AM
I'm trying to run an ASP.NET 2.0 web site on Windows Server 2008 RC1. I encounter a server error : HTTP 500.19 - Configuration data is invalid IIS7 claims that the <appSettings> section in web.config is invalid. The management tools are also unable to parse the configuration. The same web site...more >>

Refer to LINQ Field name as Variable
Posted by john at 1/23/2008 3:54:37 AM
LINQ works a lot like an Access DB Recordset in the way it functions, one of the things I could do in Access is refer to the Fields thru a Variable as below allowing me to Iterate over the Recordset with a test or slight change to field names. Is there a way to Replicate this Method in LINQ, I...more >>

Caching ascx control (2.0)
Posted by Tomasz J at 1/23/2008 3:05:34 AM
Hello Developers, Is it possible to vary ascx control cache base on that control's public property. My control has a public Color property, and I want to vary cache based this property, rather than any particular contained control or query parameter. Thank you for any hints. Tomasz J ...more >>

Unhelpful exception message when trying to save data in Access db
Posted by Julia B at 1/23/2008 2:07:00 AM
All, I'm using .NET version 1.1 connecting to an Access back end db. I've got some code that fails during a Try Catch. The error message I get is this: {System.Reflection.TargetInvocationException} [System.Reflection.TargetInvocationException]: {System.Reflection.TargetInvocationEx...more >>

Data TAble declaration Problem
Posted by BIJU at 1/23/2008 1:24:01 AM
Hai, I am very new in ASP.NET. I wnat to use Data Table in my project. For that When I created an instance variable of data Table like "Dim dtable as DataTable" I got an error mesage of "Type Expected". I dont know what is wrong with declaration. So kindly provide solution and thanks in advan...more >>

global.asax issue
Posted by Tem at 1/23/2008 12:54:47 AM
I've been stuck on this error for days. I use global.asax to do url rewrite. which works fine on one server but not the other. they are both windows server 2003 R2 IIS6. if I do http://test.com/photo/123 which would rewrite to http://test.com/photo/default.aspx?photo=123 on the server tha...more >>


DevelopmentNow Blog