Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to show assetss details while passing the AssetId using jquey or json
I want to pass this asset id to json WebMethod.
How can I do this?
ASP.NET
<asp:Repeater ID="rptAssets" runat="server">
    <HeaderTemplate>
    </HeaderTemplate>
    <itemtemplate>
          
        <button id="Button1" value='<%# Eval("AssetId") %>'  title="button" ></button>

        <div id="dvAssets" class="assetDetails">
            <a href="#">
                <h3><%# Eval("AssetDesc") %>
                    <%# Eval("AssetId") %>
                </h3>
                <span><%# Eval("Staus")%></span>
            </a>
        </div>
    </itemtemplate>
Posted
v2

1 solution

Wrap the data inside one Control's property or something like...
ASP.NET
<asp:Label ID="lblAssetID" runat="server" Text='<%# Eval("AssetId") %>'></asp:Lable>

Then when you are sending the value, access the particular row and find that particular AssetID inside the row and send that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900