tags:

views:

23

answers:

0

i have a log in page and i do cookies with the log in button to can hold the user id from the text then i want every user login see his account on other page in the grid view the lo gin page is work very well but now in the other one the grid view always empty after i do lo gin that is go me to this page here the code of the user account page i use asp.net 3.5 ans sql server 2005:-

Imports System.Data
Imports ClassSet1TableAdapters

Partial Class MyClassifieds
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim AdsAdapter As New AdsTableAdapter
        GridView1.DataSource = AdsAdapter.GetDataByUserID(Convert.ToInt32(Request.Cookies("userid").Value))
        GridView1.DataBind()
    End Sub
End Class