Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GridView column - link button - add confirmation
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01300944
Message ID:
01301305
Views:
13
>Is the column a template column. I think you'll need to convert it to a template column then edit the Item template to get access to the link button properties. There is an OnClientClick property for the link button.
>
>
Do you know what should I use to get the appearance of a link (right now it's a button) and also to fix the problem with not well-formed tag. I don't really want to add a separate script on the page, though I can if it's need to be done this way:
<ItemTemplate>
    <asp:Button ID="Button1" runat="server" Text="Remove User From Role" CommandName="RemUser"

      OnClientClick="return confirm('Are you sure you want to remove ' + 
<%# Eval("UserName") %> + ' from ' + 
document.getElementById('<%= drpSelRole.ClientID %>').value + ' role ?');" />
                </ItemTemplate>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform