Click here to Skip to main content
16,008,183 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to retrieve data from database for every one minutes Pin
N a v a n e e t h27-Dec-07 20:28
N a v a n e e t h27-Dec-07 20:28 
GeneralDisable pbm Pin
SreejithAchutan27-Dec-07 19:32
SreejithAchutan27-Dec-07 19:32 
GeneralRe: Disable pbm Pin
Sun Rays27-Dec-07 19:51
Sun Rays27-Dec-07 19:51 
GeneralRe: Disable pbm Pin
SreejithAchutan27-Dec-07 20:35
SreejithAchutan27-Dec-07 20:35 
GeneralRe: Disable pbm Pin
Sun Rays27-Dec-07 20:58
Sun Rays27-Dec-07 20:58 
GeneralRe: Disable pbm Pin
SreejithAchutan27-Dec-07 21:37
SreejithAchutan27-Dec-07 21:37 
GeneralRe: Disable pbm Pin
Sun Rays27-Dec-07 21:42
Sun Rays27-Dec-07 21:42 
GeneralRe: Disable pbm Pin
KennyPatel29-Dec-07 1:33
KennyPatel29-Dec-07 1:33 
Dear Friend,

Your gridview your Add button is templatefield and given name is "btAdd". you are executing javascript while click on this button which run ok. Now if you want to disable while selecting row you can write bellow code::
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Button bt=(Button)e.Row.Cells[2].FindControl("btAdd");
bt.Enabled = false;
}
}

now let say while editing raw you want to enable Add button than write this code::
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
bindDataList();
Button bt = (Button)GridView1.Rows[e.NewEditIndex].Cells[2].FindControl("btAdd");
bt.Enabled = true;
}

I hope this will help you.

Thanks
Roll eyes | :rolleyes:

"Good Thing Goes With Good People..."

Questionhow to remove Minimize Button from pop up window......... Pin
mithun narayanan27-Dec-07 19:27
mithun narayanan27-Dec-07 19:27 
GeneralRe: how to remove Minimize Button from pop up window......... Pin
Sun Rays27-Dec-07 19:55
Sun Rays27-Dec-07 19:55 
GeneralRe: how to remove Minimize Button from pop up window......... Pin
mithun narayanan27-Dec-07 20:17
mithun narayanan27-Dec-07 20:17 
GeneralRe: how to remove Minimize Button from pop up window......... Pin
Abhijit Jana27-Dec-07 20:42
professionalAbhijit Jana27-Dec-07 20:42 
GeneralRe: how to remove Minimize Button from pop up window......... Pin
mithun narayanan27-Dec-07 21:06
mithun narayanan27-Dec-07 21:06 
GeneralRe: how to remove Minimize Button from pop up window......... Pin
Abhijit Jana27-Dec-07 21:25
professionalAbhijit Jana27-Dec-07 21:25 
GeneralRe: how to remove Minimize Button from pop up window......... Pin
Sun Rays27-Dec-07 21:17
Sun Rays27-Dec-07 21:17 
GeneralForms Authentications Vs Session object Pin
Satish - Developer27-Dec-07 19:13
Satish - Developer27-Dec-07 19:13 
Generalretrieve image from database automatically change particular time interval Pin
ramesh_imayam27-Dec-07 19:06
ramesh_imayam27-Dec-07 19:06 
GeneralRe: retrieve image from database automatically change particular time interval Pin
Michael Sync27-Dec-07 19:34
Michael Sync27-Dec-07 19:34 
QuestionRe: retrieve image from database automatically change particular time interval Pin
Sonia Gupta27-Dec-07 20:54
Sonia Gupta27-Dec-07 20:54 
GeneralRe: retrieve image from database automatically change particular time interval Pin
Michael Sync27-Dec-07 20:59
Michael Sync27-Dec-07 20:59 
GeneralRe: retrieve image from database automatically change particular time interval Pin
Abhijit Jana27-Dec-07 20:43
professionalAbhijit Jana27-Dec-07 20:43 
Generalbinary Pin
niki_nilu27-Dec-07 18:54
niki_nilu27-Dec-07 18:54 
GeneralRe: binary Pin
niki_nilu27-Dec-07 19:17
niki_nilu27-Dec-07 19:17 
GeneralRe: binary Pin
Sonia Gupta27-Dec-07 19:32
Sonia Gupta27-Dec-07 19:32 
GeneralRe: binary Pin
niki_nilu27-Dec-07 20:22
niki_nilu27-Dec-07 20:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.