i want to store value of querystring("id") when page postback

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sattu
    New Member
    • May 2007
    • 11

    i want to store value of querystring("id") when page postback

    i want to store value of querystring("id ") when page postback
  • prabunewindia
    New Member
    • Mar 2007
    • 199

    #2
    hi friend,
    plz explain ur need
    do u want to get the data uyou passed thru querystring
    then try with this.
    string id=Context.Requ est.QueryString .Get("id");
    Prabu
    Originally posted by sattu
    i want to store value of querystring("id ") when page postback

    Comment

    • sattu
      New Member
      • May 2007
      • 11

      #3
      store value of querystring(&qu ot;id") when page postback

      hi all friends plz try to solve my problem

      Originally posted by sattu
      i want to store value of querystring("id ") when page postback
      i am doing paging in repeater control
      when i send id through anchot tag and recieving at another page
      cmd.CommandText = "select * from catinfo where catid=" & request.queryst ring("id") & "" first time when page load the value of id=1 for Ex.but when i click next button then query becomes cmd.CommandText = "select * from catinfo where catid="" i want that the value of id should remain 1 because same page is loading and displaying in paging
      Last edited by sattu; May 12 '07, 01:32 PM. Reason: formating

      Comment

      • sattu
        New Member
        • May 2007
        • 11

        #4
        hi all friends plz try to solve my problem

        Originally posted by sattu
        hi all friends plz try to solve my problem
        i am doing paging in repeater control
        when i send id through anchot tag and recieving at another page
        cmd.CommandText = "select * from catinfo where catid=" & request.queryst ring("id") & "" first time when page load the value of id=1 for Ex.but when i click next button then query becomes cmd.CommandText = "select * from catinfo where catid="" i want that the value of id should remain 1 because same page is loading and displaying in paging

        Comment

        • filmar
          New Member
          • Apr 2007
          • 23

          #5
          is your piece of code in (!Page.IsPostBa ck) ?

          Comment

          • sattu
            New Member
            • May 2007
            • 11

            #6
            Originally posted by filmar
            is your piece of code in (!Page.IsPostBa ck) ?
            yes my code in (if not !Page.IsPostBac k)

            Comment

            • gomzi
              Contributor
              • Mar 2007
              • 304

              #7
              Originally posted by sattu
              hi all friends plz try to solve my problem



              i am doing paging in repeater control
              when i send id through anchot tag and recieving at another page
              cmd.CommandText = "select * from catinfo where catid=" & request.queryst ring("id") & "" first time when page load the value of id=1 for Ex.but when i click next button then query becomes cmd.CommandText = "select * from catinfo where catid="" i want that the value of id should remain 1 because same page is loading and displaying in paging
              What operations are you currently doing on the click of the next button.

              Comment

              Working...