FineUI 官方论坛

标题: 【求助】空项目中新建web窗体后,Alert.show()无法使用? [打印本页]

作者: 天亮D悟空    时间: 2015-7-7 15:15
标题: 【求助】空项目中新建web窗体后,Alert.show()无法使用?
test.aspx
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="EmptyProjectNet45_FineUI.test" %>

  2. <!DOCTYPE html>

  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6.     <title></title>
  7. </head>
  8. <body>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.         <f:PageManager ID="PageManager1" runat="server" />
  12.         <f:Button ID="Button1" runat="server" Text="Button"></f:Button>
  13.     </div>
  14.     </form>
  15. </body>
  16. </html>
复制代码

test.aspx.cs
  1. namespace EmptyProjectNet45_FineUI
  2. {
  3.     public partial class test : System.Web.UI.Page
  4.     {
  5.         protected void Page_Load(object sender, EventArgs e)
  6.         {

  7.         }

  8.         protected void Button1_Click(object sender, EventArgs e)
  9.         {
  10.             alert.show(); //无法使用,提示:上下文名称中不存在
  11.         }
  12.     }
  13. }
复制代码

在button1_click事件中,无法使用alert.show()???
请教该如何处理?


作者: 天亮D悟空    时间: 2015-7-7 15:25
哦,在CS文件中没有引用。
但是引用后
  1. using FineUI;
复制代码


出现如下错误?

[attach]7642[/attach]
作者: sanshi    时间: 2015-7-7 15:51
空项目,用VS打开 sln 文件,注意是以 WebApplication 的形式打开(不是WebSite)!




欢迎光临 FineUI 官方论坛 (https://www.fineui.com/BBS/) Powered by Discuz! X3.4