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
Which is the parent class of the web server control?
I’m having some trouble with cas. How can I diagnose my problem?
Is sql backend or frontend?
What is postback and autopostback in asp.net?
What are strong names?
How do I open an ashx file?
How to reduce the width of textbox in editcommandcolumn of datagrid?
What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?
What is application session?
Which is better asp.net or php?
Why session management is required?
How can we create pie chart in asp.net?
Explain transparent caching with aop?
What is session in web technology?
What is s2s tracking?