Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6589867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:13:44+00:00 2026-05-25T17:13:44+00:00

In my aspx file I have : <asp:GridView Width=100% DataSourceID=LinqDataSource1 ID=GridView1 OnRowUpdating=GridView1_RowUpdating runat=server AutoGenerateColumns=False

  • 0

In my aspx file I have :

  <asp:GridView Width="100%" DataSourceID="LinqDataSource1" ID="GridView1" OnRowUpdating="GridView1_RowUpdating"
                runat="server" AutoGenerateColumns="False"
                AllowPaging="True" CssClass="gridclass" CellPadding="3" 
                AllowSorting="True" DataKeyNames="ID" >
                <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                <PagerStyle ForeColor="#000066" HorizontalAlign="Left" BackColor="White"></PagerStyle>
                <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="Gray"></HeaderStyle>
                <Columns>
                    <asp:CommandField ShowEditButton="True"></asp:CommandField>
                    <asp:CommandField ShowDeleteButton="true" />
                    <asp:BoundField HeaderText="ProductName" InsertVisible="False" DataField="Title">
                        <ItemStyle HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="ProductImage">
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        <EditItemTemplate>
                            <asp:FileUpload ID="imageupload" runat="server"  />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#">
                                <asp:Image ID="product_image" runat="server" ImageUrl='<%# DataBinder.Eval(Container, "DataItem.Path")%>' Height="20px"
                                    Width="20px" />
                            </asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <SelectedRowStyle ForeColor="White" Font-Bold="True" BackColor="#669999"></SelectedRowStyle>
                <RowStyle ForeColor="#000066"></RowStyle>
            </asp:GridView>

and I want to access the result of <asp:FileUpload ID="imageupload" runat="server" /> in my aspx.cs file I can’t access imageupload control to get the result .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:13:45+00:00Added an answer on May 25, 2026 at 5:13 pm

    You can access the control in gridviewrowdatabound

    protected void GridView1RowDataBound(object sender, GridViewRowEventArgs e)
    {
         var file = (FileUpload) e.Row.FindControl("imageupload");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ListView in my aspx file like this: <asp:ListView ID=ListView1 runat=server></asp:ListView> and
In my aspx file, I have: <asp:UpdatePanel ID=UpdatePanel3 UpdateMode=Always runat=server> <ContentTemplate> <asp:Button ID=Button1 runat=server
in aspx file I have <asp:DropDownList ID=DropDownList1 runat=server > </asp:DropDownList> <asp:DropDownList ID=DropDownList2 runat=server> </asp:DropDownList>
Lets say we have the following in the default.aspx file <asp:Literal runat=server Text=<%= TestMethod()
I have this code in my .aspx file <asp:UpdatePanel runat=server ID=UpdatePanel1 UpdateMode=Conditional> <ContentTemplate> <asp:PlaceHolder
(Warning - asp newbie) I have an aspx file with the tag <%@ Page
I have an .aspx file that outputs an image using the following methods: Server.MapPath(somefile.png)
I have created a test website that contains a single ASP.net index.aspx file that
I have an ASP.Net GridView control on an ASPX page hosted on a SharePoint
well i have a asp.net aspx page, which references a css file have the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.