本文整理汇总了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");
}
}
}
示例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";
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}