Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 348409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:21:42+00:00 2026-05-12T11:21:42+00:00

If I had an ASP.NET 4.0 DataView control that looked like below, how can

  • 0

If I had an ASP.NET 4.0 DataView control that looked like below, how can I control javaScript events on the client side?

Body tag:

<body xmlns:sys="javascript:Sys" xmlns:dataview="javascript:Sys.UI.DataView"    
  sys:activate="*">

DataView tag:

<ul sys:attach="dataview" dataview:data="{{ ListOfPeople }}" class="sys-template">    
    <li>    
          <div>{{ GivenName }}</div>  
          <div>{{ SurName }}</div>  
          <div>{{ Title }}</div>  
          <div>{{ Department }}</div>  
          <div>{{ Phone }}</div>  
          <div>{{ EmailAddy }}</div>  
    </li>  
</ul>

For instance, I want a button or link to ‘select’ this record and have the server send them an email or flag them in the database or even something as simple as changing the style of the selected row so as to bring the user’s focus to it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:21:43+00:00Added an answer on May 12, 2026 at 11:21 am

    AFAIK the client templates are used rendering and do not have any options to attach events.

    I guess using jQuery you could implement a simple selection

    $('#peopleList > li').live('click', function () {
        $(this).parent().children().removeClass('selected');
        $(this).addClass('selected');
    });
    

    The case with the button can be handled by adding it through the client template and binding the events in a similar way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone had any experience writing a web control (in either ASP.net, or javascript/HTML/CSS),
I had written one JS in asp.net. I had called that from body onload
Somehow I had the impression that ASP.Net differentiates URLs based on the number of
I am trying to fix an ASP.NET site that a friend had botched converting
I have some internal-facing ASP.NET web services that have had numerous API additions over
Asp.net team had designed script manager such that only one instance existed per page(HttpHandler),
If you had looked at table schema of asp.net membership system they store the
Anyone had a chance to use the javascript MVC framework with ASP.NET MVC? Basically
Learning asp.net mvc and whenever I worked we had to localize our application. Looked
I have a website that started with ASP.NET and over time has had some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.