打开新窗口中的问题 [英] problem in open new window
本文介绍了打开新窗口中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在listview的item_command上打开新窗口,如果条件为true则要显示错误消息..
所以plz帮助我..
i want to open new window on item_command of listview when if condition true else want to display error message..
so plz help me..
推荐答案
function ShowError()
{
alert("There is an error!!");
}
protected void ListView_OnItemCommand(object sender, ListViewCommandEventArgs e)
{
if (String.Equals(e.CommandName, "CommandName"))
{
// Your code here for condition check
Page.ClientScript.RegisterStartupScript(GetType(), "Key", "ShowError();", true);
}
}
这篇关于打开新窗口中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文