Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. page load on postback

page load on postback

Scheduled Pinned Locked Moved ASP.NET
databasequestioncsharpasp-net
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Big Ralph
    wrote on last edited by
    #1

    I want to receive a query and load it directly onto the loginview control in asp.net 2.0 how can I do that? I have a formview in the loginview and a gridview control the formview must go to the page where the page index is equal to the selected index in the gridview control.

    BiG RaLpH

    M 1 Reply Last reply
    0
    • B Big Ralph

      I want to receive a query and load it directly onto the loginview control in asp.net 2.0 how can I do that? I have a formview in the loginview and a gridview control the formview must go to the page where the page index is equal to the selected index in the gridview control.

      BiG RaLpH

      M Offline
      M Offline
      M LN Rao
      wrote on last edited by
      #2

      sorry! can you be a bit elaborative about the problem. I just confused.

      Intelligence is measured by common sense not by how many scholarly books you read.

      B 2 Replies Last reply
      0
      • M M LN Rao

        sorry! can you be a bit elaborative about the problem. I just confused.

        Intelligence is measured by common sense not by how many scholarly books you read.

        B Offline
        B Offline
        Big Ralph
        wrote on last edited by
        #3

        I have a gridview control and a formview control in a loginview control when I send a link to this page with ?Code={0} the page does not load with the required code how can I make it work in the page_load event?

        BiG RaLpH

        M 1 Reply Last reply
        0
        • B Big Ralph

          I have a gridview control and a formview control in a loginview control when I send a link to this page with ?Code={0} the page does not load with the required code how can I make it work in the page_load event?

          BiG RaLpH

          M Offline
          M Offline
          M LN Rao
          wrote on last edited by
          #4

          ?Code=0 In the page_load event handler if (Request.QueryString.Count>0) // it is always better to perform conditional operation on querystring before retrieving values. { if (Request.QueryString["Code"]!=null) { // place code that has to execute. } } Hope this will solve your problem. Happy programming.

          Intelligence is measured by common sense not by how many scholarly books you read.

          1 Reply Last reply
          0
          • M M LN Rao

            sorry! can you be a bit elaborative about the problem. I just confused.

            Intelligence is measured by common sense not by how many scholarly books you read.

            B Offline
            B Offline
            Big Ralph
            wrote on last edited by
            #5

            this function is working fine when I click a button but if I put it in the page load it doesn't. On Error Resume Next gv4 = LoginView1.FindControl("GridView4") gv5 = LoginView1.FindControl("GridView5") lbl5 = LoginView1.FindControl("Label5") txtSe = LoginView1.FindControl("txtSearch") Dim fv1 As FormView fv1 = LoginView1.FindControl("FormView1") If LoginView1.FindControl("GridView4").ToString = True Then i = 0 For i = 0 To gv4.Rows.Count - 1 If gv4.Rows(i).Cells(0).Text.StartsWith(gv5.Rows(0).Cells(0).Text) Then gv4.SelectedIndex = i fv1.PageIndex = gv4.SelectedIndex Exit For End If Next sIndex = gv4.SelectedIndex lbl5.Text = gv4.SelectedIndex End If BiG RaLpH

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups