???如何在组件内调用一个页面??? 搞定!给我分!System.Web.HttpContext.Current.Response.Redirect("Url"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 System.Diagnostics.Process.Start("http://www.yahoo.com"); System.Web.HttpContext.Current.Response.Redirect("Url");是正选,System.Diagnostics.Process.Start("http://www.yahoo.com");启动了在iis中启动了一个线程,不是一个好方法 System.Web.HttpContext 用上下文private string GetConnectionString() { String pwd="User Id="+m_User+";Password="+m_Pwd+";"; HttpContext context = HttpContext.Current; string connectionString = (string)context.Cache["ConnectionString"]; if (connectionString== null) { connectionString=ConfigurationSettings.AppSettings["ConnectionString"] + pwd; context.Cache["ConnectionString"] = connectionString; } return connectionString; } System.Web.HttpContext.Current.Response.Redirect("Url");可以,但是导致当前页面跳转到该页面,如果我希望像js那样window.open()到另外一个页面上如何实现呢?System.Diagnostics.Process.Start("http://www.yahoo.com");提示错误:System.ComponentModel.Win32Exception: 系统找不到指定的文件。 为什么总是报错 为什么要提交两次 网站在百度上打不开啊?? C#怎样以非独占的方式来写文件呢? 这种业务逻辑有点复杂,是否应该使用某种设计模式? 在C#控制台可以用数组将时间用中文显示,那如果是ASP.net应该怎么写呢? 求 全文索引的变量处理 .net中cs代码中 获取当前页面的路径 大家晚上好!如何把从数据库中查询出来的图片分x行,y列显示? 如何在两个项目之间传递数据 做网站时遇到的一系列问题。请指教! 昨天没有解决的问题。请大家帮帮忙(在线等)
{
String pwd="User Id="+m_User+";Password="+m_Pwd+";";
HttpContext context = HttpContext.Current;
string connectionString = (string)context.Cache["ConnectionString"];
if (connectionString== null)
{
connectionString=ConfigurationSettings.AppSettings["ConnectionString"] + pwd;
context.Cache["ConnectionString"] = connectionString;
}
return connectionString;
}
可以,但是导致当前页面跳转到该页面,如果我希望像js那样window.open()到另外一个页面上如何实现呢?
System.Diagnostics.Process.Start("http://www.yahoo.com");
提示错误:
System.ComponentModel.Win32Exception: 系统找不到指定的文件。