I am writing a program to input and output a simple array.
static void Main(string args)
int arr = new int;
Console.WriteLine("Enter nmber of elements");
int n = int.Parse(Console.ReadLine());
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...
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)
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...
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...
Hello Finally i found a post api which sends and receives data in XML format.
My API has a request body -
I am confused as how I should I hit the api with this body from the code -...
I found a list of public Soap APIs that can be used on this link
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...
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...
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...
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...
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 -
public string accountNumbers...
I want to build a console application where I am storing a list of cars linked to a person's id . My class is -
public int PersonID
public string cars
public List<string> carlist