PDA

View Full Version : مشکل در باز نشدن صفحه popup



soha_smb
چهارشنبه 18 اردیبهشت 1392, 22:43 عصر
سلام
اقا اگه میشه این کد رو نگاه کنین ببینین مشکلش کجاست که پنجره رو باز نمی کنه

public static string GetScript(string URL, string Name, string Width, string Height,
bool MenuBar, bool Toolbar,bool Location,bool StatusBar,bool Copyhistory,bool ScrollBar)
{
string ret = "javascript:void window.open ('";
ret = ret + URL + "', '" + Name + "', '";

ret = ret + "resizable=1,";
ret = ret + "width=" + Width + ",";
ret = ret + "height=" + Height + ",";
ret = ret + "menuBar=" + ((MenuBar) ? "1" : "0") + ",";
ret = ret + "toolbar=" + ((Toolbar) ? "1" : "0") + ",";
ret = ret + "location=" + ((Location) ? "1" : "0") + ",";
ret = ret + "statusBar=" + ((StatusBar) ? "1" : "0") + ",";
ret = ret + "copyhistory=" + ((Copyhistory) ? "1" : "0") + ",";
ret = ret + "scrollBar=" + ((ScrollBar) ? "1" : "0") + ",";
ret = ret + "')";
return ret;
}



تو رویداد Button1 هم داریم

protected void Button1_Click(object sender, EventArgs e)
{
string RetVal = "ReportShow.aspx?module=" + ModuleName + "&" + "id=" + id;
BLL.Reports.GetScript(RetVal, "","900","500", true, true, true, true, true, true);
{