Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2004, 02:07 AM
Authorized User
 
Join Date: Oct 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Button problem

I have file called "main.aspx" with this code:

<frameset border="0" frameSpacing="0" frameBorder="no" cols="97,87%">

<frame name="menue" src="left.aspx" noResize scrolling="auto" target="main">

<frame name="main" src="right.aspx">



In "left.aspx" (The menue) I have a botton. I want that click on it will open the file "Home.aspx" in the right frame (called "main")!!!

In "left.aspx.vb" I have this code but it's dont work.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Page.RegisterClientScriptBlock("Home", "<script language='javascript'>document.frames['main'].src='Home.aspx';</script>")

End Sub


What's the problem and how to fix it?



 
Old November 11th, 2004, 09:38 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Please don't cross post. I already answered your question:

http://p2p.wrox.com/topic.asp?TOPIC_ID=21927





Similar Threads
Thread Thread Starter Forum Replies Last Post
Button OnClick problem john6630 ASP.NET 2.0 Basics 2 September 21st, 2007 05:44 PM
Problem with the Back button aldwinenriquez Classic ASP Basics 2 June 24th, 2005 01:53 AM
Button problem liorlankri Javascript 2 November 18th, 2004 08:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.