Click here to Skip to main content
15,889,034 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWhat is ASP.net roadmap for a beginner? Pin
Dinxen20-Oct-17 6:08
Dinxen20-Oct-17 6:08 
AnswerRe: What is ASP.net roadmap for a beginner? Pin
Richard Deeming20-Oct-17 6:20
mveRichard Deeming20-Oct-17 6:20 
QuestionCustom Tablix Sort Order Z-A Pin
jkirkerx19-Oct-17 11:30
professionaljkirkerx19-Oct-17 11:30 
AnswerRe: Custom Tablix Sort Order Z-A Pin
jkirkerx19-Oct-17 11:38
professionaljkirkerx19-Oct-17 11:38 
QuestionMVC RedirectToRouteResult Help Pin
Foothill18-Oct-17 9:23
professionalFoothill18-Oct-17 9:23 
SuggestionRe: MVC RedirectToRouteResult Help Pin
Richard Deeming18-Oct-17 9:51
mveRichard Deeming18-Oct-17 9:51 
GeneralRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 3:23
professionalFoothill19-Oct-17 3:23 
GeneralRe: MVC RedirectToRouteResult Help Pin
Richard Deeming19-Oct-17 9:25
mveRichard Deeming19-Oct-17 9:25 
GeneralRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 10:58
professionalFoothill19-Oct-17 10:58 
GeneralRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 4:44
professionalFoothill19-Oct-17 4:44 
GeneralRe: MVC RedirectToRouteResult Help Pin
Richard Deeming19-Oct-17 9:18
mveRichard Deeming19-Oct-17 9:18 
PraiseRe: MVC RedirectToRouteResult Help Pin
Foothill19-Oct-17 10:59
professionalFoothill19-Oct-17 10:59 
QuestionPassword Reset works in debug environment but does not work after deployment Pin
Philip Hall16-Oct-17 6:50
Philip Hall16-Oct-17 6:50 
AnswerRe: Password Reset works in debug environment but does not work after deployment Pin
A_Griffin18-Oct-17 21:49
A_Griffin18-Oct-17 21:49 
GeneralRe: Password Reset works in debug environment but does not work after deployment Pin
Philip Hall19-Oct-17 5:10
Philip Hall19-Oct-17 5:10 
Generalcode for solving zero distortion tecniqueof image steganography Pin
Member 1346535714-Oct-17 9:43
Member 1346535714-Oct-17 9:43 
SuggestionRe: code for solving zero distortion tecniqueof image steganography Pin
Kornfeld Eliyahu Peter14-Oct-17 22:53
professionalKornfeld Eliyahu Peter14-Oct-17 22:53 
QuestionCode is inserting only one row of records. Any ideas? Pin
samflex9-Oct-17 5:16
samflex9-Oct-17 5:16 
AnswerRe: Code is inserting only one row of records. Any ideas? Pin
F-ES Sitecore11-Oct-17 0:54
professionalF-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
The 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
Stephen Holdorf7-Oct-17 15:10
Stephen Holdorf7-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
Mou_kol5-Oct-17 23:21 
AnswerRe: ASP.Net Core and global.asax Pin
Afzaal Ahmad Zeeshan11-Oct-17 12:31
professionalAfzaal Ahmad Zeeshan11-Oct-17 12:31 

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.