Hi Sir,
i am programmer i meet some problem in the small project developement.
In this project, i use VB.NET to create web application.
I have a grid view with select command button. When i click the select button, i want the table which is invisible to be visible . The grid view is implementing AJAX coding and so when i click Select, there is no any postback.
The 1st method i do is i set the table1( is an id for html table) to visible during gridview.selectedIndexChanged. But due to no postback, the table1 cannot show out. The table 1 only show out after i press other button which will cause postback.(just like refresh)
the second method is i set session flag at gridview.selectedIndexChanged. Then i detect at page load
If postback then
If Session("flag1").ToString = "OK" Then
frmdetail1.Visible = True
Else
frmdetail1.Visible = False
End If
End If
End IF
The problrm for second method is ...the VS only run gridview.selectedIndexChanged event after page load event. so it cant detect any flag.
both of the method above is not working. Is there any recommended way to solve this method. What i want is when i select a row from grid view, the table1 will be visible.
thanks and sorry for any poor language used :)
|