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
Explain the use of errorprovider control in .net?
What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?
Is data edited in the Repeater control?
witch is the best insistute in sharpoint course.what abt future of share point course.
Which is the parent class of the ASP.NET server control?
To bind columns manually which tags do you need to add within the asp:datagrid ?
What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?
What is http session state?
What are the merits and demerits of viewstate?
What are client activated objects and server activated objects?
Define static function?
Define transparent caching with aop?
how to debug web services on consumer side?
How many validators do ASP.NET have?
ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?