Click here to Skip to main content
Page 1 of 3,568
Page Size: 10 · 25 · 50


Tag filtered by:  C# [x]
Answer 13 May 2013   license: CPOL
In terms of MVC, the method name might be "Say", which is accepting the parameters username, words. If you are missing this mapping then you cannot receive the posted data from client side on server side.Just for better understanding, check this : Sample
Answer 13 May 2013   license: CPOL
Thank you this works perfectly!
C#
Question 13 May 2013   license: CPOL
In the client I write the code like this:static void Main(string[] args){ var url = "http://www.cnblogs.com/api/say"; var postData = new Dictionary { { "username", "test" }, { "words", "hello world" } }; var urlEncodedContent =...
Answer 13 May 2013   license: CPOL
The (Default) value is special. To retrieve it, specify either an empty string ("") or null:string path = (string)acroPath.GetValue(null);That should solve the problem you've asked about.A few other tips:1) You don't need to open each individual subkey in turn - you can specify...
C#
Answer 13 May 2013   license: CPOL
I tried using the path HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Adobe\Acrobat Readeran exception is thrown "Object reference not set to amn instance of an object. "
C#
Tip/Trick 13 May 2013   license: CPOL
We'll achieve a Form without CaptionText but with caption on the button on taskbar, and the possibility to add our own titlebar on the form.
C#
Article 13 May 2013   license: CPOL
How to build a simple Scheduler in C# for Desktop and Web Applications
Answer 13 May 2013   license: CPOL
If the application you're looking for is a 32-bit app on a 64-bit system, the registry path will be HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Adobe\...
C#
Answer 13 May 2013   license: CPOL
Normally, you DON'T remove threads from the pool. They sit there idle, waiting for work to do so you don't incur the rather large overhead of spinning a new thread up!If you've got questions about a particular library, you contact the author of that library. Just because you saw it in an...
C#
Question 13 May 2013   license: CPOL
Hi..i have this bug in crystal report "you can provide a single value for this parameter. enter the value you want to include"Note: i have this bug with non-English language
Question 13 May 2013   license: CPOL
Hello every body...please, if you know that how can send data from C#.Net to swf flash file, tell me.This is necessary for me...thank youbahram
C#
Answer 13 May 2013   license: CPOL
You may apply 7-Zip or use recovery zip in case some problemshttp://www.zip.recoverytoolbox.com will give all the required information for proper extracting
C#
Tip/Trick 13 May 2013   license: CPOL
In this article will show you how to work with ASP.Net and Paypal with Dynamic Ordering Values
Question 13 May 2013   license: CPOL
Hi Friendsclass VideoCaptureDevice, DesiredFrameSize property is not working for me, tell me where is mistake in (1)? same as (1) problem I also want to set custom DesiredFrameRate property. (1):videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice...
C#
Article 13 May 2013   license: CPOL
tick data downloader for automatic trading systems
Answer 13 May 2013   license: CPOL
Hi, Thanks for your help.I just want create a button Start/Stop with 2 differents images in background, one to Start and one to Stop. Actually, I have a ressource dictionnary with differents images. These images are SVG file conversion. I have a ressource dictionnary for styles. For...
Answer 13 May 2013   license: CPOL
->Use Dataset and Object datasourses in application->Dont use too much session variables->Use cache in webapplication->Use optimized code using OOP and n-Tier Architecture
C#
Answer 13 May 2013   license: CPOL
Wrong question. If you print, you never create this object; the library System.Drawing.Printing always does that when invoking the event. You cannot invoke it in principle. Every event can only be invoked in its declaring type. You cannot even write a derived class and invoke the event declared...
Question 13 May 2013   license: CPOL
My question is how do you create printEventArgs?The way I have been getting the printEventArgs was through the print_page event from the System.Drawing.Printing.PrintDocument class. or is there a way to trigger print_page event without actually...
Answer 13 May 2013   license: CPOL
Initialize value of submitButtonStatus in Page_Load() event and then place it inside !IsPostBack condition.Edit:- Try it as below.static bool submitButtonStatus;private void Page_Load(){ //Your code. Please do not initialize variable SubmitButtonStatus here. By default bool is...
Answer 13 May 2013   license: CPOL
Instead of changing color, you should disable the button. Use the property IsEnabled or Enabled — it depends on the exact button type you did not bother to specify. Different UI libraries have different classes under the simple name "Button". When UI is involved, you always need to tag UI...
C#
Question 13 May 2013   license: CPOL
I have been using the C# smart thread pool to do some work but found the current smart thread pool release DOES NOT anything about the removed "idle threads". This may or may not cause smart thread pool memory leaks.In the smartthreadpool.ProcessQueueItem() method there are several times the...
C#
Answer 13 May 2013   license: CPOL
Normally, all 2010 projects will be converted automatically to the later version; the user will be requested for a permission to do so. If some projects depend on some compiled assemblies, the result depends on their compatibility. Usually, backward compatibility is preserved. You need to try it...
C#
Question 13 May 2013   license: CPOL
There are a number of posts already on Code Project but I just can't get this program to read the path from the Registry where Adobe Acrobat is installed.Here's the code: private void Form1_Load(object sender, EventArgs e) { RegistryKey adobe =...
C#
Answer 13 May 2013   license: CPOL
As I understand, you want to automate a browser. Well, automating all browsers is complicated, but you can target some:Internet Explorer: http://harness.codeplex.com/[^]Chrome: http://markcz.wordpress.com/2012/02/18/automating-chrome-browser-from-csharp/[^]But you might consider using...
C#
Answer 13 May 2013   license: CPOL
Please follow this link: http://khaledauf.blogspot.in/2010/08/configure-excel-services-with.html[^] and configure Excel services to work with Sharepoint.
C#
Question 13 May 2013   license: CPOL
Hi,I have declared a bool variable and assigning some value to the bool on click of each buttonpublic partial class Exercise : System.Web.UI.Page{ //Variables public string strCourseType = string.Empty; int count=0; bool submitButtonStatus=false; protected...
Answer 13 May 2013   license: CPOL
try this ASP.NET Web Site Performance Improvement[^]
C#
Question 13 May 2013   license: CPOL
hello friends.i have vs 2010 Ultimate and 2012 Express.i have a project written with vs 2010.** i have used telerik 2010 in that project.i want to open it in vs 2012 but it says that vs 2012 do not support telerik 2010 version "...9787771"..."these are my questions:how can i open...
C#
Answer 13 May 2013   license: CPOL
// input string:.. String testText = @"This is my test text string"; // number of lines to take away from the result int toRemove = 2; // turn the input string into an array (split by newlines) List testLines = new List(testText.Split(new...
C#
Answer 13 May 2013   license: CPOL
I don't know what you would like to do exactly . If you like to change the background image on an event like mouse over you can work with datatrigger.This example should work
Question 13 May 2013   license: CPOL
Hello,Im trying to write some chars into a textbox which in my browser( a website on the internet).How can I write values into this textbox,or how can I set the output would be where the textbox is focused?Thanks
C#
Answer 13 May 2013   license: CPOL
If you are looking to improve performance of your Asp.Net application then have a look at below link. It has several CodeProject discussions around this topic.http://www.codeproject.com/search.aspx?q=Improve+Web+Site+Performance&doctypeid=5
C#
Question 13 May 2013   license: CPOL
Please tell me how we can improve the performance of the webpage.Tell me the points which we need to follow in the page or website
C#
Answer 13 May 2013   license: CPOL
Their are several Cloud Service Providers available to host your .Net code. It's depends what Cloud Services you are planning to use in your .Net application. Below are some of the Cloud Service Providers. 1) Microsoft Azure2) Amazon Cloud3) AppHarbor4) OpSource5) RackSpace
Question 13 May 2013   license: CPOL
Hi Folks,I developed a windows based application using C# and SQL Server 2008. Can i implement the application into a cloud server ? i have no more idea about cloud computing ! how to host that and which technologies support this.Please share your thoughtsThanks,Adersh Ram
Article 13 May 2013   license: CPOL
Description how to create an ASP.Net website which is providing a serverfarm-compatible Login functionality - Additional description how the code can be secured
Answer 13 May 2013   license: CPOL
A button is never "busy" so your question is confusing people.You have a problem. The UI thread will be tied up by your "lot of code" that's running, so changing the color of the button won't do anything until AFTER your long running code because you've tied up the UI thread and it can't...
C#
Answer 13 May 2013   license: CPOL
// input string:.. String testText = @"This is my test text string"; // line indexes to take away from the result int[] toRemove = {2, 4}; // turn the input string into an array (split by newlines) List testLines = new List(testText.Split(new...
C#
Answer 13 May 2013   license: CPOL
The only way to do it would be to leep a licensing server on your end to maintain and verify license counts.When a user installs the software, they would have to supply a registration key of some kind. This key would then be used to validate that a license for their account is available on...
Article 13 May 2013   license: CPOL
View and rate box art for your favorite Xbox games!
Technical Blog 13 May 2013   license: CPOL
Dependency Injection (DI) vs. Inversion of Control (IOC).
C#
Technical Blog 13 May 2013   license: CPOL
The event db (it is my naming) holds all events and actions that can be invoked to launch an app or fire some events.
Answer 13 May 2013   license: CPOL
Yes. But read this: http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/586c2599-347e-489e-863c-79ae6ce7b9c1[^] - you can get problems if you install them in the wrong order. (I did, with VS2008 years ago and it took me a day to sort the mess out)
C#
Question 13 May 2013   license: CPOL
hello.i have a problem.i have VS 2012 Express.i have a little storage space.So i am not able to install full version of visual Studio.--can i connect to sql server 2008 r2 with visual studio 2012 Express .if yes ok.if no Is there a way doing that?
C#
Answer 13 May 2013   license: CPOL
You don't have any code in there to skip any lines, so it's loading all the lines into the ListBox.You have to enumerate the collection of lines, one-by-one, and only add the lines to the ListBox that you want, depending on some condition you didn't specify.The other benefit of loading...
C#
Question 13 May 2013   license: CPOL
HiSo i know how to change the colour of a button, but is it possible to change the colour of the button when the button is busy, as it normally is a shade of light blueI have always wondered about this :) and would love some help please
C#
Answer 13 May 2013   license: CPOL
just add .toarray on the end and it works
C#
Answer 13 May 2013   license: CPOL
It is User ID, with a space.
C#
Question 13 May 2013   license: CPOL
Hi friends The following is my code for connection stringstring sProvider = "Data Source=.;Initial Catalog=" + sDBName + ";UserID=sa;Password=" + sPassword; CN.ConnectionString=sProvider;CN.Open();The error is Keyword not supported: 'userid'
C#

Page 1 of 3,568
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid