Click here to Skip to main content
15,884,353 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 0:58
nagendrathecoder24-Sep-09 0:58 
GeneralRe: Confirmation Box Problem Pin
sashidhar24-Sep-09 1:00
sashidhar24-Sep-09 1:00 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 1:00
nagendrathecoder24-Sep-09 1:00 
GeneralRe: Confirmation Box Problem Pin
sashidhar24-Sep-09 1:01
sashidhar24-Sep-09 1:01 
GeneralRe: Confirmation Box Problem Pin
Abhijit Jana24-Sep-09 1:03
professionalAbhijit Jana24-Sep-09 1:03 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 1:06
nagendrathecoder24-Sep-09 1:06 
GeneralRe: Confirmation Box Problem Pin
Abhijit Jana24-Sep-09 2:40
professionalAbhijit Jana24-Sep-09 2:40 
AnswerRe: Confirmation Box Problem Pin
Nisha Agrawal24-Sep-09 1:11
Nisha Agrawal24-Sep-09 1:11 
The same thing will work here. actually you are not adding it at correct place. First of all, u are adding the attribute to Grid view. In fact when u wanna delete any item then i m sure u have placed some control in each row on clicking of that , that particular item will be deleted.

So if it is a LinkButton/Button in ItemTemplate then you can add the attribute to it onRowDataBound Event or RowCreated Event or OnClientClick Property itself.

<asp:TemplateField HeaderText="Delete" >
       <ItemTemplate>
             <asp:ImageButton ID="imgbtnDelete" ImageUrl="~/images/delete.jpg" OnClientClick="return confirm('Are you sure you want to delete it ?');"
                                                                            CommandArgument='<%# Eval("UserId") %>' CommandName="DeleteUser" runat="server" />
             </ItemTemplate>
</asp:TemplateField>



OR
ImageButton btn = (ImageButton)(e.Row.FindControl("imgbtnDelete"));
btn.Attributes.Add("OnClientClick","funcationToBecalled();")

GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 1:18
nagendrathecoder24-Sep-09 1:18 
JokeRe: Confirmation Box Problem Pin
sashidhar24-Sep-09 1:33
sashidhar24-Sep-09 1:33 
GeneralRe: Confirmation Box Problem Pin
nagendrathecoder24-Sep-09 1:34
nagendrathecoder24-Sep-09 1:34 
QuestionUpdate panel in asp.net Pin
Harry@NewDelhi24-Sep-09 0:21
Harry@NewDelhi24-Sep-09 0:21 
AnswerRe: Update panel in asp.net Pin
Christian Graus24-Sep-09 0:34
protectorChristian Graus24-Sep-09 0:34 
AnswerRe: Update panel in asp.net Pin
sashidhar24-Sep-09 0:46
sashidhar24-Sep-09 0:46 
QuestionFetch value from dropdown into a text box using javascript Pin
amittinku24-Sep-09 0:17
amittinku24-Sep-09 0:17 
AnswerRe: Fetch value from dropdown into a text box using javascript Pin
sris 42624-Sep-09 0:23
sris 42624-Sep-09 0:23 
GeneralRe: Fetch value from dropdown into a text box using javascript Pin
Christian Graus24-Sep-09 0:37
protectorChristian Graus24-Sep-09 0:37 
QuestionDate using Calendar.setup Pin
Harry@NewDelhi24-Sep-09 0:15
Harry@NewDelhi24-Sep-09 0:15 
AnswerRe: Date using Calendar.setup Pin
sashidhar24-Sep-09 0:31
sashidhar24-Sep-09 0:31 
Questionto store connection string in different web.config files in different loacations and machines Pin
myms.net24-Sep-09 0:13
myms.net24-Sep-09 0:13 
AnswerRe: to store connection string in different web.config files in different loacations and machines Pin
sashidhar24-Sep-09 0:19
sashidhar24-Sep-09 0:19 
GeneralRe: to store connection string in different web.config files in different loacations and machines Pin
myms.net24-Sep-09 0:32
myms.net24-Sep-09 0:32 
GeneralRe: to store connection string in different web.config files in different loacations and machines Pin
sashidhar24-Sep-09 0:49
sashidhar24-Sep-09 0:49 
GeneralRe: to store connection string in different web.config files in different loacations and machines Pin
myms.net24-Sep-09 1:02
myms.net24-Sep-09 1:02 
AnswerRe: to store connection string in different web.config files in different loacations and machines Pin
Gamzun24-Sep-09 8:36
Gamzun24-Sep-09 8:36 

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.