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
Anurag Srivastava
NA
39
0
How to get the Listview value in through JavaScript
Feb 23 2012 2:00 AM
Hello All
I want to get a OutPutIndicatorID value through JavaScript,
OutPutIndicatorID is in ListView.
My code is:
<script language="javascript" type="text/javascript">
function OpenFormula(OutPutIndicatorIDValue) {
var controlid = OutPutIndicatorIDValue.toString();
alert(controlid);
}
</script>
<asp:ListView ID="lstEmissionReport" runat="server">
<LayoutTemplate>
<asp:PlaceHolder ID="itemPlaceholder" runat="server" />
</LayoutTemplate>
<ItemTemplate>
<tr>
<asp:Label ID="OutPutIndicatorID" runat="server" Visible="false" Text='<%#(Eval("OutputIndicatorID").ToString()==""?"N/A" : Eval("OutputIndicatorID").ToString())%>'></asp:Label>
<td class="detacell_one" style="font-size:10px;">
<asp:LinkButton ID="OutPutIndicatorName" runat="server"
OnClientClick = 'javascript:OpenFormula("<%#(Eval("OutputIndicatorID").ToString())%>");'
Text='<%#(Eval("OutputIndicatorName").ToString()==""?"N/A" : Eval("OutputIndicatorName").ToString())%>'></asp:LinkButton>
</td>
Reply
Answers (
2
)
Possibility for creation of Dll file in C#
WEBAPPLICATION PROJECT CANNOT edit