|
Hi
How can I access a PHP web service in C#.NET 2003
Thanks
Jyotsna
|
|
|
|
|
I got the answer
Thanks anyways
~jyo
|
|
|
|
|
hi i need the solution for that..i want to access php web service in c#.net
|
|
|
|
|
if (listBox1.SelectedItem.Equals(null))
when listBox1.SelectedItem equal null <<<<
i have error at this statment
if (listBox1.SelectedItem.Equals(null))
what i can do to see if object equal null ??
Palestine
|
|
|
|
|
Your statement can only be FALSE or EXCEPTION, because you cannot call methods on null. If listBox1.SelectedItem is null, the statement is equal to if (null.Equals(null)) .
Try this:
if (listBox1.SelectedItem == null)
|
|
|
|
|
if (listBox1.SelectedItem.Text == "")
{
//Do some code
}
|
|
|
|
|
...is going to crash when listBox1.SelectedItem is null.
Better version:
if (listBox1.SelectedItem == null)<br />
{<br />
}
|
|
|
|
|
Hi friends,
I am converting the content of Gridview to Excel. Its working. But i dont know how to format the excel sheet for design(Font Color, Leaving empty row after heading, adjusting the width of the column equal to the content of the gridview) and etc. Help Me Please.
Thanks & Regards,
Prya
|
|
|
|
|
|
I want to upload the file in the designated folder on server. Want to save the path of file in database. Which I can use to retrive the file in future.
Saurabh
|
|
|
|
|
|
Need help for uploading the file to folder, saving the file in such a manner in folder so user multiple user can save and retrieve the file with same name. Address of files needed to be saved in database.
Can any one help me to solve this problem in ASP.Net + SQL + C#.
Saurabh
|
|
|
|
|
Try to write the code of your own.
|
|
|
|
|
hi all in my program i can create a new registry subkey under CLASS_ROOT, CURRENT_USER, USER & CURRENT_CONFIG But the programm can't Create a subkey under HKEY_LOCAL_MACHINE(But its possible under any sub node of LOCAL_MACHINE)
when i try for it the compiler shows the following message(An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The parameter is incorrect.
)
so how can i create a new sub key under LOCAL_MACHINE
HAVE U ANY SOLUTION PLZ REPLY SOON
THANX
Pradeep
-- modified at 7:12 Thursday 20th July, 2006
|
|
|
|
|
I think that is impossible to create a key under HKLM. That is not allowed.
|
|
|
|
|
NO dear It is possible now I have successfully done it
At The [HKEY_LOCAL_MACHINE AND HKEY_USERS] NODE the programm Only Works Under Sub Tabs And Not Useful For SECURITY Tab Under LOCAL_MACHINE NODE
just try it its so simple
GOOD LUCK
|
|
|
|
|
how do i send an e-mail using outlook 2000
|
|
|
|
|
just configure ur outlook for sendning and receiving mails in ur system. this has nothing to do with the coding part. after u finish configuring outlook in ur system whenever u click a link to mail it will open the outlook compose mail window.
Vipin
|
|
|
|
|
Sorry, I want to send mail via my c# application using outlook 2000.
|
|
|
|
|
hello, am writting a code for windows application, i want to validate the email i enter in a textbox using code not validators,
what is the suitable code to ensure the format of the email i enter
Thanks alot
Hamody
|
|
|
|
|
probably this code might help u.
private void textboxEmail_TextChanged(object sender, System.EventArgs e)
{
if (this.textboxEmail.Text.IndexOf("@") != -1 && this.textboxEmail.Text.IndexOf(".") != -1)
{
/* you entered a correct e-mail address */
this.textboxEmail.BackColor=Color.Yellow;
this.textboxEmail.ForeColor=Color.Blue;
this.textboxEmail.Font=new Font("Arial", 10, FontStyle.Underline);
}
else
{
// back to old/previous status of the TextBox
this.textboxEmail.BackColor=Color.White;
this.textboxEmail.ForeColor=Color.Black;
this.textboxEmail.Font=new Font("Arial", 10, FontStyle.Regular);
}
}
This is the method
private void textboxEmail_Validating(object sender, System.ComponentModel.CancelEventArgs e)
{
Regex emailregex = new Regex("(?[^@]+)@(?.+)");
Match mmatch = emailregex.Match(this.textboxEmail.Text);
if ( mmatch.Success )
{
MessageBox.Show("UserName: " + mmatch.Groups["user"].Value+"\n"+"HostName: " + mmatch.Groups["host"].Value,"E-Mail Information");
this.statusBar1.Text=""; //clear StatusBar
}
else
{
MessageBox.Show("invalid e-mail address...","E-Mail Information");
e.Cancel=true; // don't go away from the TextBox, try again
}
}
Vipin
|
|
|
|
|
|
In a windows-based application, how can we access the memebers(controls) of form1.cs class in another class within the same namespace.i need to update the controls with the data received in the other .cs class
Thanx in advance.
|
|
|
|
|
Hello,
If you have the instance of form1 in your other class.
You have to set the Members to public.
public otherclass()
{
this.myform1instance.member1.myproperty.value = ???;
}
If not, let us know more about your application.
All the best,
Martin
|
|
|
|
|
How can I do in C#, lets say inside a click event, a cmd that restarts the application, but updates it through the ClickOnce of the VS?
|
|
|
|