Can you declare an array of mixed Types?
Answer / kris
public struct FormStruct
{
public string Name ;
public string Address;
public int Phone;
}
class Program
{
static void Main(string[] args)
{
FormStruct home;
home.Name = "xyz";
home.Address= "blabla";
home.Phone= 9955511122;
}
}
Is This Answer Correct ? | 5 Yes | 17 No |
program for string reverse(eg:- i am boy -> boy am i)
8 Answers Black Pepper, Infosys, Mind Tree,
How to Create Files by Using the FileInfo Class?
Write a program to convert postfix expression to infix expression.
I am developing a web application using google map api.I want to update the map inside the div control within update panel. I got other controls updated but map doesn't get updated.I do not not want to update map whenever unnecessary controls are fired at server side.How could it be achieved?
Code for Working with Files under a Directory?
Automatically Hyperlink URLs and E-Mail Addresses in ASP.NET Pages with C#
how to change password in .net with c # with ado.net and also SQL server 2008 change password
Hello I am hosting remoting within IIS. Everything works just fine as long as I allow anonymous access at the IIS level. When I allow only Windows Authenticated sessions, something very strange happens: If the client activates the remote object with IP address - works fine If the client activates it using a machine name - get http 401 exception is thrown. The exception is thrown when the client calls the remote method. I set the channel's useDefaultCredentials property to true. Any idea how to allow Windows Authentication? Here is the call stack: System.Net.WebException: The remote server returned an error: (401) Unauthorized .. ---> System.ComponentModel.Win32Exception: The target principal name is incorrect at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean handshakeComplete) at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob, Boolean handshakeComplete) at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials) at System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials) at System.Net.AuthenticationState.AttemptAuthenticate (HttpWebRequest httpWebRequest, ICredentials authInfo) --- End of inner exception stack trace ---
how do i copy textbox contents of 1 form to another form
working with arrays
How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?
How to Link Different Data Sources Together?