想用C#打开内部页面 [英] Want to Open Internal Page with C#
本文介绍了想用C#打开内部页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。我真的很擅长在Visual Studio中构建网页。我正在使用VS 2015,并且我试图点击一下按钮来显示当前站点中的页面。该网站尚未部署,因为我们目前正在测试这个想法,所以我希望
相对来参考它。我已经尝试了很多东西而无法让它发挥作用。我见过很多其他人询问打开外部网页,但不是内部网页。
    private void ActiveShooter()
      {
       
      }
      private void Tornado()
      {
$
      }
      private void CustomAlert()
      {
          customAlertTextBox.Enabled = true;
      }
      protected void selectAlertButton_Click(object sender,EventArgs e)
      {
          int i = alertDropDownList.SelectedIndex; //从下拉框中保留选定的索引
         开关(i)
          {
             案例0:
                  ActiveShooter();
                 休息;
             案例1:
                 龙卷风();
                 休息;
             案例2:
                  CustomAlert();
                 休息;
          }¥b $ b       }
解决方案
HI,
这是C#论坛。您的问题应该在ASP.Net论坛中提出。
Hello all. I am really new to building webpages in Visual Studio. I'm using VS 2015 and am trying to get a button click to bring up a page in the current site. The site isn't deployed yet, as we are just testing out the idea at the moment, so I was hoping to reference it relatively. I've tried a number of things and can't get it to work. I've seen lots of other people asking about opening an external page, but not an internal one.
private void ActiveShooter (){
}
private void Tornado()
{
}
private void CustomAlert()
{
customAlertTextBox.Enabled = true;
}
protected void selectAlertButton_Click(object sender, EventArgs e)
{
int i = alertDropDownList.SelectedIndex; // Holds selected index from drop down box
switch (i)
{
case 0:
ActiveShooter();
break;
case 1:
Tornado();
break;
case 2:
CustomAlert();
break;
}
}
解决方案
HI,
This is C# forum. Your question should ask in ASP.Net forum.
这篇关于想用C#打开内部页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文