ASP.NET Web Hosting Bringing you articles, reviews, news and happenings in asp.net hosting.


15
Aug/09
3

How To Display Information From Database In Pop Up Using Ajax In Asp.net ?

hi .. i have a GridView control having employee imformation ,i wanted to display more imformation in pop up when mouse is over the employee code field in GridView, ?i am working in ASP.NET Enviroment plse help me it's urgent requirement

Comments (3) Trackbacks (0)
  1. Hello,
    A lot of ‘modern’ browsers block out popups, or put them behind the active window. Also, you’d have to be careful to avoid multiple window.opens every time the user moves the mouse…
    You can make popup menus without any Javascript (using CSS)… but they only work well in those ‘modern’ browsers already mentioned.
    If using Javascript, look at moving and hiding/showing some ‘menu HTML’, or if appropriate, creating such a menu dynamically..
    The code below is gratuitously commented, and has been tested on Opera 9, Firefox 2, and IE6. It will let you assign different menus to multiple objects; but the menus don’t disappear very cleanly… You can hack the Javascript around to do things like, alter the position of the popup relatively, so it appears ‘from’ the parent element rather than over it; or even at the position of the mouse exactly. You also might want to make the popups disappear automatically when the user mouses out of the vicinity of the popup… I’ll leave that to you to research:
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-…





    (Close popup)



    This should hopefully answer your question. Good Luck!
    Sean Colicchio
    Server Engineer
    Host My Sitehttp://www.hostmysite.com/?utm_source=bb

  • For AJAX (as was said before being the client side code) to be able to get the info and display it you will need server side script to process AJAX request, get the info, format it in XML format and send it back to the client…

  • AJAX is client code.

  • Leave a comment


    No trackbacks yet.

    Preview on Feedage: outdoor-gas-grills-and-reviews Add to My Yahoo! Add to Google! Add to AOL! Add to MSN
    Subscribe in NewsGator Online Add to Netvibes Subscribe in Pakeflakes Subscribe in Bloglines Add to Alesti RSS Reader
    Add to Feedage.com Groups Add to NewsBurst Add to Windows Live Rojo RSS reader iPing-it
    Add to Feedage RSS Alerts Add To Fwicki

    Powered by Yahoo! Answers