-
Notifications
You must be signed in to change notification settings - Fork 0
/
senti_result.txt
34 lines (32 loc) · 1001 Bytes
/
senti_result.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class sentiment_result : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
SqlConnection conn = new SqlConnection("Data Source=VAIO\\SQLEXPRESS;Initial Catalog=crawl;Integrated Security=True");
protected void Button1_Click(object sender, EventArgs e)
{
try
{
SqlDataAdapter a1 = new SqlDataAdapter("SELECT * FROM sentiscore ", conn);
DataTable dt1 = new DataTable();
a1.Fill(dt1);
GridView1.DataSource = dt1;
GridView1.DataBind();
GridView1.Visible = true;
// lblmess.Text = GridView1.Rows.Count.ToString();
}
catch (Exception ex)
{
Lblmess.Text = ex.Message;
}
}
}