How to merge two the checkbox value to textbox asp.net
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Joginder BangerRank #360 · 7K reputationPosted Feb 21, 2015, 9:36 AM EST
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="testing.WebForm1" %>
CS. file data.
protected void Unnamed_Click(object sender, EventArgs e)
{
txtbox.Text = first.Text + second.Text;
}
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Feb 21, 2015, 8:09 AM EST
But your solution can be:
TextBox1.Text=CheckBox1.Text + CheckBox2.Text;