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

What is asp net_sessionid?

639


What is difference between mvc and asp.net? : Asp.Net MVC

574


How many types of sessions in asp.net?

587


How do I know asp.net mvc version? : Asp.Net MVC

508


Explain in what order a destructors is called.

583






In ViewState How much lifespan items stored?

593


What is content place holder?

531


What symbol specifies the beginning of a query string?

537


What is viewstate? In which event of the page life cycle, is the viewstate available?

605


How do I upload a file from my ASP.NET page?

597


What are session state modes? List some of the important session state modes of asp.net.

537


What is the difference between pathparam and queryparam?

583


Explain how can you debug your .net application?

542


Is asp.net and .net the same?

516


What does postback mean?

539