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?
Answers were Sorted based on User's Feedback
Answer / nitin kumar nitin@bbspl.com
string str;
str = text4.Text;
string one, two,three;
string four;
char dd;
one = str.Substring(1,2);
three = str.Substring(2, 1);
two = one;
four = three;
dd=char.Parse(four);
int con = Convert.ToInt32(((int)dd).ToString());
string str1 = char.ConvertFromUtf32(con+1);
text5.Text = two + str1;
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / sagnikmukh
i am posting the basic logic,
class Program
{
static void Main(string[] args)
{
string test = "123";
StringBuilder st=new StringBuilder ();
int l;
l = test.Length;
for (int i = l; i > 0; i--)
{
st = st.Append(test.Substring(i - 1,
1).ToString ());
}
Console.WriteLine(st.ToString ());
Console.Read();
}
}
this will be the Button event in ASP.NEt Page.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
What is difference between Server.Transfer and Response.Redirect in ASP.NET?
0 Answers Sans Pareil IT Services,
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
What is datagrid asp.net?
When does the application ONEND event handler fire?
1 Answers C Squared Systems, Verinon Technology Solutions,
Descrie about response.buffer and repsonse.flush ?
How to write unmanaged code and how to identify whether the code is managed /unmanaged?
which directive is mandatory in page control
how can u display multi language (i.e english,spanish...) web site?
Describe how to implement globalization and localization in the use interface in .net.
What are the page level transaction and class level transaction?
What is page fragment caching?
What is a swagger in web api?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)