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 is asp net_sessionid?
What is difference between mvc and asp.net? : Asp.Net MVC
How many types of sessions in asp.net?
How do I know asp.net mvc version? : Asp.Net MVC
Explain in what order a destructors is called.
In ViewState How much lifespan items stored?
What is content place holder?
What symbol specifies the beginning of a query string?
What is viewstate? In which event of the page life cycle, is the viewstate available?
How do I upload a file from my ASP.NET page?
What are session state modes? List some of the important session state modes of asp.net.
What is the difference between pathparam and queryparam?
Explain how can you debug your .net application?
Is asp.net and .net the same?
What does postback mean?