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 skin in asp.net?
What is difference between view and partial view?
What is a 1x1 pixel?
What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?
What is the difference between Session and response.Redirect?
How to manage different kinds of sessions in ASP.NET?
What is variable and constant in .net programming language?
Explain the difference between inline and code behind - which is best in?
List the types of authentication supported by asp.net?
I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)
Is there any property names “isnavigating”?
How do I open an ashx file in windows 7?
What are the events in a page life cycle?
how to elimainte the similar data from the different tables
What are sharepoint pages?