Welcome to ASP.NET Guild

Be sure to come back often and tell others. If you have any tips, tricks, examples, please email them to me at chris.williams@techguilds.com and I will post them. Check out our ASP.NET QuickStart and C# QuckStart Libraries. Below is my latest articles.

Wednesday, February 28, 2007

ASP.NET Training Videos

The following are links to free ASP.NET Training Videos

http://www.asp.net/learn/videos/default.aspx?tabid=63#beginners

If you know of any more training videos for ASP.NET please send them to me at chrisw_88@hotmail.com and I will add them to this blog.

Thursday, February 22, 2007

Viewstate decoder

Here are two viewstate helpers:

This one allows you to take the viewstate in your page and paste it into this online viewstate decoder. It will decode as string or as a tree. This is the one I use.
http://ignatu.co.uk/ViewStateDecoder.aspx

This ones is really good if you want it to scan a lot of pages at once. You open up your web browser and it will look at each link you go to:
http://www.binaryfortress.com/aspnet-viewstate-helper/

This one is a firefox plug-in:
http://ashishware.com/ViewStatePeeker.shtml

If you have any other links or tip, tricks you would like to share please email them to me at Susan Fischer at susan@clinchportal.com and we will post them.


Tuesday, February 20, 2007

The 'name' does not exist in this context

Sometimes Visual Studio 2005 will hiccup and you will get the error:

"The 'name' does not exist in this context"

I fixed it by doing the following:

  • Exclude file from project

  • Build

  • Exit VS 2005

  • Open VS 2005

  • Add back to project and build again

This fixes it. The other alternative is to reference the control directly in the content placeholder.
You can check out the Microsoft Forums posting for it at:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PageIndex=2&SiteID=1&PostID=200532
If you have any tips, tricks, fixes that you think would help others please email them to me at chrisw_88@hotmail.com and I will post them here.

Thursday, February 08, 2007

Default button in ASP.NET 2.0

Its easier to make the enter key run a button for controls in a block.
Here is a link to a sample:

http://dotavery.com/blog/archive/2006/02/08/7783.aspx

If you have any additional tips, tricks etc that you would like me to post to my blog, please email them to me at chrisw_88@hotmail.com

Custom XML Schema Generator

I found this it and thought it may be useful in getting around the ASP.NET Dataset issue where it ignores namespaces in the xml files. But unfortunately it ignores namespaces too. But possibly it can be modified to support it. If someone manages to modify it to support such things please let me know and I can post it here.

http://www.123aspx.com/redir.aspx?res=29483

If you have found any other generators or know of a workaround to the Dataset namespace ignoring issue let me know.

If you have any additional tips, tricks etc that you would like me to post to my blog, please email them to me at chrisw_88@hotmail.com

ClientScriptManager.RegisterForEventValidation !!!

It seems in .NET 2.0 it is more picky on doing postbacks from controls. Here is an article that gives a sample on how to use ClientScriptManager.RegisterForEventValidation so you avoid this mess.

http://www.velocityreviews.com/forums/t115194-sample-usage-of-clientscriptmanagerregisterforeventvalidation.html


The other option is to add the following to the <@ page directive:

EnableEventValidation="false"

If you have any additional tips, tricks etc that you would like me to post to my blog, please email them to me at chrisw_88@hotmail.com

Are you a .NET Developer or Contractor interested in working with Sitecore or Dynamics CRM?

Apply for our Mentorship Program. If accepted, we will mentor you on Sitecore and provide you with project to help you build your skills and make some money at the same time. If you are interested send your resume with details on why you want to work with Sitecore or Dynamics CRM to: Chris Williams - chris.williams@techguilds.com or Dennis Augustine - dennis.augustine@techguilds.com We look forward to working with you to achieve your goals.