当前位置: 首页>>代码示例>>C#>>正文


C# Class1.display方法代码示例

本文整理汇总了C#中Class1.display方法的典型用法代码示例。如果您正苦于以下问题:C# Class1.display方法的具体用法?C# Class1.display怎么用?C# Class1.display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Class1的用法示例。


在下文中一共展示了Class1.display方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        Class1 x = new Class1();
        x.connect();

          if(!IsPostBack)

          {
          string q = "select * from Polls";

          DataTable dt = x.display(q);

          gv1.DataSource = dt;
          gv1.DataBind();

            if (Request.QueryString["iid"] != null)
            {
                string id= Request.QueryString["iid"].ToString();

                string s = "delete from polls where id_poll=" + id;

                x.allquery(s);

                Response.Redirect("deletepoll.aspx");
            }

        }
    }
开发者ID:milincjoshi,项目名称:Career_Guidance_System,代码行数:28,代码来源:Deletepoll.aspx.cs

示例2: b1_Click

    protected void b1_Click(object sender, EventArgs e)
    {
        Class1 X = new Class1();
        X.connect();
        string  vartxt= Textbox1.Text ;
        string Password;
          string q="select * from Studentmaster where Email='"+vartxt+"'";
        DataTable dt = X.display(q);
        if (dt.Rows.Count > 0)
        {
            Password = dt.Rows[0]["Password"].ToString();

            if (Send(SQLFix(vartxt), SQLFix("forget password "), SQLFix(Password)))
            {

                msg.Visible = true;

            }
            else
            {
                msg.Text= "Problem with Sending Email , Try after some time";
                msg.Visible = true;
            }

        }
        else
        {
            msg.Visible = true;
            msg.Text = "invalid email id";
        }
    }
开发者ID:milincjoshi,项目名称:Career_Guidance_System,代码行数:31,代码来源:forgotpassword.aspx.cs

示例3: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        Class1 x = new Class1();
        x.connect();

        string q = "select * from Inquiry";
        DataTable dt = x.display(q);

        gv1.DataSource = dt;
        gv1.DataBind();
    }
开发者ID:milincjoshi,项目名称:Career_Guidance_System,代码行数:11,代码来源:answerinquiries.aspx.cs

示例4: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        Class1 x = new Class1();

        x.connect();

        string q = "select * from Course_master where id_institute=" + Session["Id_institute"].ToString();
        DataTable dt = x.display(q);

        g2.DataSource = dt;
        g2.DataBind();
    }
开发者ID:milincjoshi,项目名称:Career_Guidance_System,代码行数:12,代码来源:coursesview.aspx.cs

示例5: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        Class1 x = new Class1();

        x.connect();
        if(Session["Id_institute"] ==null)
        {
            Response.Redirect("../login/institute_login.html");
        }

        string q = "select * from view1 where id_institute=" + Session["Id_institute"].ToString();
         DataTable dt=x.display(q);

           g1.DataSource = dt;
        g1.DataBind();
    }
开发者ID:milincjoshi,项目名称:Career_Guidance_System,代码行数:16,代码来源:institutehome.aspx.cs

示例6: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        Class1 x = new Class1();

        string id = Request.QueryString["iid"];

        string q = "select * from inquiry where id_inquiry=" + id;

        x.connect();

           DataTable dt =x.display(q);
        TextBox1.Text=dt.Rows[0][0].ToString();
        TextBox2.Text=dt.Rows[0][1].ToString();
        TextBox3.Text=dt.Rows[0][2].ToString();
        TextBox4.Text=dt.Rows[0][4].ToString();
    }
开发者ID:milincjoshi,项目名称:Career_Guidance_System,代码行数:16,代码来源:answerinquirey.aspx.cs

示例7: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        Class1 x = new Class1();
        x.connect();

          // string em= Session["email"].ToString();

        string q = "select * from Institutemaster";// where email='"+em+"'";

        DataTable dt = x.display(q);

        txt1.Text=dt.Rows[0][0].ToString();
        txt2.Text=dt.Rows[0][4].ToString();
        txt3.Text=dt.Rows[0][1].ToString();
        txt4.Text=dt.Rows[0][2].ToString();
    }
开发者ID:milincjoshi,项目名称:Career_Guidance_System,代码行数:16,代码来源:Institute+profile.aspx.cs


注:本文中的Class1.display方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。