Author: Carthalion | Posted on: 7/16/2010 7:31:39 PM | Views : 522

This is from MSDN http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx
In paragraph 2, in the Getting Public Property Values from the Source Page section it shows this code.  But when I use it in my ASP.Net appliction it shows the first % as an invalid character.
<%@ PreviousPageType VirtualPath="~/SourcePage.aspx" %> 
Any ideas about what I am doing wrong?  I need to pass values from one page to another, and this looks likes a cool way to do it.  (Except I cant get it to work.)
Or another question, does anybody have an idea of how to pass values from page to page.  It was really easy in VB.  (Just dim a Global variable and it could be read anywhere in the project.)
Thanks,
Carthalion
...

Go to the complete details ...