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
How do we assign page-specific attributes?
Why mvc is better than asp.net? : Asp.Net MVC
What symbol would you use to denote, the start of a code block in aspx views?
What is an assembly? Explain its parts.
How asynchronous call can be implemented using delegates?
Why is the standalone environment only useful during the development process?
How do sessions work?
What is AutoEventWireup attribute for ?
How does viewstate work?
What are the authentication types in asp.net?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?
Explain how viewstate is being formed?
Explain ViewState?
Explain why it is useful to use mvc instead of webforms? : asp.net mvc