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


Please Help Members By Posting Answers For Below Questions

How do we assign page-specific attributes?

609


Why mvc is better than asp.net? : Asp.Net MVC

463


What symbol would you use to denote, the start of a code block in aspx views?

569


What is an assembly? Explain its parts.

621


How asynchronous call can be implemented using delegates?

531






Why is the standalone environment only useful during the development process?

1332


How do sessions work?

526


What is AutoEventWireup attribute for ?

594


How does viewstate work?

564


What are the authentication types in asp.net?

563


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

498


Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

645


Explain how viewstate is being formed?

531


Explain ViewState?

570


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

588