page load on postback
-
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
-
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
-
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.
-
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
?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.
-
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.
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