1) What this mean: AssociatedControlID
It tells label, where focus should go once the label is clicked
You need to create the form so that when the user clicks the label the corresponding textbox is selected for input.
It tells label, where focus should go once the label is clicked
You need to create the form so that when the user clicks the label the corresponding textbox is selected for input.
id="form1" runat="server">
2) You need to write code that will change the contents of the tag dynamically when the page is loaded
A) This.hdr1.innerhtml=’ change’
B) HtmlGenericControl ht = this.FindControl(“hdr1”) as HtmlGenericControls H1.InnerText = “Change”
4) How to Send Mail.
System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
mail.From = new MailAddress("Specify ur Mail ID");
mail.To.Add("TO Address");
mail.Body = "Body of the Mail";
mail.Subject = "Test Mail";
SmtpServer.Port = 587;
SmtpServer.Credentials = new System.Net.NetworkCredential("Specify ur Mail ID", "Specify ur Mail Password");
SmtpServer.EnableSsl = true;
SmtpServer.Send(mail);
int number = 1;
//D4 = pad with 0000
string outputValue = String.Format("{0:D4}", number);
Console.WriteLine(outputValue);//Prints 0001
//OR
outputValue = number.ToString().PadLeft(4, '0');
Console.WriteLine(outputValue);//Prints 0001 as well
6)Phone Number Format
1)String.Format("{0:(000)###-####}", ChangeFormat)
2)String.Format("{0:(###)###-####}", ChangeFormat)
//I/P O/P
//1) 0007356987 1) (000)735-6987
//2) 0007356987 2) ()735-3987
7) How to display loading images while button click using Ajax.
Step 1: Add ScriptManger Tag
Step 3: Add Ajax ModalPopupExtender tag.
Step 4: Add Progess Image tag. Following method.
What is AutoWireUp Event.
The ASP.NET page framework supports an automatic way to associate page events and methods. If the AutoEventWireup attribute of the Page directive is set to true, the page framework calls page events automatically, specifically the Page_Init and Page_Load methods. In that case, no explicit Handles clause or delegate is needed.
AutoEventWireup =”true” means event fired with out having the delegate
AutoEventWireup =false means we must have the delegates other wise those events not fired.
If AutoEventWireUp=true the page event will execute otherwise will not execute.
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("Hai i am Page_Load");
}
protected void Page_PreInit(object sender, EventArgs e)
{
Response.Write("Hai i am Page_PreInit");
}
IAM- International Association of Machinists and Aerospace Workers is a fund office that provides health and welfare benefits to participant and their families. System is designed to manage IAM's Employer details such as Address, Contact, Representative and their contracts based on CBA (Collective Bargaining Agreement) between IAM & their Employers.
System is designed to facilitate- Benefits to employer's Participant, Dependent, Beneficiary - Enabling ACA [Affordable Care Act] for dependents- Generating Bills for Employer- Maintaining the received contribution from employer- Providing eligibility- Enabling COBRA plan- Easy retrieval of data for Customer service. Along with IAM account, system is designed to support across all existing accounts for HPS clients.
How to Convert one model Class to List of Model Classes
Appointments ObjModel = new Appointments();
AnotherAppointments model = new AnotherAppointments();
Step 1 : Create List of model Object
List
Step 2 : Add List of Model from Collection on model
appointmentList.Add(ObjModel);
Step 3 : Assign List of model to another List of Model Classe
model.AppointmentList = appointmentList;
No comments:
Post a Comment