Monday, May 20, 2024
Homepage · c#
 Popular · Latest · Hot · Upcoming
170
rated 0 times [  171] [ 1]  / answers: 1 / hits: 16874  / 11 Years ago, thu, november 7, 2013, 12:00:00

I have a filedset and legend inside that with some text and inside this fieldset i have a GRID



I have 2 questions




  1. How to show ? hide html filedset from code behind, i tried the following way to show and hide the field set



    a) set runat=server--but it didnt work
    b) i pasted the fieldset inside an asp.net panel and tried to show/hide the panel, it
    also didnt work


  2. How to set text for legend from code behind , ie I want to set
    some text + Value_Form_Code Behind AS leged text



Note :I am using Rad Ajax Manager and Rad Ajax LoadingPanel


More From » c#

 Answers
8
<asp:Panel ID=Panel1 runat=server >                
<fieldlset>
<legend><asp:Label id=Label1 runat=server /></legend>
</fieldset>
</asp:Panel>


How to show /hide html filedset from code behind ?



Panel1.Visible = true; // or false


How to set text for legend from code behind , ie I want to set some text + Value_Form_Code Behind AS legend text ?



Label1.Text = String.Format(some text {0},Value_Form_Code);

[#74447] Wednesday, November 6, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
paola

Total Points: 675
Total Questions: 115
Total Answers: 95

Location: Laos
Member since Tue, Jul 7, 2020
4 Years ago
;