Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string s1;

        s1 = "";
        using (DataSetTableAdapters.DarbareTableAdapter ins = new DataSetTableAdapters.DarbareTableAdapter())
        {
            DataSet.DarbareDataTable ne = ins.select1();
            foreach (DataSet.DarbareRow row1 in ne)
            {
                s1 += "<p class='farsi-align farsi-dir farsi-font'>" + row1.Matn1 + "</p>";


                s1 += "<p>";

                s1 += "<img alt = 'آموزشگاه موسیقی سرایش' src='img_darbare/" + row1.Pic + " 'style='height:146px;width:145px' />";
                s1 += "</p>";

                s1 += "<p class='farsi-align farsi-dir farsi-font'>";
                s1 += "<img alt = '' src='img_darbare/" + row1.Tell1 + "'style='height: 200px; width: 300px'/>";
                s1 += " </p>";

                s1 += "<p class='farsi-align farsi-dir farsi-font'>" + row1.Matn2 + "</p>";
            }
        }
        Literal1.Text = s1;
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Cookies["Login"] == null)
        {
            Response.Redirect("~/Admin/Login.aspx");
        }


        using (DataSetTableAdapters.DarbareTableAdapter ins = new DataSetTableAdapters.DarbareTableAdapter())


        {
            DataSet.DarbareDataTable ne = ins.select1();
            foreach (DataSet.DarbareRow row1 in ne)
            {
                //  txt_matn1.Text = row1.Matn1;
            }
        }
    }