TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abdalla Elawad
NA
1k
216.7k
How to create TextBox2_TextChanged put into Edit template
May 14 2017 8:39 AM
Hi Guys
Please help me
This is textbox in EditItem template in gridview :
<EditItemTemplate>
<asp:TextBox ID="TextBox11" Width="80" runat="server" Text='<%# Bind("Service_Start_Date", "{0:dd/MM/yyyy}") %>' TargetControlID="TextBox11"></asp:TextBox>
<ajaxToolkit:CalendarExtender ID="CalendarExtender1" TargetControlID="TextBox11" runat="server" Format="dd/MM/yyyy" />
</EditItemTemplate>
and this is other :
<EditItemTemplate>
<asp:TextBox ID="TextBox11" Width="80" runat="server" Text='<%# Bind("Service_Start_Date", "{0:dd/MM/yyyy}") %>' TargetControlID="TextBox12"></asp:TextBox>
<ajaxToolkit:CalendarExtender ID="CalendarExtender1" TargetControlID="TextBox11" runat="server" Format="dd/MM/yyyy" />
</EditItemTemplate>
How to applied this code and how declare txt in gridview
protected void TextBox11_TextChanged(object sender, EventArgs e)
{
string date = TextBox11.Text;
DateTime dt1 = DateTime.ParseExact(date, "dd/MM/yyyy", CultureInfo.InvariantCulture);
TextBox12.Text = dt1.AddDays(30).ToString("dd/MM/yyyy");
Label1.BackColor = Color.Green;
Label2.Text = ("Team Should Be Changed On:" + dt1.AddDays(30).ToShortDateString());
}
thanks
Reply
Answers (
3
)
multithreading ping application in c# windows form
Add Check box for dynamic sdk:datagrid header