Groups | Blog | Home
all groups > asp.net > april 2005 >

asp.net : button link situation


Patrick Olurotimi Ige
4/28/2005 5:43:00 PM
Can't get what u really want to do!



Daves
4/28/2005 11:51:03 PM
I'd like to have a button on page A to open a FormView on page B... and in
Insert mode! How can I do that?

billmiami2 NO[at]SPAM netscape.net
4/29/2005 6:17:23 AM
Your question certainly isn't very clear but I'll assume that you can
place page B into "insert mode" if you pass the appropriate parameter
to it in your querystring. Also, I'll assume that you want to open
page B in another window. You simply need to add a javascript (client
side) event handler to the button and you should be fine.

Protected WithEvents btOpenPageB As HtmlInputButton 'this is the
declaration for your button on page A

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

btOpenPageB.Attributes.Add("onclick",
"javascript:window.open('pageB?mode=insert','newwindow');")

End Sub

I hope this helps.

Bill E.
Daves
4/29/2005 11:53:19 AM
hmm... there is a button link (or even href link) on aspx page A
Then I have a FormView with ItemTemplate and InsertTemplate on aspx Page B

normally I'd do a button with command="Insert" in the ItemTemplate but I'd
like to be able to press that button on page A to go directly to Page B's
Formview and in Insert mode...



[quoted text, click to view]

AddThis Social Bookmark Button