PostBackURL

  • Thread starter Thread starter psycho
  • Start date Start date
P

psycho

i am creating a web page for importing user contacts from yahoo.
i let the user enter his username and password on one page and then
post it to another page by specifying the postbackurl for the button
to next page where i access the username and password from previous
page using the previous page property.
Also i have specified the path of page in
PreviousPageType directive in VirtualPath Property.

sometimes this approach works fine but sometimes the code crashes
saying cannot convert from 'importcontacts_aspx' to
'importcontacts_aspx'

why is this so .

is there any solutions or better approach for this problem?
 
Well i have no clue why it breaks occationally, but

Alternatives are .
1. Use Button, do normal self postback, retrieve data from controls, do user
validation and then redirect user to next page.

2. on button click store data into session variable and pass the use to next
page.

- JIGNESH
 
Back
Top