How to have scripts in a page using login view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kyoudan
    New Member
    • Sep 2006
    • 1

    How to have scripts in a page using login view

    Hi,

    I am currently using Visual Web Developer 2005 to work on an ASP.net test site, and i have a master detail sort of setup with a Gridview and Formview to show, select, edit and delete. When I move this all within a loginview, it then tells me my Formview and Gridview are not declared. I have been playing with it for a few days and cannot seem to find where to move it or what to change in the code for it to work again.


    <script runat="server">

    Protected Sub GridView1_Selec tedIndexChanged (ByVal sender As Object, ByVal e As System.EventArg s)
    FormView1.PageI ndex = GridView1.Selec tedIndex + (GridView1.Page Index * GridView1.PageS ize)
    End Sub

    </script>
Working...