|
Siva Koyi wrote: whether in Webserver or Browser(embeded with CLR)
It happens in the web server. Read this[^] to get an idea about what is happening. Also if you are developing web services which will be deployed to a public server, make sure you secure it. Easy way is to disable anonymous access. Web service consumers has to provide the credentials when they use it.
|
|
|
|
|
You can precompile trough desktop project too
I give you example how you can compile trough webservice and desktop application
Webserive ::
on the service.cs
[WebMethod]
public int sum (int a , int b)
{
return a + b;
}
and now run the webservice on local host there you will see input textbox1 and input textbox 2 then invoke button you will see the result on xml page
Compile trough desktop applicacion :
public partial class Form1 : Form
{
applicationname.Service ws = new localhost.applicacionname.Service(); // this conect you to webservice but dont forget to add web reference (which display you when you will run the webservice)
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e) // make button on your form and put three txtbox //
{
int a = int.Parse(textBox2.Text);
int b = int.Parse(textBox3.Text);
int result= ws.sum(a, b);
textBox4.Text = result.ToString();
}
Hope it will help you , good luck
|
|
|
|
|
It will be compiled and executed on runtime.
Either you love IT or leave IT...
|
|
|
|
|
I got CPU usage of each process using API but i can't do it with threads.
How can i get cpu usage of each thread using API and c#?
|
|
|
|
|
This is example of Thread.
CODE:
static void Main(string[] args)
{
Thread t1 = new Thread(new ThreadStart(Thread1));
Thread t2 = new Thread(new ThreadStart(Thread2));
t1.Priority = ThreadPriority.BelowNormal ;
t2.Priority = ThreadPriority.Lowest ;
t1.Start();
t2.Start();
}
public static void Thread1()
{
for (int i = 1; i < 1000; i++)
{
dosth();
Console.Write("1");
}
}
public static void Thread2()
{
for (int i = 0; i < 1000; i++)
{
dosth();
Console.Write("2");
}
}
public static void dosth()
{
for (int j = 0; j < 10000000; j++)
{
int a=15;
a = a*a*a*a;
}
}
|
|
|
|
|
|
Has anyone worked with the System.ComponentModel.ICollectionView in winforms NOT WPF. ?
With great code, comes great complexity, so keep it simple stupid...
|
|
|
|
|
|
Thanks 4 your reply. but i specific said NO WPF.
With great code, comes great complexity, so keep it simple stupid...
|
|
|
|
|
What for you want to know that?
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
hmm well for startes, how its used, and if I can implement it, so on, and so forth...
With great code, comes great complexity, so keep it simple stupid...
|
|
|
|
|
I got VS2005 C# source code which was in Source safe (PVCS) previously and i want to unbind it with PVCS. I have TFS on my machine which will be further be used for this purpose.
How can i do this by manually editing the files which keeps information about binding?
I tried deleting GlobalSection(SourceCodeControl) from .sln file but if i save the changes of the file then i am able to open it further in VS IDE.
What should i do OR what else i need to do to complete the process?
Thaks in Advance.
Gajesh
|
|
|
|
|
Open the project, under File | Source Control there are a number of options that may be useful.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
In File->Source Control->Change Source Control, uncheck the connected checkbox.
|
|
|
|
|
This option was not available in file menu. I added "Change Source Control" through rearrange commands but that is disabled (grayed). What should i do?
FYI: i have TFS installed on machine not PVCS.
|
|
|
|
|
Oh,You have change this right?
You'll inout commnad order line:
1. cd C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
2.tf undo /workspace:WorkSpaceSample;YourName:UserNomber $/Path/FileName
FileName:lock FileName.
you'll try it,Good luck.
|
|
|
|
|
|
HELLO !!!!
You're an idiot. Hi is not even remotely a sensible subject. And if you type your question in to google, you'll find tons of answers.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Every time I read a response from you I think of Dr. House ....
|
|
|
|
|
use numericupdowm control.
When you post a question next time, kindly put a title in Subject column.
"hi" is not a subject!
*12Code
|
|
|
|
|
use masked textbox control
*12Code
|
|
|
|
|
Hi, you can visit www.codeincsharp.blogspot.com
Hope this one can help.
Thanks
Hi, Please select Good Question if my answer are fit to your Question.
|
|
|
|
|
Hi guys,
There're many user controls in my current project,and VS always initializes and loads these controls into toolbox,sometime it costs me 20 minutes to finish this,and in this 20 minutes VS is no response and I can do nothing.
So I'm curious to know if there's a way to stop VS to do this.
Anything you can help it would be appreciated!
|
|
|
|
|
Hi,
I haven't tried this, but there is a property under menu Tools/Options/WindowsFormsDesigner/AutoToolboxPopulate; you may have to check "Show all settings" first.
BTW: if your UserControls take that long, maybe you should limit what code they execute inside the Designer by qualifying slow code with an if (!DesignMode) ... . Example: there probably is no need to perform database accesses when loading a Form inside the Designer.
|
|
|
|
|
Thank you for your answer.Yes,it does work!!
|
|
|
|