Click here to Skip to main content
15,902,938 members
Home / Discussions / C#
   

C#

 
AnswerRe: regex problem Pin
Ravi Sant14-Apr-11 1:45
Ravi Sant14-Apr-11 1:45 
QuestionConverting Image file to binary file Pin
Member 451421814-Jan-10 15:08
Member 451421814-Jan-10 15:08 
AnswerRe: Converting Image file to binary file Pin
loyal ginger14-Jan-10 15:33
loyal ginger14-Jan-10 15:33 
GeneralRe: Converting Image file to binary file Pin
Luc Pattyn14-Jan-10 16:34
sitebuilderLuc Pattyn14-Jan-10 16:34 
AnswerRe: Converting Image file to binary file Pin
Giorgi Dalakishvili14-Jan-10 19:22
mentorGiorgi Dalakishvili14-Jan-10 19:22 
QuestionRequest: Help: Amazon Webservice with c#.net seemed to change things in recent update Pin
tonyonlinux14-Jan-10 13:15
tonyonlinux14-Jan-10 13:15 
AnswerRe: Request: Help: Amazon Webservice with c#.net seemed to change things in recent update Pin
Abhinav S14-Jan-10 16:01
Abhinav S14-Jan-10 16:01 
GeneralRe: Request: Help: Amazon Webservice with c#.net seemed to change things in recent update Pin
tonyonlinux14-Jan-10 18:04
tonyonlinux14-Jan-10 18:04 
Thanks for that link..

Here is something I came up with but for some reason It keeps throwing an exception.
The assembly with display name 'book list project.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. 
The cause of the failure was: System.IO.FileNotFoundException:
Could not load file or assembly 'book list project.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The system cannot find the file specified.The assembly with display name 'book list project.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. 
The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'book list project.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.


here is the code I'm calling:

private void btn_GetPrice_Click(object sender, EventArgs e)
       {
           /* Have a look at http://www.amazon.com/gp/aws/sdk/ for the list of different types of searchs */

           AWSECommerceService aws = new AWSECommerceService();
           ItemSearchRequest request = new ItemSearchRequest();

           request.SearchIndex = "Books";
           request.Power = "title:" + titleTextBox.Text;
           request.ResponseGroup = new string[] { "Small" }; // allows a return of data like product id, price and so on
           request.Sort = "salesrank"; //sorts based on the ranking system

           ItemSearchRequest[] requests = new ItemSearchRequest[] { request };

           ItemSearch itemSearch = new ItemSearch();
           itemSearch.AssociateTag = "XXXXXX";
           itemSearch.SubscriptionId = "XXXX";
           itemSearch.Request = requests;

           try
           {
               ItemSearchResponse response = aws.ItemSearch(itemSearch);
               Items info = response.Items[0];
               Item[] items = info.Item;

               for (int i = 0; i < items.Length; i++)
               {
                   Item item = items[i];
                   priceTextBox.Text = item.ItemAttributes.ListPrice.ToString();
               }
           }
           catch (Exception ex)
           {
               MessageBox.Show(ex.ToString());

           }


       }

Questionstring conversion to double Pin
Aljaz11114-Jan-10 12:01
Aljaz11114-Jan-10 12:01 
AnswerRe: string conversion to double Pin
Luc Pattyn14-Jan-10 12:57
sitebuilderLuc Pattyn14-Jan-10 12:57 
GeneralRe: string conversion to double Pin
Aljaz11114-Jan-10 13:02
Aljaz11114-Jan-10 13:02 
GeneralRe: string conversion to double Pin
DaveyM6914-Jan-10 13:12
professionalDaveyM6914-Jan-10 13:12 
GeneralRe: string conversion to double Pin
Eddy Vluggen14-Jan-10 13:13
professionalEddy Vluggen14-Jan-10 13:13 
GeneralRe: string conversion to double Pin
Aljaz11114-Jan-10 13:22
Aljaz11114-Jan-10 13:22 
GeneralRe: string conversion to double Pin
DaveyM6914-Jan-10 13:30
professionalDaveyM6914-Jan-10 13:30 
GeneralRe: string conversion to double Pin
Eddy Vluggen14-Jan-10 13:31
professionalEddy Vluggen14-Jan-10 13:31 
GeneralRe: string conversion to double Pin
Aljaz11114-Jan-10 13:41
Aljaz11114-Jan-10 13:41 
GeneralRe: string conversion to double Pin
Eddy Vluggen14-Jan-10 21:16
professionalEddy Vluggen14-Jan-10 21:16 
AnswerRe: string conversion to double Pin
DaveyM6914-Jan-10 13:21
professionalDaveyM6914-Jan-10 13:21 
QuestionTCPIP server single connection Pin
ikurtz14-Jan-10 11:48
ikurtz14-Jan-10 11:48 
AnswerRe: TCPIP server single connection Pin
Jimmanuel14-Jan-10 13:01
Jimmanuel14-Jan-10 13:01 
GeneralRe: TCPIP server single connection Pin
ikurtz14-Jan-10 13:40
ikurtz14-Jan-10 13:40 
GeneralRe: TCPIP server single connection Pin
Luc Pattyn14-Jan-10 13:59
sitebuilderLuc Pattyn14-Jan-10 13:59 
QuestionMessage Removed Pin
14-Jan-10 10:13
KSR8114-Jan-10 10:13 
AnswerRe: Need help for these questions Pin
EliottA14-Jan-10 10:37
EliottA14-Jan-10 10:37 

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.