{
if (GridView2.Rows[i].Cells[3].Text.Equals(team))
{
flag = 1;
Literal literal = new Literal();
literal.Text = "<img src=\"/img/not.png\" height=\"15px\" />";
tCell.Controls.Add(literal);
}
else
{
Literal literal = new Literal();
literal.Text = "<img src=\"/img/not.png\" height=\"15px\" />";
tCell.Controls.Add(literal);
}
}
else
{
Literal literal = new Literal();
literal.Text = "<img src=\"/img/yes.png\" height=\"15px\" />";
tCell.Controls.Add(literal);
}
}
tRow.Cells.Add(tCell);
if (flag == 1)
{
tRow = new TableRow();
Table1.Rows.Add(tRow);
tCell = new TableCell();
tCell.Text = "";
tRow.Cells.Add(tCell);
tCell = new TableCell();
tCell.Text = "";
tRow.Cells.Add(tCell);
tCell = new TableCell();
tCell.Text = "";
tRow.Cells.Add(tCell);
tCell = new TableCell();
tCell.Text = "";
tRow.Cells.Add(tCell);
tCell = new TableCell();
tCell.Text = "";
tRow.Cells.Add(tCell);
tCell = new TableCell();
tCell.Text = "";
tRow.Cells.Add(tCell);
tCell = new TableCell();
tab = new FileUpload();
tab.ID = "tab" + i.ToString();
tab.CssClass = "tabbut";
but = new Button();
but.CssClass = "tabbut";
but.ID = "but" + i.ToString();
but.Click += new EventHandler(but_Click);
but.Text = "Upload";
tab.Width = 200;
tCell.Controls.Add(tab);
tCell.Controls.Add(but);
flag = 0;
tRow.Cells.Add(tCell);
}
}
}
protected void but_Click(object sender, EventArgs e)
{
string tab = "";
tab = ((Button)sender).ID.ToString().Replace("but", "tab");
FileUpload fileupload = ((FileUpload)Page.FindControl(tab));
if (fileupload.HasFile)
{
string filename = fileupload.FileName;
}
}
protected void filtr_stats_SelectedIndexChanged(object sender, EventArgs e)
{
if (((DropDownList)sender).SelectedItem.Text.Equals("Все"))
{
if (filtr_teams.SelectedValue.Equals("Все") ||filtr_teams.SelectedValue == null || filtr_teams.SelectedValue.Equals("") || filtr_teams.SelectedValue.Equals(" ") || filtr_teams.SelectedValue.Equals(" "))
{
PowerPlayUserProvider.getGames(GridView2, null, -1, null, "khl20122013_1");
build_table();
}
Уважаемый посетитель!
Чтобы распечатать файл, скачайте его (в формате Word).
Ссылка на скачивание - внизу страницы.