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

  • SEARCH
  • Home
  • 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 8140881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:18:47+00:00 2026-06-06T12:18:47+00:00

I was looking to using the Twitter Bootstrap Modal windows as a partial view.

  • 0

I was looking to using the Twitter Bootstrap Modal windows as a partial view. However, I do not really think that it was designed to be used in this fashion; it seems like it was meant to be used in a fairly static fashion. Nevertheless, I think it’d be cool to be able to use it as a partial view.

So for example, let’s say I have a list of Games. Upon clicking on a link for a given game, I’d like to request data from the server and then display information about that game in a modal window “over the top of” the present page.

I’ve done a little bit of research and found this post which is similar but not quite the same.

Has anyone tried this with success or failure? Anyone have something on jsFiddle or some source they’d be willing to share?

Thanks for your help.

  • 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-06-06T12:18:50+00:00Added an answer on June 6, 2026 at 12:18 pm

    Yes we have done this.

    In your Index.cshtml you’ll have something like..

    <div id='gameModal' class='modal hide fade in' data-url='@Url.Action("GetGameListing")'>
       <div id='gameContainer'>
       </div>
    </div>
    
    <button id='showGame'>Show Game Listing</button>
    

    Then in JS for the same page (inlined or in a separate file you’ll have something like this..

    $(document).ready(function() {
       $('#showGame').click(function() {
            var url = $('#gameModal').data('url');
    
            $.get(url, function(data) {
                $('#gameContainer').html(data);
    
                $('#gameModal').modal('show');
            });
       });
    });
    

    With a method on your controller that looks like this..

    [HttpGet]
    public ActionResult GetGameListing()
    {
       var model = // do whatever you need to get your model
       return PartialView(model);
    }
    

    You will of course need a view called GetGameListing.cshtml inside of your Views folder..

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

Sidebar

Related Questions

I was looking at the jQuery plugins for Twitter Bootstrap and saw that they
I am building a website using the twitter bootstrap base so that i can
I was looking at Twitter's embedded code and saw that they are using !function
I just started using Twitter Bootstrap http://twitter.github.com/bootstrap/scaffolding.html and I'm looking for the grey/blue navbar
I am new to oAuth and looking to build a web application using Twitter
In my Rails 3 application I'm using Twitter Bootstrap as a frame work for
I'm looking at using Twitterizer in my app. I've got it working, however, if
I am using Twitter Bootstrap for everything and it's great but am at the
I'm looking into using the EventMachine powered twitter-stream rubygem to track and capture tweets.
I'm using Tweetstream gem to monitor a single twitter userstream and am looking to

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.