Rambler's Top100
Главная
Новости
Статьи
Форумы
Книги
Коды
Сообщество
Блоги
О нас
 

Логин

Email:
  Пароль:

Войти
Зарегистрироваться
Забыл пароль

Поиск

 Искать :
 
Вперед

Сообщение

conderol


Известный Болтун

Зарегистрирован:
21 February 2005
Сообщения: 680
Примеры кода: 0
 

RE[2]: Command Argument

28 October 2006 21:25  


protected void grdBO_RowCreated(object sender, GridViewRowEventArgs e)
    {
        //if it is data row and it is in edit mode
        if (e.Row.RowType == DataControlRowType.DataRow && (e.Row.RowState & DataControlRowState.Edit) != 0) 
        {
            Button addButton = e.Row.FindControl("btnUploadFile") as Button; 
            addButton.CommandArgument = e.Row.RowIndex.ToString(); 
        }
    }



то что тебе нужно . Просто замени Button на LinkButton

/**********Comments***************************/
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With gr

Данное сообщение получено с сайта GotDotNet.RU
Наверх
  



DataGrid, DataList, Repeater

 Command Argumentmxc  27 October 2006 16:42
 Command ArgumentMisterIsk  26 February 2008 19:57
 RE: Command ArgumentDimon aka Manowar  27 October 2006 22:29
 RE[2]: Command Argumentmxc  28 October 2006 11:46
 RE[2]: Command Argumentconderol  28 October 2006 21:25
 RE[2]: Command Argumentconderol  28 October 2006 21:27
 RE[3]: Command Argumentmxc  29 October 2006 10:17
 
Наш Киев

Apartments for Rent

Rambler's Top100
Рейтинг@Mail.ru
Идея: Dimon aka Manowar Программирование: Dimon aka Manowar Дизайн: Dan Lebedev
Хостинг от компании Parking.ru
Карта сайта