|
Hi Subrata,
Actually in my case i may not know the URLs in advance.
If the host of requested url is same as the host of Previous Url
I should be able to use the same connection.
I tried the same without closing the underlying connection.
While reading for the next request,i am getting an exception as
Connection closed. Is it possible set the connection timeout.
Sakthi.
|
|
|
|
|
But please help
<code>string fullString = @"value1;value2;value3";
string []arString =
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi,
string[] arString=fullString.Split(';');
This will split your string.
Sakthi
|
|
|
|
|
I knew that was a terribly stupid question to ask
Thanks Sakthi
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
string[] arString = fullString.Split(';');
|
|
|
|
|
Thank you
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi
Please let me know why we are choosing C#.Net instead of VB.Net. What is the basic difference between these two. And Why C#.Net is more preferable than VB.Net. Thanks alot
Thanks and Regards
Venkat
|
|
|
|
|
|
venkatasivaramaprasad wrote: Please let me know why we are choosing C#.Net instead of VB.Net.
Well, not all of us are. Those who are, probably are because we came from C++. The only reason I know of to use C# is unsafe blocks. The reasons to avoid VB.NET include all sorts of nastiness, like hard to read code, 'magic' conversions that can really bite you when you don't expect them, and the VisualBasic namespace, which is full of rubbish imported from VB6.
But, if you know how to navigate the minefield that is VB.NET, the end code is basically going to run the same and do the same things.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
because vb is so ugly that when I look at some vb code I don't know whether to say "bue.." or "yuk!!"..
life is study!!!
|
|
|
|
|
Hi,
I am developing a chatting application with a Web Service as the central monitoring Server.
The Web Service methods will be used by the clients (Windows and Web) to Add User, Send and Recieve messages.
Can anyone help me in realizing this functionality as I have less knowledge on Web Service?
A sample code with this regard will also be helpful
Thanks in advance,
Murali
|
|
|
|
|
Ur Server code will have all the functionality of Add User, Send and Recieve messages. Then add a webservice to this server project. In the webservice add distinct WebMethods for each of ur task. Create a instance of the server inside this method and make an appropiate call.
ex. server.cs-
class server
{
AddUser(){}
}
in webservice.asmx
class service
{
[webmethod]
AddUserService()
{
server sr = new server();
sr.AddUser();
}
}
This example is just to help u to start. Once u start u can know how to invoke methods.
|
|
|
|
|
Thanks for the info.
Do you have a sample application on this regard?
Thanks in advance,
Murali
|
|
|
|
|
Hello everyone,
Here is my situation and I need your help guys. I have a loop to filter some data out of the DatGridView. I would like to assiagn each data to a specific TextBox (Five TextBox in total). The text boxs are names :
textBox1
textBox2
textBox3
textBox4
textBox5
Can someone be kind enough to tell me how I can assiagn each data to a textbox according to its index? This is what I mean:
for (int i = 1; i <= 5; i++)<br />
{<br />
textBox[i].Text = foundRows[i].ToString();<br />
}
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
do it in other ways.
TextBox tb[] = {textbox1,textbox2,...,textbox5};
for(i=0;i<5;i++)
{
tb[i].Text = foundRows[i].ToString();
}
|
|
|
|
|
Lets say these 5 buttons are placed on Form1. Than you can write this:
for(int i=1,i<6 i++)
{
Form1.Controls["textbox"+i.ToString()].Text=something;
}
|
|
|
|
|
Khoramdin wrote: textBox1
textBox2
textBox3
textBox4
textBox5
If you give them real names, they may make more sense. Then add a tag to each which is the same as the column you want to assign there, assuming they are columns from a single record. Then loop through the controls collection looking for the one with that tag.
Or you can create an array of textboxes.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I need to implement daemon functionality(which is available in java) in c# without using windows service and sql job. Please let me know if anyone has any idea about it.
|
|
|
|
|
Prajin wrote: without using windows service
Why, what is wrong with a Windows Service?
|
|
|
|
|
Hi,
I need to implement daemon functionality(which is available in java) in c#. Please let me know if anyone has any idea about it.
|
|
|
|
|
In my application i am using a user control "aguage3" my problem is
private void aGauge3_ValueInRangeChanged(object sender, AGaugeApp.AGauge.ValueInRangeChangedEventArgs e)
{
GuageIndex = e.valueInRange;
}
but i need this GuageIndex value(which is coming from above event) in another event called
private void aGauge3_DoubleClick(object sender, EventArgs e)
{
}
The first event is in timer control so it varies automatically
how can i get this GuageIndex value in double click event
Please help me in this
Thanks in advance
PraveenKumar Palla
|
|
|
|
|
It looks like "GuageIndex" is a member variable of the class, so you should have no problem accessing it in the "DoubleClick" event handler. Otherwise, if there is a way to access this value in the control itself, you can do that in the "Double"Click" handler. Just guessing:
private void aGauge3_DoubleClick(object sender, EventArgs e)
{
int guageIndex = aGuage3.ValueInRange;
}
This assumes the existance of a ValueInRange property in the Guage control class.
|
|
|
|
|
yes "GuageIndex" is a member variable of the class, but the event aguage3_valueInRangeChanged is in timer which raises when the needle of the guage changes, so the "GuageIndex" value varies automatically but i need this exact value when i double click on the guage(user control)
NO "ValueInRange" property for the aguage3 user control
Thaks
PraveenKumar Palla
|
|
|
|
|
praveenkumar palla wrote: but i need this exact value when i double click on the guage(user control)
What do you mean ? How is the value ever not 'exact' ? How are you hoping for a delegate to help here ? Either way, you get the value when the event is fired, it's the only value you're going to get.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how do i change any date and time format to current computer datetime format.
|
|
|
|