|
-
Feb 14th, 2005, 08:39 AM
#1
Thread Starter
Hyperactive Member
-
Feb 14th, 2005, 09:31 AM
#2
Addicted Member
Re: Frames hell
I too am dealing with frames at the moment. Though your problem has nothing to do with frames.
Pressing <enter> forces postback, which essentially does nothing, but put this code in the page_load of the form with the search and it should work.
Page.RegisterHiddenField("__EVENTTARGET", "btnSearch")
Where btnSearch is the name of your search button. And it should work just fine.
Since you are dealing with frames maybe you could answer one of my questions:
Is it possible to call a function or button of one frame from another frame?
-
Feb 14th, 2005, 10:31 AM
#3
Thread Starter
Hyperactive Member
Re: Frames hell
Thanks token. Works a treat!
As for your problem, I have a link to a page that will probably help you. Let me look it out and I'll post it back here.
Thanks again
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
Dr. Seuss 
-
Feb 14th, 2005, 12:11 PM
#4
Addicted Member
Re: Frames hell [Resolved]
No problem ms. squirrel. I'm just glad I could help.
And if you could get back to me with that link that would be great.
-
Feb 15th, 2005, 06:16 AM
#5
Thread Starter
Hyperactive Member
Re: Frames hell [Resolved]
Sorry Token...couldn't find the article I was originally looking for, but this morning when faced with a problem similar to yours, I found some helpful code in this article.
For my purposes, I have a treeview in the left frame that needs to be refreshed so I've used this code:
VB Code:
<script language =vbscript>
Sub RefreshTree()
parent.frames("contents").location.href = "treeview.aspx"
parent.frames("main").location.href = "annualreview.aspx"
End Sub
</script>
Then I have this control that calls the script code:
VB Code:
<asp:HyperLink id="lnkContinue" runat="server" NavigateUrl="javascript:RefreshTree()">Continue</asp:HyperLink></P>
Hope this helps!
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
Dr. Seuss 
-
Feb 15th, 2005, 09:02 AM
#6
Thread Starter
Hyperactive Member
Re: Frames hell [Resolved]
I also found this page full of frame FAQs which was really useful.
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
Dr. Seuss 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|