case 1:
string strUrl = "www.163.com";
string msg="<script>window.open("+"\""+strUrl+"\""+")</script>";
Response.Write(msg);
break;
请问怎么打开新页面?我这样写打开新页面的地址是在原来url中添加的,要怎么写,谢谢
string strUrl = "www.163.com";
string msg="<script>window.open("+"\""+strUrl+"\""+")</script>";
Response.Write(msg);
break;
请问怎么打开新页面?我这样写打开新页面的地址是在原来url中添加的,要怎么写,谢谢
string strUrl = "www.163.com";
string msg="<script>window.open("+"'"+strUrl+"'"+")</script>";
Page.RegisterStartupScript("OpenWindows",msg);
break;
没http://怎么行你那可不是浏览器地址栏啊,直接www.163.com就行