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
Pooja Chowdhury
NA
396
39.2k
add data in textbox
Aug 2 2017 1:53 AM
i have one textbox and one button
<asp:TextBox ID="txtPrevPol" runat="server" Placeholder="Policy No" class="form-control" ValidationGroup="P" />
<asp:Button ID="btnPAdd" runat="server" Text="Add" class="form-control btn btn-primary" ValidationGroup="P" />
i put value first in this textbox (ex: 1234)
it added and show in another textbox
<asp:TextBox ID="txtPrevPolList" runat="server" TextMode="MultiLine" ReadOnly="true" ></asp:TextBox>
output like that:
(ex:
1. 1234)
again i added the valur in the textbox ( txtPrevPol)( ex :3456)
show it in the txtPrevPolList
output:
(ex:
1. 1234
2. 3456 )
i am doing this using the following script:
<script>
var cnf = $.noConflict();
var count = 1;
cnf('#<%=btnPAdd.ClientID%>').click(function () {
var txt = cnf('#<%=txtPrevPol.ClientID%>').val();
if (txt != '') {
cnf('#<%=txtPrevPolList.ClientID%>').append((count++) + ':' + txt + '\n');
cnf('#<%=txtPrevPol.ClientID%>').val('');
return false;
}
});
when i fetch all values from the textbox (
txtPrevPolList
(ex:
1. 1234
2. 3456 ) )
to save it into the database
i cannot get the values from the textbox
Reply
Answers (
3
)
Is it possisble to copy only one column data from table?
could not able to render current date in textbox - Jquery