Exemplo n.º 1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     DANekretnine.InsertOdgovor(Convert.ToInt32(Session[PitanjeID]), TextBox1.Text);
     Panel1.Visible       = false;
     GridView2.DataSource = DANekretnine.getNeodgPitanjaByKorID(Convert.ToInt32(Request["id"]));
     GridView2.DataBind();
 }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request["id"] != null)
         {
             GridView1.DataSource = DANekretnine.getObjavljene(Convert.ToInt32(Request["id"]));
             GridView1.DataBind();
             GridView2.DataSource = DANekretnine.getNeodgPitanjaByKorID(Convert.ToInt32(Request["id"]));
             GridView2.DataBind();
         }
     }
 }