Dot netVAviswa a11yAsked Aug 3, 2015, 12:41 AM EDT4 answersShareLinkedInXCopy linkSaveCan any tell me how to bring the output using label-.step by step
Dot netVAviswa a11yAsked Aug 3, 2015, 12:41 AM EDT4 answersShareLinkedInXCopy linkSaveCan any tell me how to bring the output using label-.step by step
Syed ShanuRank #87 · 23.7K reputation11y agoPosted Aug 3, 2015, 1:06 AM EDT0What output you need means in design time you can just use like this Dynamic Server side Label Text change : In button click you can change the Label text as Button click event{ lbl1.Text="Your Text here";} Dynamic Client Side Label Text change using JavaScript function changeLabeltext(){ document.getElementById("lbl1").value = "Your Text here";}0
Rajeesh MenothRank #118 · 18.4K reputation11y agoPosted Aug 3, 2015, 1:40 AM EDT0Hi, Step 1 : Insert your asp.net label Step 2 : double click you button runat="server" OnClick="Submit_Click" /> Step 3 : codebehind.. protected void Submit_Click(object sender, EventArgs e) { lblname.Text="Hai......."; }0Upendra Pratap ShahiRank #329 · 7.5K reputation11y agoPosted Aug 3, 2015, 2:48 AM EDT0Hello, Use like below code- Step 1 : Insert a label control on your page <asp:Label ID="lblMessage" runat="server" Text="Label">asp:Label> Step 2 : Take a button control on your page <asp:button id="btnInput" Text="GetMessage" runat="server" OnClick="Submit_Click" /> Step 3 : On button click code-.. protected void Submit_Click(object sender, EventArgs e) { lblMessage.Text="Hello, I'm fine.!!"; } 0Amitesh VermaRank #2,535 · 552 reputation11y agoPosted Aug 3, 2015, 3:08 AM EDT0simply on button click event,write the code lblname.text="Your text to view"; 0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign inKnow the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Upendra Pratap ShahiRank #329 · 7.5K reputation11y agoPosted Aug 3, 2015, 2:48 AM EDT0Hello, Use like below code- Step 1 : Insert a label control on your page <asp:Label ID="lblMessage" runat="server" Text="Label">asp:Label> Step 2 : Take a button control on your page <asp:button id="btnInput" Text="GetMessage" runat="server" OnClick="Submit_Click" /> Step 3 : On button click code-.. protected void Submit_Click(object sender, EventArgs e) { lblMessage.Text="Hello, I'm fine.!!"; } 0
Amitesh VermaRank #2,535 · 552 reputation11y agoPosted Aug 3, 2015, 3:08 AM EDT0simply on button click event,write the code lblname.text="Your text to view"; 0
Syed ShanuRank #87 · 23.7K reputationPosted Aug 3, 2015, 1:06 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 3, 2015, 1:40 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 3, 2015, 2:48 AM EDT
Step 1 : Insert a label control on your page
<asp:Label ID="lblMessage" runat="server" Text="Label">asp:Label>
Step 2 : Take a button control on your page
<asp:button id="btnInput" Text="GetMessage" runat="server" OnClick="Submit_Click" />
Step 3 : On button click code-..
protected void Submit_Click(object sender, EventArgs e)
{
}
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 3, 2015, 3:08 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts