Dot Net Framework
A)
Write a program in C#.Net to find the length of a string.
Answer :
namespace WinFormsApp24
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int a = textBox1.Text.Length;
MessageBox.Show("Length : "
+ a);
}
}
}
Output :
B)
Create a web application in ASP.Net which may have a textbox. Now user must
type
some
data into it, the data he can enter is only 255 characters. After he crosses
the limit
then
the last word should not by typed and at the same time color of textbox
should
be red.
Answer :
Output :
Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Dot Net Framework Practical Slip 27 Answers
Reviewed by technical_saurabh
on
May 02, 2022
Rating:
No comments:
Post a Comment