PostBackURL

Discussion in 'ASP .Net' started by psycho, Oct 8, 2007.

  1. psycho

    psycho Guest

    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?
     
    psycho, Oct 8, 2007
    #1
    1. Advertising

  2. 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

    "psycho" wrote:

    > 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?
    >
    >
     
    =?Utf-8?B?SklHTkVTSA==?=, Oct 8, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ABC
    Replies:
    6
    Views:
    4,034
    Bruce Barker
    Oct 7, 2005
  2. Rob Meade

    ImageButon: PostBackURL

    Rob Meade, Dec 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,538
    Teemu Keiski
    Dec 4, 2005
  3. bill

    PostBackURL to new window

    bill, Feb 10, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    18,291
  4. osh
    Replies:
    1
    Views:
    5,982
  5. Fabio Mastria
    Replies:
    2
    Views:
    2,558
Loading...

Share This Page