how the value of label is printed through a button in
asp.net web application

Answers were Sorted based on User's Feedback



how the value of label is printed through a button in asp.net web application..

Answer / anamika

protected void Button_Click(object sender,EventArgs e)
{
Response.write(Label1.Text);
}

Is This Answer Correct ?    13 Yes 2 No

how the value of label is printed through a button in asp.net web application..

Answer / archana bobade

protected void Button_Click(object sender,EventArgs e)
{
Label1.Text= "Value is Printed";
}

Is This Answer Correct ?    1 Yes 0 No

how the value of label is printed through a button in asp.net web application..

Answer / vikram

protected void Button_Click(object sender,EventArgs e)
{
Label1.Text="print the value";

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Code Interview Questions

Common UI for Multiple web applications. Suppose there are 35 websites using same third party controls.These 3rd party controls are made together that all 35 websites can use these controls.If we put all 3rd party controls and use its dll in 35 websites,only class files will be accessable. But I want to use CSS,images also in all 35 websites. how I can design the N-tier solution for this project.

0 Answers   TCS,


How to integrate the regional language in asp.net and c# like Telugu, Hindi etc,. send a sample program

3 Answers   Concept, NIIT, Wipro,


how to design a ListView control?

1 Answers  


How we use ajax in asp.net through javaScript. Please givee me an example.

0 Answers  


Code for Getting Information About A File?

1 Answers  






how the value of label is printed through a button in asp.net web application

3 Answers  


Code for a Simple Way to Write XML in .NET (XmlTextWriter)

1 Answers  


How we implement the paypal in my website and how we make a payment through Credit Card.

2 Answers  


How to Snap the Cursor to a Button?

1 Answers  


Code for Presenting Parent/Child Data in a Data Grid Row?

0 Answers   TCS,


i have a gird with columns all are coming from database,this will bind in item templete in gridview as textboxex.and i have button below named Update.i want to update all the records in the grid,but if user change the value of one textbox,what is the easy way 2 do this

0 Answers   Crompton Greaves,


Code for Creating a Form Using PlaceHolder Controls?

0 Answers   Arena, JSA,


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)