Portfolio


Showing posts with label javascript validation. Show all posts
Showing posts with label javascript validation. Show all posts

Tuesday, May 3, 2011

ASP.Net 3.5 PostBackUrl and JavaScript Validation

Hey folks,
After lots and lots of search and headache.. I've found solution of this stupid problem.. :)

Actually the problem was I had two asp.net pages and I wanted to pass data of page A to page B.. I wanted to validate textbox values using JavaScript..

So what does PostBaclUrl porperty acutally do?
Well PostBaclUrl is client side cross page post back.. Which means that data never goes on server. It basically uses javascript DoPostBackWithOptions to copy contents of one page to another page.

Problem 1 : What kind of cross-page posting to use?
Well Im using here Public Property values as its easier and gives cleaner code.
In Page A create Public Property values also known as Using Virtual Path