使用C#在Flash导航按钮上单击事件 [英] click event on flash navigation buttons using c#

查看:47
本文介绍了使用C#在Flash导航按钮上单击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Visual Studio 2008中使用c#在窗口形式中添加了一个Flash导航按钮.
我想通过单击导航按钮打开一个新表单.我该怎么做?

I have added a flash navigation button in window form using c# in visual studio 2008.
I want to open a new form on clicking the navigation button.How can i do it?

推荐答案

尝试使用脚本
try with the script
Dim Script1 As String = ""
               Script1 = "var Win1 = window.open('ConcretePrdInvoicePrint.aspx?CPSrNo=" & CPSrNo & "&TFormat=" & DrpTimeFormat.SelectedValue & "&ShowOil=" & ChkOilFuel.Checked & "','PrintCP','toolbar=0,location=0, directories=0, status=0, menubar=0,scrollbars=1,resizable=0,width=1014,height=714,left=0,top=0'); Win1.focus();"
               ClientScript.RegisterStartupScript(Me.GetType(), "PrintRpt", Script1, True)


将脚本放入onclick事件中
在这里您可以设置页面名称和要传递的变量
我已经在vb.net


put script in onclick event
here you can set page name and variables you want to pass
i have written this in vb.net


这篇关于使用C#在Flash导航按钮上单击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆