By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,336 Members | 1,293 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,336 IT Pros & Developers. It's quick & easy.

how to use Frames with C#

P: n/a
The only solution I'v found was to use a script in Jscript
like this:

Button1.Attributes.Add("onclick","javascript:myscr ipt(1)");

and the code of Myscript is:

<script language="JavaScript">
function myscript(i)
{
parent.frames
(2).location.href="http://..../mypage.aspx?argument1="+i
}
</script>

But there is some issues with this method.
- I can only execute a my script when an "onclick" event
happens... And I'd like to use it with a
SelectedIndexChanged event.
- It's not easy to change the argument
in "javascript:myscript(1)", since it is a constant string.

If anybody knows a way to do this only in C#, it would be
cool.
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.