Advertisement
Sunday, October 28, 2007
What methods are fired during the page load?
Init() - when the page is instantiated, Load() - when the page is loaded into server memory, PreRender() - the brief moment before the page is displayed to the user as HTML, Unload() - when page finishes loading.
Posted by
S3 Technology Softwares
at
5:11 PM
0
comments
Labels: Interview Questions
Subscribe : Subscribe By EmailWhat’s the difference between Response.Write() and Response.Output.Write()?
Ans > The latter one allows you to write formatted output.
Posted by
S3 Technology Softwares
at
5:10 PM
0
comments
Labels: Interview Questions
Subscribe : Subscribe By EmailDescribe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.
inetinfo.exe is the Microsoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request to the actual worker process aspnet_wp.exe.
Posted by
S3 Technology Softwares
at
5:08 PM
7
comments
Labels: Interview Questions
Subscribe : Subscribe By EmailThursday, October 11, 2007
Adding Tooltip to a component in C#
Tooltip is a simply a nice ways to show a shot help to any component or control ...
Here is a short example for how to add a tooltip to a component ..
Source Code
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;public class Form1 : Form
{ private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.ToolTip toolTip1; private System.Windows.Forms.ToolTip toolTip2; private System.Windows.Forms.PictureBox pictureBox2; public Form1() {InitializeComponent();
}
private void InitializeComponent()
{this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.toolTip1 = new System.Windows.Forms.ToolTip(new System.ComponentModel.Container());
this.toolTip2 = new System.Windows.Forms.ToolTip(new System.ComponentModel.Container());
this.pictureBox2 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.SuspendLayout(); // // pictureBox1 // this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;this.pictureBox1.Location = new System.Drawing.Point(12, 24);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(100, 50);
this.pictureBox1.TabIndex = 0;this.pictureBox1.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox1, "This is a tooltip.");
// // toolTip1 // this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;this.toolTip1.ToolTipTitle = "Titled ToolTip";
// // pictureBox2 // this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;this.pictureBox2.Location = new System.Drawing.Point(148, 24);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(100, 50);
this.pictureBox2.TabIndex = 1;this.pictureBox2.TabStop = false;
this.toolTip2.SetToolTip(this.pictureBox2, "This is a tooltip.");
// // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;this.ClientSize = new System.Drawing.Size(279, 107);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox1);
this.Name = "Form1";
this.Text = "ToolTip Test";
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();this.ResumeLayout(false);
}
[STAThread]
static void Main()
{Application.EnableVisualStyles();
Application.Run(new Form1());}
}
Do write a comment if this code is helpful for you ...