ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

This page lists some of the more popular “ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas” posts I’ve done. My goal is to add new posts to the series regularly going forward – so bookmark this page for updates, or subscribe to my blog via this RSS feed.

Book Recommendations

In addition to my articles below, I highly recommend the following ASP.NET books:

 

To learn more about ASP.NET, also make sure to watch all of the great “ASP.NET: How Do I?” videos (each week a new video is posted). You can also browse a large listing of other ASP.NET 2.0 books here

Visual Studio 2005

UI

AJAX 

Data

Security

Deployment

Performance

.NET 3.5 and VS 2008

LINQ and .NET 3.5

Silverlight

Miscellaneous

Published Monday, July 31, 2006 11:00 PM by ScottGu

Comments

# My ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas "Highlights Page"

Wednesday, August 02, 2006 2:52 AM by ScottGu's Blog

Several people have sent me email lately asking for a suggested short-list of my best/favorite blog posts

# If you work with ASP.NET 2.0 you should be reading Scott Guthrie's blog

Wednesday, August 02, 2006 4:03 AM by the roarty blog

You should be reading Scott Guthrie already if you are doing ASP.NET 2.0 work but perhaps you aren't...

# ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, August 02, 2006 7:35 AM by My Blog

# ASP.NET 2.0 Tips and Tricks.... Setting up Subversion at home... Centrino

Wednesday, August 02, 2006 9:46 AM by Andrew Connell [MVP MCMS]

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, August 02, 2006 10:55 AM by burlistic
Nice post.. I have only just come across your blog and what I have read so fair has been very helpful. This list is certainly worth a bookmark. Thanks, BuR

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, August 02, 2006 5:21 PM by Sue Googe
This is awesome! It save us time digging around your blog :-) Keep up with the good work!

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, August 02, 2006 5:56 PM by 压力变送器
Nice post.. I have only just come across your blog and what I have read so fair has been very helpful.

# ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Thursday, August 03, 2006 12:47 AM by It's Way Too Early For This

This is a great resource for anyone who is developing in ASP.NET 2.0 http://weblogs.asp.net/scottgu/pages/ASP.NET-2.0-Tips_2C00_-Tricks_2C00_-Recipes-and-Gotchas.aspx...

# ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Thursday, August 03, 2006 2:16 AM by My Blog

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Thursday, August 03, 2006 12:04 PM by knave
Your blog is so good and filled with interesting things that its a daily task for me to take a peek at for new posts! Keep it up!

# ScottGu's tips and tricks

Thursday, August 03, 2006 8:16 PM by CallContext

I'm only really making this entry so I can keep the link in the BAS (Blog Attached Storage), but both of you might be interested in having this around.

# Consejos, trucos, recetas y trampas de ASP.NET 2.0

Friday, August 04, 2006 11:33 AM by .NET a 2.860 m de altura

Scott Guthrie es uno de los padres de ASP.NET, dentro de Microsoft es conocida la historia de...

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Friday, August 04, 2006 11:59 AM by Willie L.
Scott, Terrific...It's an awesome list and very helpful references. You're great! Thanks a lot.

# My ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas "Highlights Page"

Monday, August 07, 2006 4:16 AM by ナオキにASP.NET(仮)

ScottGu's Blogからです。 My ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas "Highlights Page"...

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Monday, August 07, 2006 10:01 AM by Daniel
Hi, just wondering if there are any articles on MSDN on how to tackle 2 way data binding on complex objects aka composite objects? Seems to be a bit of a black hole in terms of documentation or at least my ability to find it. Cheers dan.

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Tuesday, August 08, 2006 12:51 AM by ScottGu

Hi Daniel,

For tutorials on 2 way databinding, I'd recommend checking out this tutorial series: http://weblogs.asp.net/scottgu/archive/2006/06/22/454436.aspx  as well as the quickstart samples on data: http://www.asp.net/quickstart

Hope this helps,

Scott

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Tuesday, August 08, 2006 6:45 AM by Daniel
Hi Scott, Thanks for the quick reply. I have seen these articles and they all use typed data sets. I have a collection of complex objects that I am binding to. if I have Simple properties such as Person.Name then it works fine, no problems, however if I have a property that is an object and I try to access its properties, i.e Person.Address.Postcode then databinding fails. I have worked around this by handling the objectdataSource Updating event and adding the values into the object manually however I was wondering / hoping that there is a better solution for this? cheers dan.

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Friday, August 11, 2006 2:52 AM by ScottGu

Hi Dan,

You can do 1 way evaluation of complex objects using the <%# Eval() %> syntax:

<%# Eval("Person.Address.Postcode") %>

Unfortunately two-way binding of sub-properties via the <%# Bind %> syntax isn't supported though.  For these types of operations you'd want/need to use the event approach you mentioned above.

Hope this helps,

Scott

# Tip/Trick: Show Detailed Error Messages to Developers

Saturday, August 12, 2006 2:09 PM by ScottGu's Blog

Problem: You are developing/maintaining an ASP.NET web-site, and would like the ability to conditionally

# Collection Scott Gu's of ASP .Net posts

Monday, August 14, 2006 6:15 PM by .hibri

# ASP.NET 2.0 Tipps, Tricks, Rezepte und Gotchas

Tuesday, August 15, 2006 5:52 PM by <dw:daniel_walzenbach runat="server" />

Scott Guthrie's Blog ist einfach immer wieder eine Freude! Heute fand ich seine populärsten Artikel...

# Tip/Trick: Creating Sub-Web Projects using the VS 2005 Web Application Project Option

Wednesday, August 16, 2006 3:54 AM by ScottGu's Blog

One scenario that many large development teams often ask me about is whether it is possible to split

# Una risorsa fondamentale per il mio lavoro

Tuesday, August 29, 2006 11:50 AM by Maurizio Tammacco

Di questo linkne faccio un post nel mio blog per tenerlo sempre a portata di....mouse!. Trattasi...

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, August 30, 2006 12:06 PM by chris
Hi scott, one problem i always face is the treeview state in a masterpage. It never keeps its state and the nodes get collapsed. Is there any article on how to keep the state?

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Thursday, August 31, 2006 1:49 AM by ScottGu

Hi Chris,

One approach you could take would be to add a Page_Load event handler within the master-page, and use it in conjunction with the SiteMap API to expand the current node in the site that you are visiting.

Hope this helps,

Scott

# Data Source Control vs. Simple Data Coding

Saturday, September 16, 2006 6:19 PM by JaiPrakash
Hi Scott, I want to know whether the use of data source control provided with ASP.NET 2.0 are better than the hand coding or not.I am little confuse about this..... What should i use Data Source Control or Hand Coding.(Pros & Cons of both). As with coding transaction management is easy but is it easy or necessary with Data Source Controls like (SQLDataSource Control or AccessDataSource Controls) If u can please tell me with some experimental approach...........

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Sunday, September 17, 2006 2:18 AM by JaiPrakash
Hi Scott, Please tell me that if is there any issue(Web Hosting) in using ATLAS extender or controls instead of ASP.NET 2.0 normal controls. Please tell me that ATLAS is supported by normal ASP.NET 2.0 hostings???????

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Tuesday, September 19, 2006 12:12 AM by ScottGu

Hi Jai,

Atlas Control Extenders are fully supported with hosting scenarios.

Hope this helps,

Scott

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Tuesday, September 19, 2006 12:13 AM by ScottGu

Hi Jai,

DataSourceControls basically encapsulate the code you'd otherwise write by hand. So if you still want to write it by hand you can definitely continue to-do so.

Hope this helps,

Scott

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Tuesday, September 19, 2006 5:52 AM by JaiPrakash
Hi Scott, Thanks Sir,,,,Your suggestions are always good...........always simple, straight and effective.... Thanks

# Mulitple Website and Single Sign in

Saturday, September 23, 2006 10:24 AM by JaiPrakash
Hi Scott, I have a problem related to Login System. I am developing 3 websites for some institution.Now they want that if anybody had sign up for there site1.com(say), than he or she should be able to sign in for site2.com and site3.com. hence, if user has sign up for the membership of site1.com than he/she should automicallly become the member of site2.com and site3.com. and also if the member sign in for the site1.com and if opens sign2.com or site3.com than there he/she must be shown as "Already Login" Anybody Please tell me how can i make a Login System(with 1000% security) which is available to mulitple websites. If possible give some reference also...... Thanks in advance.........

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Sunday, September 24, 2006 11:57 AM by ScottGu

Hi Jai,

I believe what you are looking for is a single-sign-on (SSO) solution.  That way the user doesn't have to sign-in to other sites.

I've haven't used these two links myself, but below are two articles that might help:

http://www.microsoft.com/technet/security/topics/identitymanagement/idmanage/default.mspx?mfr=true

http://www.wwwcoder.com/main/parentid/258/site/4922/68/default.aspx

Hope this helps,

Scott

# Tip/Trick: Guard Against SQL Injection Attacks

Saturday, September 30, 2006 12:16 PM by ScottGu's Blog

SQL Injection attacks are reallynasty security vulnerabilities, and something all web developers (regardless

# Una risorsa fondamentale per il mio lavoro

Tuesday, October 03, 2006 10:05 AM by Maurizio Tammacco's blog

Di questo linkne faccio un post nel mio blog per tenerlo sempre a portata di....mouse!. Trattasi...

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, October 25, 2006 8:41 AM by Prabakar Samiyappan
Its Nice and very Intresting to read all the Articles.its a good link which is to added in favorites...

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Thursday, November 09, 2006 10:42 AM by Irfan
Hi Scott, I've quick question regarding the asp:treeview in VS2005. I'm a novice to VS2005, i am trying create a custom treeview by inheriting the WebControls.Treeview, everything work fine except when a parent node is clicked it doesn't expand the child node. It gives me the following error. 'childNodes.0' is null or not an object I checked the viewsource and found out that each node is given an ID, if it as a parent-child relation. Please help me. Thanks, Irfan

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, November 22, 2006 4:05 AM by philemon wachara

I need help with xp_cmdshell, using VWD2005 and SQL2005 Express Edition.  Despite enabling this feature using the surface area configuration, I still cannot run a stored procedure using xp_cmdshell.  Any idea what I could be doing wrong? Thanks in advance.

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, November 29, 2006 2:18 AM by Ekambaram

Hi Scott, If both C# and VB.net Code is there,fine and Its a good link which is to added in favorites...

# Resizing a web page

Thursday, December 07, 2006 1:05 PM by Ray Levron

Scott,

   I am trying to use Javascript to resize a gridview control vertically as a user resizes a web page vertically with his mouse.   Can you point me in the right direction for that?

regards,

Ray Levron

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Thursday, December 07, 2006 11:40 PM by ScottGu

Hi Ray,

Unfortunately I don't know off the top of my head of a sample that does this.  

Sorry!

Scott

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Thursday, December 28, 2006 2:53 PM by raymondo

Hi scott ure posts have been a great help. just need to ask ya, how to batch update through a datlist control, without using business layers as shown on the tutorials on te asp.net website and instaed of the the northwind mdf database iam using sql server 2005. Any help or directions towards tutorials would be great. just to let u know iam a beginner at asp.net 2.0

thanks

raymondo

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Monday, January 08, 2007 3:59 PM by Erick

Hi Scott, I wan to make my own Treeview control has the same behavior like one appears when i install VS .net 2005, i mean when i check a treenode with children... they all appears checked too, and if the parent is unchecked... and then i checked one of its childs... parent treenode get checked but with gray color. I know that when i check or uncheck a treenode althougth i had set OnCheckChange method... it will not do anything till i do a postback action like a simple button. So... how could i do this? thanks...

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Friday, January 19, 2007 12:39 AM by ARC

Hi Scott. Your blog is a great asp.net resource and as i am new to asp.net, it has helped me in many ways. I have one question to ask, I have a master page that uses

some images and a css file that are placed in root\images folder. if i use deny users="?" in root web.config and go to login.aspx, the master page is loaded but without images or css styles. I have to place a web.config in the images folder with allow users="*" to make master page work correctly. Is my solution correct or is there something i have missed? or is there a better/recommended way to do it?

Shouldn't asp.net allow master pages to load resources from subfolders even with anonymous user?

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Friday, January 19, 2007 9:04 PM by ScottGu

Hi ARC,

I believe this blog post will fix your problem: http://weblogs.asp.net/scottgu/archive/2006/01/31/437027.aspx

Hope this helps,

Scott

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Tuesday, January 23, 2007 5:28 PM by Nathanael Jones

I just went back and read the comments on

http://weblogs.asp.net/scottgu/archive/2006/04/11/Don_1920_t-run-production-ASP.NET-Applications-with-debug_3D001D20_true_1D20_-enabled.aspx

I'll look into publishing the .pdb files.

Thanks.

# Posting Issues

Wednesday, January 24, 2007 11:10 AM by Nathanael Jones

What is the maximum allowed post length? I've tried to post 3 times now. I receive no error message, but it doesn't appear even after 16 hours.

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, January 24, 2007 11:53 AM by ScottGu

Hi Nathaneal,

The maximum post length by default is about 2MB.  You can configure it to a larger size within the maxRequestLength property on the <httpRuntime> section within your web.config file.

Hope this helps,

Scott

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, January 24, 2007 1:34 PM by Nathanael Jones

Sorry, I was referring to the max size for comments on this blog.

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, January 24, 2007 1:53 PM by Nathanael Jones

I've placed my question on a separate page instead.

http://nathanael.jones.googlepages.com/question

Thanks,

Nathanael

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Thursday, January 25, 2007 8:25 AM by Nathanael Jones

I've succeeded in rewriting 404 requests from IIS back to their original url in ASP.NET, but IIS 5.1 doesn't allow post-backs to unmapped extensions.

Does IIS6 allow the POST verb to unmapped extensions?

How bad is the performance hit when IIS is configured to send * to the runtime?

Thanks,

Nathanael

# URL Rewriting

Thursday, January 25, 2007 9:21 AM by Nathanael Jones

I just read that ASP.NET 2.0 is now capable of sending requests back to IIS for proccessing, so mapping * to aspnet_isapi.dll doesn't invoke a performance hit.

I originally read something (probably regarding 1.1), that stated how deadly it was to map * to aspnet_isapi.dll, due to performance issues.

Is this correct? I've tried to do URL mapping in various ways without this, and failed miserably. I have tried leveraging the 404 rewrite in IIS, using a mixed rewrite/redirection system, and many other less successful approaches.

Thansk,

Nathanael

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Tuesday, January 30, 2007 12:36 AM by ScottGu

Hi Nathanael,

You can now enable * mapping much more efficiently using IIS6.  For static files (like .htm and .asp), ASP.NET will then call back into IIS to have it process them.

Can you send me an email regarding url rewriting?  I can then loop you in with someone to help.

Thanks,

Scott

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Tuesday, January 30, 2007 10:53 AM by Nathanael Jones

Thanks! That lets me sleep easier.

I found a solution to my most pressing issues. You can view it here (I will try to post it below, but I don't know if it will take. My last one didn't).

http://nathanael.jones.googlepages.com/resolution

The last three questions are still relevant, if less important. Due to the lack of documentation, and 'black-box' nature of ASP.NET, I'm not too confident about these.

Thanks,

Nathanael

What do you use for URL and path manipulation? I know the runtime uses System.Web.VirtualPath and System.Web.Util.UrlPath, but they are marked ‘internal’. I’ve had to create my own class to maintain URL-parsing consistency.

Is there a reason why ASP.NET uses redirection instead of URL rewriting for error pages? I personally find it much easier to deal with errors and 404s if the URL doesn’t change on me. I hate it when I misspell one character, and the server redirects me to a new URL, denying me the chance to rectify my mistake. I have implemented a custom system in global.asax that uses Server.Transfer to handle error messages; the admin is given a page with descriptive exception details, while all the other unauthenticated users are provided with a generic message. Is this an acceptable approach?

Is it fine to ignore the url authorization system and simply use User.IsInRole throughout my code? Many of my pages do not have very clear-cut security requirements, and must perform complex role checks.

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Tuesday, January 30, 2007 1:49 PM by Nathanael Jones

Ok, I have another problem...

I am caching ASP.NET snippets in the database for the summary field on each article.

As the paths in each snippet are relative to the parent article file, I have been creating an instance of Page and using the ParseControl method. Unfortunately, this seems to simply bring back a LiteralControl instead of the proper hierarchy.

What do you reccomend?

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, January 31, 2007 8:36 AM by Nathanael Jones

Addendum: I mean AppRelativeTemplateSourceDirectory, not TemplateSourceDirectory. Also, this property must be set recursively. See example below.

========================

/// <summary>

/// Recursively sets the AppRelativeTemplateSourceDirectory property on the specified control and all of its children

/// </summary>

/// <param name="c"></param>

/// <param name="AppRelativeTemplateSourceDirectory"></param>

public static void SetPathRecursive(Control c, string AppRelativeTemplateSourceDirectory) {

   if (c == null) return;

   c.AppRelativeTemplateSourceDirectory = AppRelativeTemplateSourceDirectory;

   foreach (Control child in c.Controls) {

       SetPathRecursive(child, AppRelativeTemplateSourceDirectory);

   }

}

/// <summary>

/// Renders the specified code to the specified output stream

/// </summary>

/// <param name="code">The code to render</param>

/// <param name="output"></param>

/// <param name="parent">The parent page</param>

/// <param name="VirtualPath">The path the specified code should be virtually executed from. The location relative paths are resolved from</param>

public static void RenderCode(string code, TextWriter output, Page parent, string AppRelativeTemplateSourceDirectory) {

   //Parse the text into a control object (a container control object is created automatically.

   Control c = parent.ParseControl(code);

   SetPathRecursive(c, AppRelativeTemplateSourceDirectory);

   //Render to the control

   XhtmlTextWriter htw = new XhtmlTextWriter(output);

   c.RenderControl(htw);

}

# Update

Tuesday, February 06, 2007 1:33 PM by Nathanael Jones

The ContentPlaceHolder patch described on http://nathanael.jones.googlepages.com/resolution isn't working properly... All of the paths are rendered by HtmlLink as if the control is located in the application root. If I set the AppRelativeTemplateSourceDirectory to "~/content/downloads/articlefolder", I get worse issues. The path resolves twice, as in "content/downloads/articlefolder/content/downloads/articlefolder/stylesheet.css" Wacky. This is when good documentation is really missed....

What do I try next? Control adapters?

Please help.

Thanks,

Nathanael Jones

# The Infamous HtmlLink

Tuesday, February 06, 2007 3:02 PM by Nathanael Jones

Apparently there wasn't any problem with the code I posted... A little quirk with the HtmlLink control was tripping me up.

In a few master pages I used the Control.RenderControl method on all children of the ContentPlaceHolder object inside the HEAD.

This was used to pull out information from the meta tags and display the posted date. This had the side effect of triggering a RenderControl on my HtmlLink controls before render-time.

See ContentPlaceHolder patch, http://nathanael.jones.googlepages.com/resolution)

HtmlLink renders correctly the first time the function is called, but starts duplicating and corrupting the href element on subsequent calls. Yet another GOTCHA for the list.

Truly, this project has been agonizing like no other. Reverse engineering device drivers is lots of fun in comparison.

# offline client

Monday, February 26, 2007 4:50 AM by Yenkay

hi Scott,

I am developing an e-magazine in asp.net 2.0 and SQL server. I want to develop an Offline Client to view the magazine offline. Any ideas about creating an Offline Client application for ASP.Net  application with DB Operation.

Thanks in Advance

yenkay

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Tuesday, February 27, 2007 2:24 AM by ScottGu

Hi Yenkay,

Developing an offline application using ASP.NET is pretty hard (since it needs to be connected to a web-server).

I'd probably recommend building a Windows Forms or WPF client application instead.  This will enable you to work disconnected from a web-server.

Hope this helps,

Scott

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Saturday, March 03, 2007 12:27 PM by Tom

Scott,

Do you have any links to information on the process of developing an ASP.NET web application using Team Foundation Server? If not, I'd love to see some posts from you along those lines or some howto videos/articles on the subject.

Interested in having my small team of developers (3) able to checkout files, update them, test/debug their changes to the site locally on the machine and then when they check in the files, only then would the changes be reflected on the development IIS server.

Thanks in advance for any help/links you can provide.

-Tom

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Saturday, March 03, 2007 9:15 PM by ScottGu

Hi Tom,

I don't know of some off the top of my head, but Brian Harry has a great blog here and might be able to help: http://blogs.msdn.com/bharry

He runs the TFS team and blogs a lot about it.

Thanks,

Scott

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Wednesday, March 07, 2007 6:19 PM by Shawn Palmer

On Aug 8 there was a post that stated, "I have worked around this by handling the objectdataSource Updating event and adding the values into the object manually..."  Can you show an example of how to get at the object that is created?

For example, I have the below and before that update method is called I need to set a property on that Employee object that is passed to Update.

.aspx

dataobjecttypename="mynamespace.Employee"

updatemethod="Update"

.aspx.cs

protected void objectsource_Updating(object sender, ObjectDataSourceMethodEventArgs e)

{

   ...

}

Employee.cs

[DataObjectMethod(DataObjectMethodType.Update, true)]

public static bool Update(Employee o)

{

   o.Save();

   return true;

}

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Thursday, March 08, 2007 4:57 PM by ScottGu

Hi Shawn,

I believe you can add the values using the "e" parameter to the updating event above.  I believe there is a Params collection there where you can add any custom values you want.

Hope this helps,

Scott

# re: ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Thursday, March 15, 2007 9:32 AM by Very useful post

do you have tips for VS 2005 and database express?

# ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas &laquo; ???

Tuesday, May 22, 2007 11:24 AM by ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas « ???

Pingback from  ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas &laquo; ???

# Enlaces 31 de Mayo: ASP.NET, ASP.NET AJAX, Visual Studio y.NET &laquo; Thinking in .NET

Pingback from  Enlaces 31 de Mayo: ASP.NET, ASP.NET AJAX, Visual Studio y.NET &laquo; Thinking in .NET

# .NET Tips & Tricks

Wednesday, June 13, 2007 3:18 PM by Michael's Coding Den

Last update: June 13 , 2007 Document version 0.6 Preface If you have something to add, or want to take

# Tip/Trick: Creating Packaged ASP.NET Setup Programs with VS 2005

Friday, June 15, 2007 3:48 PM by ScottGu's Blog

Scenario You have built an ASP.NET Web Application using Visual Studio 2005, and want to enable customers

# Tip/Trick: Creating Packaged ASP.NET Setup Programs with VS 2005

Friday, June 15, 2007 5:30 PM by BusinessRx Reading List

Scenario You have built an ASP.NET Web Application using Visual Studio 2005, and want to enable customers

# Tip/Trick: Creating Packaged ASP.NET Setup Programs with VS 2005

Friday, June 15, 2007 6:01 PM by ASP.NET

Scenario You have built an ASP.NET Web Application using Visual Studio 2005, and want to enable customers

# tips on how to blog &raquo; How To Blog -

Sunday, June 17, 2007 5:05 AM by tips on how to blog » How To Blog -

Pingback from  tips on how to blog &raquo; How To Blog -

# &nbsp; Building and using a LINQ for SQL Class Library with ASP.NET 2.0&nbsp;by&nbsp;diet.MEDtrials.info

Pingback from  &nbsp; Building and using a LINQ for SQL Class Library with ASP.NET 2.0&nbsp;by&nbsp;diet.MEDtrials.info

# Getting Started with ASP.NET 2.0 | GrantPalin.com

Friday, August 24, 2007 10:31 PM by Getting Started with ASP.NET 2.0 | GrantPalin.com

Pingback from  Getting Started with ASP.NET 2.0 | GrantPalin.com

# Tip/Trick: Automating Dev, QA, Staging, and Production Web.Config Settings with VS 2005

Friday, September 21, 2007 4:31 AM by ScottGu's Blog

One of the questions I get asked fairly regularly is: "how can I can easily change different configuration

# Tip/Trick: Automating Dev, QA, Staging, and Production Web.Config Settings with VS 2005

Friday, September 21, 2007 5:29 AM by Elan's Aggregated Blogs

One of the questions I get asked fairly regularly is: &quot;how can I can easily change different configuration

# Tip/Trick: Automating Dev, QA, Staging, and Production Web.Config Settings with VS 2005

Friday, September 21, 2007 5:42 AM by ASP.NET

One of the questions I get asked fairly regularly is: "how can I can easily change different configuration

# Dicas de ASP.NET 2.0

Friday, September 21, 2007 8:00 PM by Desenvolvimento

Mais uma vez, navegando pelo blog do Scott Guthrie , encontrei um post dele que traz uma lista de dicas

# Scott Guthrie Stories

Tuesday, September 25, 2007 7:39 PM by DotNetKicks.com

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# Tip/Trick: Building a ToJSON() Extension Method using .NET 3.5

Tuesday, October 02, 2007 6:22 PM by Blogs

Earlier this year I blogged about a new language extensibility feature of C# and VB called &quot;Extension

# 技巧/诀窍:用 .NET 3.5 创建 ToJSON() 扩展方法 (木野狐译)

Tuesday, October 09, 2007 10:53 PM by Joycode@Ab110.com

【原文地址】 Tip/Trick: Building a ToJSON() Extension Method using .NET 3.5 【原文发表日期】 Monday, October 01, 2007

# ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas &laquo; Private: .NET + OO concept + RIA(AJAX)

Pingback from  ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas &laquo; Private: .NET + OO concept + RIA(AJAX)

# MSDN Blog Postings &raquo; Scott Guthrie's ASP.NET tips, tricks and gotchas

Pingback from  MSDN Blog Postings  &raquo; Scott Guthrie's ASP.NET tips, tricks and gotchas

# Scott Guthrie's ASP.NET tips, tricks and gotchas

Tuesday, December 18, 2007 5:34 AM by Noticias externas

And for those of you who are using ASP.NET - Scott Guthrie also has a great series articles on ASP.NET

# 技巧/诀窍:在ASP.NET中重写URL(转)

Thursday, January 17, 2008 9:33 PM by 绿毛虫

技巧/诀窍:在ASP.NET中重写URL 【原文地址】Tip/Trick:UrlRewritingwithASP.NET

【原文发表日期】Monday,February26,...

# Jan 24th Links: ASP.NET, ASP.NET AJAX, Visual Studio, .NET, IIS

Friday, January 25, 2008 3:07 AM by ASPInsiders

I just arrived back from my trip from Asia, and decided to celebrate (since I'm jet-lagged and can't

# Links 6/Fev: ASP.NET, ASP.NET AJAX, Visual Studio, .NET, WPF

Saturday, March 15, 2008 9:31 PM by Mutamblog

Links 6/Fev: ASP.NET, ASP.NET AJAX, Visual Studio, .NET, WPF

# xhtmlConformance mode="Legacy" vs ASP.NET AJAX

Wednesday, April 02, 2008 10:20 AM by www.podlipensky.com

xhtmlConformance mode="Legacy" vs ASP.NET AJAX

# 28ste April links: ASP.NET, ASP.NET AJAX, ASP.NET MVC, Silverlight

Wednesday, April 30, 2008 11:14 AM by Scott Guthrie's Blog in Dutch

Hier vind je mijn laatste link-lijst series . Bekijk ook mijn ASP.NET Tips, Tricks and Tutorials pagina

# My Top 100 Favourites

Wednesday, May 21, 2008 10:32 AM by Doug Bornyk

1 ASP.NET ASP.NET Official Site 2 &#160; DotNetVideos 3 Development MSDN 4 &#160; Code Plex 5 &#160;

# Links op 20 mei: ASP.NET, ASP.NET AJAX, .NET, Visual Studio, Silverlight, WPF

Saturday, May 24, 2008 3:38 AM by Scott Guthrie's Blog in Dutch

Mijn verontschuldigingen voor de weinige posts de laatste weken. Mijn werk en leven zijn enorm de druk

# Collegamenti del 6 Febbraio, ASP.NET, ASP.NET AJAX, Visual Studio, .NET, WPF

Tuesday, June 10, 2008 7:35 PM by ScottGu Italian

Collegamenti del 6 Febbraio, ASP.NET, ASP.NET AJAX, Visual Studio, .NET, WPF

# Ultracet.

Thursday, August 07, 2008 3:44 AM by Ultracet.

Is ultracet addictive. Ultracet.

# Tips and Tricks News

Wednesday, August 27, 2008 4:17 PM by John Stagich's Blog

Tips and Tricks News

# Enlaces del 10 de Octubre: ASP.NET, ASP.NET AJAX, jQuery, IIS &laquo; Thinking in .NET

Pingback from  Enlaces del 10 de Octubre: ASP.NET, ASP.NET AJAX, jQuery, IIS &laquo; Thinking in .NET

# Concept Cars - 14. Toyota Fine-X

Thursday, October 23, 2008 11:03 PM by Concept Cars - 14. Toyota Fine-X

Pingback from  Concept Cars - 14. Toyota Fine-X

# Enlaces a 22 de Octubre: ASP.NET, Visual Studio, WPF y Silverlight &laquo; Thinking in .NET

Pingback from  Enlaces a 22 de Octubre: ASP.NET, Visual Studio, WPF y Silverlight &laquo; Thinking in .NET

# Nov 6th Links: ASP.NET, ASP.NET AJAX, jQuery, ASP.NET MVC, Silverlight and WPF

Thursday, November 06, 2008 4:20 AM by Community Blogs

Last week was our big PDC conference, and I&#39;ve been busy catching up back at work this week.&#160;

# 2008!! | Don Kitchen

Wednesday, December 03, 2008 8:15 AM by 2008!! | Don Kitchen

Pingback from  2008!! | Don Kitchen

# Linksammlung #4 at Programming with Silverlight, WPF &amp; .NET

Tuesday, December 09, 2008 7:10 AM by Linksammlung #4 at Programming with Silverlight, WPF & .NET

Pingback from  Linksammlung #4 at Programming with Silverlight, WPF &amp; .NET

# Links v??? ASP.NET | OhIsee.com

Thursday, January 08, 2009 9:21 AM by Links v??? ASP.NET | OhIsee.com

Pingback from  Links v??? ASP.NET | OhIsee.com

# ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

Friday, April 10, 2009 6:20 AM by Pitming's blog

ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

# 6月7日链接篇:ASP.NET, AJAX, ASP.NET MVC, Visual Studio

Tuesday, June 09, 2009 5:20 PM by ASP.NET Chinese Blogs

【原文地址】 June 7th Links: ASP.NET, AJAX, ASP.NET MVC, Visual Studio 【原文发表日期】 Sunday, June 07, 2009 12:05

# ASP.NET MVC Archived Blog Posts, Page 1

Tuesday, June 09, 2009 7:31 PM by ASP.NET MVC Archived Blog Posts, Page 1

Pingback from  ASP.NET MVC Archived Blog Posts, Page 1

# Ссылки на 7-е июня: ASP.NET, AJAX, ASP.NET MVC, Visual Studio

Sunday, June 14, 2009 5:09 PM by Блог Скотта Гатри (перевод)

Вот вам последняя на данный момент публикация из моей серии списков ссылок . Также почитайтей мою страничку

# the rasx() context &raquo; Blog Archive &raquo; Magneto, MariaDB, Moblin and other links&hellip;

Pingback from  the rasx() context  &raquo; Blog Archive   &raquo; Magneto, MariaDB, Moblin and other links&hellip;

#

Saturday, July 18, 2009 11:25 PM by 昆鹏

【原文地址】Tip/Trick:UrlRewritingwithASP.NET【原文发表日期】Monday,February26,20079:27PM经常有人请我指导应该如何动...