行至水穷处 坐看云起时 念时.net
-----加油 我的2008 ------
posts - 360,  comments - 96,  trackbacks - 4
public static void ShowModalDialogWindow(string webFormUrl, int width, int height, int top, int left)
        
{
            
#region
            
string features = "dialogWidth:" + width.ToString() + "px"
                
+ ";dialogHeight:" + height.ToString() + "px"
                
+ ";dialogLeft:" + left.ToString() + "px"
                
+ ";dialogTop:" + top.ToString() + "px"
                
+ ";center:yes;help=no;resizable:no;status:no;scroll=yes";
            ShowModalDialogWindow(webFormUrl, features);
            
#endregion

        }

public static void ShowModalDialogWindow(string webFormUrl, string features)
        
{
            
string js = ShowModalDialogJavascript(webFormUrl, features);
            HttpContext.Current.Response.Write(js);
        }


        
public static string ShowModalDialogJavascript(string webFormUrl, string features)
        
{
            
#region
            
string js = @"<script language=javascript>                            
                            showModalDialog('
" + webFormUrl + "','','" + features + "');</script>";
            
return js;
            
#endregion

        }
 
posted on 2007-08-30 18:27 念时 阅读(38) 评论(0)  编辑 收藏 所属分类: JavaScript
行至水穷处 坐看云起时
QQ:591745133
Email:nianshi0531@163.com

搜索

 

留言簿(8)

我参与的团队

随笔分类(297)

文章分类(128)

新闻档案(4)

好艳妹专用网站(坚持)

软件开发

音乐

友情链接

积分与排名

  • 积分 - 73620
  • 排名 - 537

最新评论

阅读排行榜

评论排行榜

用心去做每一件事。细节决定成败!