8,298 Topics
![]() | |
I'm making a calculator that performs operations sequentially (from left to right, not precedence), using ASP.NET/C#, but I'm having trouble trying to get the loops going through the input box string in my code behind. Obviously to me the logic seems to make sense, but for some reason, I get … | |
Hi there guys. Literally I have been asked this question; "The Fibonacci sequence is 0, 1, 1, 2, 3, 5, 8, 13, … ; the first two terms are 0 and 1, and each term thereafter is the sum of the two preceding terms – i.e., Fib[n] = Fib[n – … | |
I am using umbraco and have set up an event handler to replicate content nodes created in the back office for a multilingual site. I am now trying to attach this to a custom context menu item via a web service that gets the return value of a js confirm. … ![]() | |
write a program which display a restaurant menu, then ask the user to select a choice from the menu. Using the switch statement select the user choice. printout the choice the user slected and the bill amount.Include in the bill a 16.5% tip and 8.25% sales tax. | |
Hey everyone need help on a project im doing in c++, so far I have made a command interpreter, that breaks user input into array of Strings sepperated by spaces and have a run function. Now I am trying to do the list() and list(directory) but I'm not quite sure … | |
Hello, i just started to study c++ and i have a problem about 1 porgram in the homework ! it ask me to write a c++ program that first asks the user if he want to enter a number if yes he enters the number and then ask him again … | |
Please can someone help me and send me in the right direction. I am making a program that reads a text file and then out puts the data into a datagrid, the text file looks like this: [HRData] 84 73 0 -124 0 50 84 73 0 -124 0 50 … | |
I have been trying to call a C++ function in a DLL, from a C# WPF application I'm working on. I've done it before and it's worked but I can't remember how I did it and can't seem to find an example that works for me. I'm doing something wrong … | |
Hi! i'v got problem in visual c#... i want that when i enter a position in my form in a text field then the button that is in the same position get activated... how can i do that? i'm beginner in Visual C# so is there any method for doing … | |
How to export excel in c#.net on button click | |
I am done with the payment by using Paypal sandbox.. but i am wondering whether can i change the statement of return (default: Return to gahhon@hotmail.com - according to my email address)? string paypalURL = "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=" + email + "&item_name=Olympia Open College Tuition Fees + " + programmeName + "+" … ![]() | |
I'm new to C++ and I'm having so much trouble with this problem. I honestly don't know what I'm doing wrong, I've tried everything but I still can't seem to make the program work. This is the problem: Write a program that reads in ten whole numbers and that outputsthe … | |
Evniorment : Windows 7.0 , C++ , Multithreading I have created a new worker thread to receive data on socket & add it into static multimap. **code snap :** //remember mymultimap is static data type static std::multimap<string,string> mymultimap; EnterCriticalSection(&m_criticalsection); mymultimap.insert ( "aaa", "bbb") ); LeaveCriticalSection(&m_criticalsection); At same time my main … | |
I want to send string and save in different computer's database using c# using Asynchronous Any body Plz Help me finding a Solution | |
string location = Environment.CurrentDirectory; string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source =" + location + "\\harita.accdb"; // get records from the Shippers table string commandString = "Select x from map"; //create the data set command object and the DataSet OleDbDataAdapter DataAdapter = new OleDbDataAdapter(commandString, connectionString); DataSet ds = new DataSet(); // fill … | |
Hi, I have a jaso object that i am getting from a API access. how do i deserialize the jason object in C# so that I can get the papameter values. JavaScriptSerializer js = new JavaScriptSerializer(); bookshare bs = js.Deserialize<bookshare>(response); string a = bs.version; when i do this for string … | |
The following code block is producing and endless loop and I can't figure out why. Note that charv is just he second command line argument in the main function. int testNumber = 1; while(argv != '\0') { std::cout << testNumber; argv++; testNumber++; } I wrote this piece of code just … | |
outlook temperature Humidity Windy PlayTennis sunny hot high false N sunny hot high true N overcast hot high false P rain mild high false P rain cool normal false P I found out unique elements from file and their occurence ( ignored the elements whose occurence was less than 1(taking … | |
so i was wondering if my program could be converted to a string version, if so gimme a start please. I also would like to find out how to set my speed variable if when entered it is less than zero for it to display an error statement, how would … | |
Hi friends i have used autocompletextender in my C# asp.net form . but it's not working fine. i have used following code. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <asp:ScriptManager ID="script" runat="server" EnablePageMethods="true"> </asp:ScriptManager> <asp:TextBox ID="txtServiceCityLocal" runat="server" Style="width: 292px; margin-left: 150px; border: solid 1px #747474"> </asp:TextBox> <asp:AutoCompleteExtender ID="AutoCompleteExtender2" runat="server" TargetControlID="txtServiceCityLocal" ServiceMethod="GetCountries" … | |
Good day people! I have a problem with my C# window application. I can't insert new record to database. I have sought for many tutorial in ADO.net and Entity Framework. I have been tackling it in Entity Framework because that is my preference. My piece of Entity Framework code would … | |
hi i have create database with tables using sql server 2008, having table named 'Users' i have create this stored procedure : USE [Licenses_DB] GO /****** Object: StoredProcedure [dbo].[InsertUser] Script Date: 02/17/2013 23:25:06 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[InsertUser] @ID int , @userName NVARCHAR(50), … | |
Has anyone worked with C# and OAuth 2.0? Documentation/examples is VERY poor on how to do a simply login. Thank you | |
Hello guyz, I am trying call oauth/request_token in order to oauth_token and oauth_token_secret. First here's the code string url = "https://api.twitter.com/oauth/request_token"; SortedDictionary<string,string> sd = new SortedDictionary<string,string>(); sd.Add("oauth_callback",oauth_callback); sd.Add("oauth_consumer_key",oauth_consumer_key); sd.Add("oauth_nonce",oauth_nonce); sd.Add("oauth_signature_method",oauth_signature_method); sd.Add("oauth_timestamp", oauth_timestamp); sd.Add("oauth_version",oauth_version); string base_string = String.Empty; base_string += "POST" + "&"; base_string += Uri.EscapeDataString("https://api.twitter.com/oauth/request_token")+"&"; foreach (KeyValuePair<string,string> entry in sd) … | |
How to generate auto id like PA-01-07-2012-0001. Where 01 is the Date of a month,07 is the Month, 2012 is the year, and 0001 is auto generate id and it will be increment. after that it will check The Generated id in database.And create a new id | |
Hi what i want to do is to code a checkbox list. herewith i have attached an imaage. as in the image, if i check business all the checkboxes below it should get checked and if i uncheck all the check box should get unchecked, how do i code this … | |
int sel = int.Parse(0+dataGridView2.CurrentRow.Cells["invoice_ID"].Value.ToString()); string sql = "DELETE FROM invoices WHERE invoice_id="+ sel +""; DBConnection myCon = new DBConnection(); myCon.EditValues(sql); //mycon.EditeValues(sql) has all the sqldata reader,executenonQuery cmd the error's arrow points out to the first line which is "int sel............". | |
Hi, I have a web-page, height and width of page exceed the screen size of my display device. I want to take screen shot or print it in pdf of that web-page with that hidden portion too using C#.net. I don't want to call print dialog box. My requirement is … | |
Hello, my current assignment states this: "Modify the console application you created in HW1 in the following manner. Instead of using five Console.ReadLine() statements to read the user’s input into the five variables, use one Console.ReadLine() statement that’s inside a loop that executes five times. The rest of your code … | |
can i make an application to receive mails in C# ? | |
What are all the differences between c# and vb ? | |
Can i develop spam filter in C# ? if is it so , where do i start ? | |
I m having a problem when sending my c# projects to a friend via e-mail. Before sending i use WINRAR to compress it however when the other side gets the mail and when it tries to open it, it get s an error ouptut saying: "application not found". When going … | |
Hello every one i want know i can read one text file in c# i f we can do it please explean for me how can i do it thanks alot | |
Let's say I have 3 text boxes called item_name,item_price,item_type. And there is a listbox that has the item_name and another list box that has item_price, another one with the item_type. Let;s say we want to click on the item_name. After clicking on the item_name list box's first item. how to … | |
Hi Guys.. Hoping you can help here.. I'm dabbling with Linq as I'm wanting to pass a Node Value from the XML file into the Connection String. Currently my Code seems to be working and holding the Value in the System.(Code Below:)(Screenshot attached also) XDocument testXML = XDocument.Load("C:\\twDB.xml"); var DataBases … | |
Hi all, I have this if condition which never seems to be true, but should be! It's the part in the code where I pull the String^ from textboxes (the regUsername textbox) and compare the inputted username with the first word from every text file line. So every text file … | |
Hey, I'm working on a simple command line program to download some files. I already made a Win Forms version, but wanted to do a command line version. The Win Forms app works exactly as it should, but I'm having some trouble with the command line app. Heres my code: … | |
Hello all, i am new here and i find this forum really interesting. I have been facing an issue for some time now and hope someone could help me out here. I have a project which i have been trying to add a printing module to be able to show … | |
Hello i'm getting theses to error with my sql code can anyone help me ot at all i'm really lost and can't find much to help where i'm going wrong.Code is below Error 3 The best overloaded method match for 'System.Data.SqlClient.SqlCommandBuilder.SqlCommandBuilder(System.Data.SqlClient.SqlDataAdapter)' has some invalid arguments Error 4 Argument 1: cannot … | |
How to handle null values in C#. When I am entering characters in a char array i want to leave some values blank or empty (null). But when i do that my program terminates giving me an error. The error is shown in the pic below. What should i do … | |
I am new to c# and I am working with a xml file. I have appended to an existing sample file, but the formatting is off and some of the xml elements are missing. What I am working toward is appending to it 10 times just changing the number for … | |
Hello I am having problems completing thi code in C# can someone please tell what I am doing wrong.I ge Error Error 1 Program 'C:\Users\stacey ann loretta\documents\visual studio 2010\Projects\EmployeeEceptionDemo\EmployeeEceptionDemo\obj\x86\Release\EmployeeEceptionDemo.exe' does not contain a static 'Main' method suitable for an entry point EmployeeEceptionDemo using System; using System.Collections.Generic; using System.Linq; using System.Text; … | |
hello every one i'm a new member in this web site i'm really happy coz i found the best web to leran the computer language it is will be better if some one explean for me the array in c# and syntax of using array , i hope some one … | |
Hi guys i was trying to integrate a very basic Client/Server chat software with Caesar Cipher. i just wanted to encrypt the communication using Caesar cipher. the Client/server chat software is using TCP sockets.i tried and integrated the cipher on client side but it encrypted all texts and its not … | |
Hi, I want to keep track of the number of visitors to my site. I tried the following code in the Global.asax class, [code] public static int count = 0; void Application_Start(object sender, EventArgs e) { Application["myCount"] = count; } void Session_Start(object sender, EventArgs e) { count = Convert.ToInt32(Application["myCount"]); Application["myCount"] … | |
**I have this timeissorted.c file, and right now it's running at around about 8397599 usec. I'm looking for help toward improving the performance of this code to make it run faster.** #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <stdlib.h> static struct timeval start_ts, end_ts, diff_ts; void startClock() { gettimeofday(&start_ts, 0); … | |
Im trying to get my program to do z=x*y and z=z+5.0 but not sure what I am doing wrong. #include <iostream> using namespace std; // Declaration: Tells the compiler how a function is called int multiply(int x, int y); int main() { // You can compile a call to the … | |
Would this be considered as a Subrountine problem? My program runs but I feel like it is missing something else. #include <iostream> using namespace std; void getData(int, int, int); int main() { int x,y,z; cout << "Please enter first number: "; cin >> x; cout << "Please enter second number: … | |
declare and assign value to variable at runtime in C# variable names are stored in database(sql server). how can i able to declare varible with these name during runtime. after that assign value... thanks. amit |
The End.