Gridview display and using Session Problem
-
I have used Gridview to that will show a data from the Database, but in the configuration I specify that the WHERE Clause must be SQL Expression Value [Username] = @Username Session("Username") Who can I put the Session value inside this statement (I want to use it hard coded, but I don't know what to write in the page.aspx.cs file? Thanks a lot for your cooperation. Best regards,
-
I have used Gridview to that will show a data from the Database, but in the configuration I specify that the WHERE Clause must be SQL Expression Value [Username] = @Username Session("Username") Who can I put the Session value inside this statement (I want to use it hard coded, but I don't know what to write in the page.aspx.cs file? Thanks a lot for your cooperation. Best regards,
-
-
Where should I put it? Because I have define it(I used static on for testing) inside Page_Load(.....) { Session["Username"] = "lll"; } But it does not show the Gridview.
-
I have used Gridview to that will show a data from the Database, but in the configuration I specify that the WHERE Clause must be SQL Expression Value [Username] = @Username Session("Username") Who can I put the Session value inside this statement (I want to use it hard coded, but I don't know what to write in the page.aspx.cs file? Thanks a lot for your cooperation. Best regards,