Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Populate TextBox based on DropDownList Selection in ASP.Net using C#

(0) ShareShare
ReportReport
Posted on by 150

<asp:Label ID="CreditCheckLB" runat="server" Text=" Credit check being done on your company?"></asp:Label></td>
<asp:TextBox ID="CreditDDyes" runat="server"></asp:TextBox>
<td> <asp:DropDownList ID="CreditCheckDD" OnSelectedIndexChanged="CreditCheckDDtoTBenable" AutoPostBack="true" runat="server" style="width: 63px" > 
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem Text="Yes:" Value="0"></asp:ListItem>
<asp:ListItem Text="No" Value="1"></asp:ListItem>
</asp:DropDownList>

if i select the value 0 it ill show a text box with label .i need a code in c# 

*This post is locked for comments

  • Suggested answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at
    RE: Populate TextBox based on DropDownList Selection in ASP.Net using C#

    Hey Navauyht,

    Please refer below link for what you are looking for:

    http://www.c-sharpcorner.com/forums/how-to-set-textbox-text-when-value-selected-from-dropdown

     


    If found useful, please mark the answer as verified.


    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.com

     

     

  • Community Member Profile Picture
    on at
    RE: Populate TextBox based on DropDownList Selection in ASP.Net using C#

    It has nothing to do with CRM, you should go to other forum.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans