Click here to Skip to main content
14,265,982 members
   

ASP.NET

 
Generalcode for solving zero distortion tecniqueof image steganography Pin
Member 1346535714-Oct-17 9:43
memberMember 1346535714-Oct-17 9:43 
SuggestionRe: code for solving zero distortion tecniqueof image steganography Pin
Kornfeld Eliyahu Peter14-Oct-17 22:53
mveKornfeld Eliyahu Peter14-Oct-17 22:53 
QuestionCode is inserting only one row of records. Any ideas? Pin
samflex9-Oct-17 5:16
membersamflex9-Oct-17 5:16 
AnswerRe: Code is inserting only one row of records. Any ideas? Pin
F-ES Sitecore11-Oct-17 0:54
mveF-ES Sitecore11-Oct-17 0:54 
AnswerRe: Code is inserting only one row of records. Any ideas? Pin
ZurdoDev11-Oct-17 9:44
professionalZurdoDev11-Oct-17 9:44 
QuestionHave a form result invisible until submission? Pin
The Rarispy8-Oct-17 16:48
memberThe Rarispy8-Oct-17 16:48 
AnswerRe: Have a form result invisible until submission? Pin
Richard Deeming9-Oct-17 8:42
mveRichard Deeming9-Oct-17 8:42 
QuestionChanging the text of a GridView buttonfield text dynamically Pin
holdorf7-Oct-17 15:10
memberholdorf7-Oct-17 15:10 
I have a GridView with a buttonfield column that I am using to edit and save the value of records. The problem I am having is that in the Grid's Row Command event I want to change the button's text from "Edit" to "Save" but my code below doesn't work. Can anyone see what I'm doing wrong?

HTML:

<asp:GridView ID="gvProducts" CssClass="gvOrders" Width="560px" PagerStyle-CssClass="pager"     OnRowCommand="gvProducts_RowCommand" HeaderStyle-CssClass="header" RowStyle-CssClass="rows" AllowPaging="true" AutoGenerateColumns="false" runat="server" DataSourceID="ObjectDataSource1" AllowSorting="True">
    <Columns>
        <asp:buttonfield buttontype="Button" HeaderStyle-BackColor="Transparent" commandname="Edit" 		headertext="Edit" text="Edit"/>
	<asp:buttonfield buttontype="Button" HeaderStyle-BackColor="Transparent" commandname="Delete" headertext="Delete" 		text="Delete"/>
	<asp:BoundField HeaderText="Product ID" DataField="ProductID" SortExpression="ProductID" />
	<asp:BoundField HeaderText="Units In Stock" DataField="UnitsInStock" SortExpression="UnitsInStock" />
	<asp:BoundField HeaderText="Units On Order" DataField="UnitsOnOrder" SortExpression="UnitsOnOrder" />
	<asp:BoundField HeaderText="Reorder Level" DataField="ReorderLevel" SortExpression="ReorderLevel" />
    </Columns>
</asp:GridView>


Code behind:

protected void gvProducts_RowCommand(object sender, GridViewCommandEventArgs e)
{
    switch (e.CommandName)
    {
        case "Edit":
            int index = Convert.ToInt32(e.CommandArgument);
            Button myButton = null;
            myButton = (Button)gvProducts.Rows[index].Cells[0].Controls[0];
            myButton.Text = "Save";
            return;
        case "Delete":
            return;
        default:
            return;
    }
}

QuestionASP.Net Core and global.asax Pin
Mou_kol5-Oct-17 23:21
memberMou_kol5-Oct-17 23:21 
AnswerRe: ASP.Net Core and global.asax Pin
Afzaal Ahmad Zeeshan11-Oct-17 12:31
mveAfzaal Ahmad Zeeshan11-Oct-17 12:31 
QuestionDesktop application "communicating" with ASP.NET Pin
The Junior4-Oct-17 23:02
memberThe Junior4-Oct-17 23:02 
AnswerRe: Desktop application "communicating" with ASP.NET Pin
Atlapure Ambrish5-Oct-17 4:04
professionalAtlapure Ambrish5-Oct-17 4:04 
GeneralRe: Desktop application "communicating" with ASP.NET Pin
The Junior5-Oct-17 4:24
memberThe Junior5-Oct-17 4:24 
SuggestionRe: Desktop application "communicating" with ASP.NET Pin
Richard Deeming5-Oct-17 4:08
mveRichard Deeming5-Oct-17 4:08 
GeneralRe: Desktop application "communicating" with ASP.NET Pin
The Junior5-Oct-17 4:21
memberThe Junior5-Oct-17 4:21 
GeneralRe: Desktop application "communicating" with ASP.NET Pin
David Mujica5-Oct-17 9:08
memberDavid Mujica5-Oct-17 9:08 
GeneralRe: Desktop application "communicating" with ASP.NET Pin
The Junior5-Oct-17 21:34
memberThe Junior5-Oct-17 21:34 
QuestionProgramming Chat supports video and audio and the number of connected high Pin
Member 1343772929-Sep-17 12:07
professionalMember 1343772929-Sep-17 12:07 
AnswerRe: Programming Chat supports video and audio and the number of connected high Pin
ZurdoDev2-Oct-17 4:10
professionalZurdoDev2-Oct-17 4:10 
QuestionImplementation advice for quiz with 4 choice questions Pin
Farhad Eft28-Sep-17 10:09
memberFarhad Eft28-Sep-17 10:09 
AnswerRe: Implementation advice for quiz with 4 choice questions Pin
Farhad Eft30-Sep-17 6:31
memberFarhad Eft30-Sep-17 6:31 
QuestionASP.NET authorization Pin
SaeedPol27-Sep-17 8:30
memberSaeedPol27-Sep-17 8:30 
AnswerRe: ASP.NET authorization Pin
The Junior5-Oct-17 4:34
memberThe Junior5-Oct-17 4:34 
QuestionRepeater Template Desinging Pin
Member 1337195126-Sep-17 8:41
memberMember 1337195126-Sep-17 8:41 
AnswerRe: Repeater Template Desinging Pin
A_Griffin26-Sep-17 9:26
memberA_Griffin26-Sep-17 9:26 

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.