Take one textbox if I am inputting abc alphabet in capital
letter or in small letter on the button click it will be
bcd or if I enter 123 and it would be 234 like that in
ASP.NET?
Answer Posted / sharumathi
protected void Button1_Click(object sender, EventArgs e)
{
string str = TextBox1.Text;
byte[] a = System.Text.Encoding.ASCII.GetBytes(str);
byte[] b = { a[1], a[2], (++a[2]) };
string x = System.Text.Encoding.ASCII.GetString(b);
TextBox2.Text = x;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the two Layouts supported by a Web form in ASP.NET?
ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?
What are client activated objects and server activated objects?
What are session objects?
Do gac'ed assemblies have fulltrust?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.
Explain what does wsdl stand for?
What is clr? Difference between clr & cts?
What are the different types of events are occured when a client requests an ASP.NET page from IIS server?
How many types of file extensions for razor views in ASP.Net MVC?
Distinguish between Server-side and Client-side code with its functionality?
How can we use Web API with ASP.NET Web Form?
What is the difference between page directive include and action tag include?
What is the difference between web.config and machine.config in ASP.NET?
What are validator? How do you disable them?