Home
ASP.Net
Interview FAQs

The SQL Server-based session management uses SQL Server to store all sesion information and is intended to be used when you must not lose any session information if server problems arise.
TextBox1.Style["text-align"]="right";
DateTime dt = DateTime.Parse(TextBox1.Text);
System.Web.Mail (SWM) is the .Net namespace used to send email in .Net Framework applications. SWM contains three classes:

1. MailMessage - used for creating and manipulating the mail message contents.
2. MailAttachments - used for creating a mail attachment to be added to the mail message.
3. SmtpMail - used for sending email to the relay mail server.


//Populate the DataSet
//...

//Display in TextBoxes using Column Name
TextBox1.Text = ds.Tables [0].Rows[0]["ProductId"].ToString ();
TextBox2.Text =ds.Tables [0].Rows[0]["ProductName"].ToString ();


//Display in TextBoxes using Column Index
TextBox1.Text = ds.Tables [0].Rows[0][0].ToString ();
TextBox2.Text =ds.Tables [0].Rows[0][1].ToString ();
You can use the TextBox webserver control and set the TextMode = MultiLine
//HTML
<asp:PlaceHolder id="PlaceHolder1" runat="server"></asp:PlaceHolder>

TextBox[] textboxes = new TextBox[5];
for (int i=0; i<5; i++)
{
textboxes[i] = new TextBox();
textboxes[i].ID = "TextBox" + i;
textboxes[i].AutoPostBack = true;
PlaceHolder1.Controls.Add(textboxes[i]);
}
No. ASP.Net uses parsers to strip the code from ASPX files and copy it to temporary files containing derived Page classes, and a given parser understands only one language.
Yes. Place the DLL containing the type in the application roots bin directory and ASP.Net will automatically load the DLL when the type is referenced. This is also what happens when you add a custom control from the toolbox to your web form.
PreviousDisplaying 6 of 46Next
Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*