Search results

  1. A

    Question Input string was not in the correct format

    I am writing a program to input and output a simple array. static void Main(string[] args) { int[] arr = new int[10]; Console.WriteLine("Enter nmber of elements"); int n = int.Parse(Console.ReadLine()); Console.WriteLine("Enter the...
  2. A

    Resolved Sending Email from Contact Us Page of a Website

    Hello, I want to learn to send emails in C#. I want to build a contact us form where the user can just simply type his email address and write his message. Upon hitting the send button the message should get delivered to my email address(gmail account). I have searched on internet regarding...
  3. A

    Resolved Passing a list to Oracle Parameter

    I am currently iterating my list items one by one and sending them to Oracle Parameter, but instead of sending one by one, how can I send the entire list in one go ? Can I achieve same results as I am getting from below code? foreach (var country in countryList) {...
  4. A

    Resolved Foreach in not iterating through values

    I am developing an application where I have to perform some update operation on each machine in the database. Every machine has a unique Id. Then there is also an area code under which several machines come. Area codes are also unique. I am reading these ids from the database and storing them in...
  5. A

    Resolved How to share a .exe file to the end user ?

    I know that you have to right click on the solution and go to the bin folder from where you can copy the .exe, dlls and the config file and share it to end users. The issue is that I am storing my database connection code in the appconfig file which has database username and password also. So...
  6. A

    Resolved How to send request body using HTTPWebrequest

    Hello Finally i found a post api which sends and receives data in XML format. My API has a request body - <Person> <Id>12345</Id> <Customer>John Smith</Customer> <Quantity>1</Quantity> <Price>10.00</Price> </Person> I am confused as how I should I hit the api with this body from the code -...
  7. A

    Question Internal Server Error in API Call from Fiddler

    Hello, I found a list of public Soap APIs that can be used on this link https://documenter.getpostman.com/view/8854915/Szf26WHn?version=latest But most of the APIs are giving me internal server error when calling from fiddler. For example, I used this API which returns the capital city of...
  8. A

    Resolved How to assign value to a variable based on condition.

    There are three types of price in my application price1,price2 and price3. If price1 has priority over price2 and price 2 has priority over price3. If price 1 is not available then variable finalprice is assigned price 2 if price 2 is not available then the variable finalprice is assigned...
  9. A

    Question Sample test APIs to use

    Hi! I want to learn to hit an API and get the response from it to use it further in C#. I am thinking to start with Soap APIs. Is there any source from where I can get a test soap AI to use . I have learned to consume GET Soap API ( I found a sample api over the internet ). Perhaps if I could...
  10. A

    Resolved Procedure or function sp_updateItems has too many arguments specified.

    I want to update the price of items in the database. I am extracting a list of items from another list( of class type having other information also). After that I am sending it(item number) one by one as a stored procedure parameter to get the price updated. But I am getting a Procedure or...
  11. A

    Resolved Cannot implicitly convert type error

    I am trying to fetch certain database values and store them in a datatable. After that I am applying linq to group by all the data with account number. I am storing the final result in a list which is of the following class type - class ListItems { public string accountNumbers...
  12. A

    Resolved Field is never assigned to, and will always have its default value as null

    I want to build a console application where I am storing a list of cars linked to a person's id . My class is - class Person { public int PersonID { get; set; } public string cars { get; set; } public List<string> carlist {...
Top Bottom