.NETGURU
Frames and Web controls
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngclient' list.


Kelly McCouch
Hi
Does anyone know how to work with frames in VB.net
I have a web control in my top frame and when I click on it, I want to
fill the bottom frame with data depending on what the user selected in
the top frame.
This was ok with HTML and vbscript, I just used ....

parent.frames("Framename").location.href =3D "Page1.asp?"

is there a similar thing for VB.net?

Reply to this message...
 
    
Bob Filipiak
I try to avoid using the "F'" word but AFAIK requires client side scripting
to update elements in the various frames that are displyed on the client
unless you redirect to another page that has the frame that you want to
display the info as its target=

What specifically is the user selecting in your control and what is the data
you want to disply and where is it coming from?

"Kelly McCouch" <Click here to reveal e-mail address> wrote in message
news:682188@aspngclient...

Hi
Does anyone know how to work with frames in VB.net
I have a web control in my top frame and when I click on it, I want to
fill the bottom frame with data depending on what the user selected in
the top frame.
This was ok with HTML and vbscript, I just used ....

parent.frames("Framename").location.href = "Page1.asp?"

is there a similar thing for VB.net?

Reply to this message...
 
    
James Avery
You will have to stick with using javascript for client side actions, as
vb.net is all server-side. You could use target in your link to target
the frame and it should work.

-----Original Message-----
From: Kelly McCouch [mailto:Click here to reveal e-mail address]
Sent: Thursday, July 11, 2002 9:10 AM
To: aspngclient
Subject: [aspngclient] Frames and Web controls

Hi
Does anyone know how to work with frames in VB.net
I have a web control in my top frame and when I click on it, I want to
fill the bottom frame with data depending on what the user selected in
the top frame. This was ok with HTML and vbscript, I just used ....

parent.frames("Framename").location.href = "Page1.asp?"

is there a similar thing for VB.net?

| [aspngclient] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT

Reply to this message...
 
    
syed Qazafi Anjum
dear
Try this this will work
Add this javascript to u'r page
<script language="javascript">
function showSupplierDetails()
{
var lngSupplierId
lngSupplierId=document.frmSupplierListings.lstSuppliers.value;
window.parent.frames(2).location="../Supplier/wfSupplier.aspx?SupplierId="+lngSupplierId;
}
</script>
Then add this line on your page load event
cmdDisplayDetails.Attributes.Add("onClick", "showSupplierDetails()") where
cmdDisplayDetails is the button which is click to show the detail of selected Supplier ID in other frame
then u can get this SupplierId at the page load event of the wfSupplier page by adding this line

Me.txtSupplierID.Text = Page.Request("SupplierId")

Thanx & Regards
Syed Qazafi Anjum
Kelly McCouch <Click here to reveal e-mail address> wrote: Hi
Does anyone know how to work with frames in VB.net
I have a web control in my top frame and when I click on it, I want to
fill the bottom frame with data depending on what the user selected in
the top frame.
This was ok with HTML and vbscript, I just used ....

parent.frames("Framename").location.href = "Page1.asp?"

is there a similar thing for VB.net?

| [aspngclient] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/aspngclient.asp = JOIN/QUIT

---------------------------------
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
Reply to this message...
 
 
System.Web.UI.Page




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification