Home All Groups Group Topic Archive Search About
Author
20 May 2009 5:54 PM
jdrott1
hi all,

i'm trying to click a link on my main page and perform another link
click on the redirected page.  the second page loads a datagrid based
on a link click.  how would i redirect to page 2 and select the
button?

Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
        Response.Redirect("products.aspx?=lkbutton2.performclick()")
End Sub

Author
21 May 2009 4:00 AM
Cor Ligthert[MVP]
Jdrott,

Your question is not very clear as I see that it is not answered yet.

However, as you use a redirect, you for sure need an session to keep the
data from the previous page.
(There are 3 other ways but they are mostly more memory consuming or slow)

Cor

Show quoteHide quote
"jdrott1" <jonathandr***@gmail.com> wrote in message
news:a5af2c19-1249-44a7-be8c-2bd135f0cbe7@j12g2000vbl.googlegroups.com...
> hi all,
>
> i'm trying to click a link on my main page and perform another link
> click on the redirected page.  the second page loads a datagrid based
> on a link click.  how would i redirect to page 2 and select the
> button?
>
> Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As
> System.EventArgs)
>        Response.Redirect("products.aspx?=lkbutton2.performclick()")
> End Sub