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 6641053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:45:55+00:00 2026-05-25T23:45:55+00:00

In my application I download some xml data file from some information center, add

  • 0

In my application I download some xml data file from some information center, add to this xml file (in aspx.cs) the column with images and all together I pass to the GridView in aspx file.

The same I want to do with xap files – I need to add them to the GridView according to the data context, but unfortunately there is a problem – object doesn’t have object.Attributes like image.

Here is my code for adding images (gvCurrency is a GridView):

for (int i = 0; i < currency.Count; i++)
{
  Image image = new Image();
  image.Attributes.Add("src", "Images/Currency/" + xdoc.GetElementsByTagName("CURRENCYCODE")[i].InnerText + ".gif");
  image.Attributes.Add("height", "15px");
  image.Attributes.Add("width", "21px");
  gvCurrency.Rows[i].Cells[0].Controls.Add(image);
}

Another possibility, as I think, is in binding links to the corresponding xap files in the aspx file, that in this case should seems like this (if I am not wrong):

<asp:GridView ID="gvCurrency" runat="server"  AutoGenerateColumns="False" ...>
  <Columns>
    <asp:BoundField DataField="FLAG" />
    <asp:BoundField HeaderText="Currency Name" DataField="NAME" />
    ...
    <asp:TemplateField >
      <ItemTemplate>
        <div id="silverlightControlHost">
          <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="10px" height="10px">
          <param name="source" value="ClientBin/ArrowTriangle.xap"/>
          ...
        </div>
      </ItemTemplate>
    </asp:TemplateField >
  </Columns>
</asp:GridView>

So, my question is: how can I distribute xap files dynamically in runtime (in the first case) and how I can bind links to xap files (in the second case)?

Thanks.

The implementation of the code above is possible to see here: http://www.lzel.net/wf_Currency_ASP.aspx

  • 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-25T23:45:56+00:00Added an answer on May 25, 2026 at 11:45 pm

    You can dynamic download xap file from server and put it in cell of table(after render at client side) by javascript(jQuery is best).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want my web application users to download some data as an Excel file.
I'm making in house application that download data via xml files from external server.
In my application I download some data from website providing landscape informations like population,
This somewhat follows on from the question Saving application data to the ipad/iphone Really
I could really use some help with files (images) download/save application process. I need
My application lets users download their data as CSV files. These are supposed to
I want to download this open source application, and they are using Git. What
I have an application that allows the user to download a csv. This works
So in my C# application I am downloading an XML file as a string,
I want to ship some default data with my app. This data can be

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.