Skip to content
Loading
add dropdown on button hover in asp.net using Entity Framework  
  •   
  •   
  •   
  • "header">  
  • class="intro text-center">  
  • class="overlay">  
  • class="container">  
  • class="row">  
  • class="intro-text">  
  • Welcome to class="brand">Sassy Wallpaper

      
  • We are a digital that loves what we do

      
  • "#services" class="btn btn-default btn-lg page-scroll">Learn More   
  •   
  •   
  •   
  •   
  •   
  •   
  • "about">  
  • class="container">  
  • class="col-md-8 col-md-offset-2 section-title text-center">  
  • About Us

      
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam. Sed commodo nibh ante facilisis bibendum dolor apibus lornare diam commodo nibh.

      
  •   
  • class="row">  
  • class="col-xs-12 col-md-6""img/about.jpg" class="img-responsive" alt="">   
  • class="col-xs-12 col-md-6">  
  • class="about-text">  
  • Who We Are

      
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam. Sed commodo nibh ante facilisis bibendum dolor feugiat at. Duis sed dapibus leo nec ornare diam commodo.

      
  • What We Do

      
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam. Sed commodo nibh ante facilisis bibendum dolor feugiat at. Duis sed dapibus leo nec ornare diam commodo nibh ante.

      
  • Why Choose Us

      
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diam. Sed commodo nibh ante facilisis bibendum dolor feugiat at.

      
  •   
  •   
  •   
  •   
  •   
  •   
  • "portfolio">  
  • class="container">  
  • class="col-md-8 col-md-offset-2 section-title text-center">  
  • Our Wallpaper

      
  • We are a digital that loves what we do

      
  •   
  • class="categories">  
  • class="cat">  
  •   
  • class="type">  
  • "#" data-filter="*" class="active">All
  •   
  • "#" data-filter=".web">Popular
  •   
  • "#" data-filter=".app">Desktop Images
  •   
  • "#" data-filter=".branding">Branding
  •   
  •   
  •   
  •   
  • class="clearfix">  
  •   
  • class="row">  
  • class="portfolio-items">  
  • class="col-sm-6 col-md-3 col-lg-3 web">  
  • class="portfolio-item">  
  • class="hover-bg""img/portfolio/01-large.jpg" title="Project description" rel="prettyPhoto">  
  • class="hover-text">  
  • Project Title

      
  • Popular   
  • "img/portfolio/01-small.jpg" class="img-responsive" alt="Project Title">    
  •   
  •   
  • class="col-sm-6 col-md-3 col-lg-3 app">  
  • class="portfolio-item">  
  • class="hover-bg""img/portfolio/02-large.jpg" title="Project description" rel="prettyPhoto">  
  • class="hover-text">  
  • Project Title

      
  • Desktop Images   
  • "img/portfolio/02-small.jpg" class="img-responsive" alt="Project Title">    
  •   
  •   
  • class="col-sm-6 col-md-3 col-lg-3 web">  
  • class="portfolio-item">  
  • class="hover-bg""img/portfolio/03-large.jpg" title="Project description" rel="prettyPhoto">  
  • class="hover-text">  
  • Project Title

      
  • Popular   
  • "img/portfolio/03-small.jpg" class="img-responsive" alt="Project Title">    
  •   
  •   
  • class="col-sm-6 col-md-3 col-lg-3 web">  
  • class="portfolio-item">  
  • class="hover-bg""img/portfolio/04-large.jpg" title="Project description" rel="prettyPhoto">  
  • class="hover-text">  
  • Project Title

      
  • Popular   
  • "img/portfolio/04-small.jpg" class="img-responsive" alt="Project Title">    
  •   
  •   
  • class="col-sm-6 col-md-3 col-lg-3 app">  
  • class="portfolio-item">  
  • class="hover-bg""img/portfolio/05-large.jpg" title="Project description" rel="prettyPhoto">  
  • class="hover-text">  
  • Project Title

      
  • Desktop Images   
  • "img/portfolio/05-small.jpg" class="img-responsive" alt="Project Title">    
  •   
  •   
  • class="col-sm-6 col-md-3 col-lg-3 branding">  
  • class="portfolio-item">  
  • class="hover-bg""img/portfolio/06-large.jpg" title="Project description" rel="prettyPhoto">  
  • class="hover-text">  
  • Project Title

      
  • Branding   
  • "img/portfolio/06-small.jpg" class="img-responsive" alt="Project Title">    
  •   
  •   
  • class="col-sm-6 col-md-3 col-lg-3 branding app">  
  • class="portfolio-item">  
  • class="hover-bg""img/portfolio/07-large.jpg" title="Project description" rel="prettyPhoto">  
  • class="hover-text">  
  • Project Title

      
  • Desktop Images, Branding   
  • "img/portfolio/07-small.jpg" class="img-responsive" alt="Project Title">    
  •   
  •   
  • class="col-sm-6 col-md-3 col-lg-3 web">  
  • class="portfolio-item">  
  • class="hover-bg""img/portfolio/08-large.jpg" title="Project description" rel="prettyPhoto">  
  • class="hover-text">  
  • Project Title

      
  • Popular   
  • "img/portfolio/08-small.jpg" class="img-responsive" alt="Project Title">    
  •   
  •   
  •   
  •   
  •   
  •   
  •   
  • "contact" class="text-center">  
  • class="overlay">  
  • class="container">  
  • class="social">  
  •   
  •   
  •   
  •   
  •   
  • "footer">  
  • class="container text-center">  
  • class="fnav">  
  • Copyright © Sassy Wallpaper.

      
  •   
  •   
  •   
  • "text/javascript" src="js/jquery.1.11.1.js">  
  • "text/javascript" src="js/bootstrap.js">  
  • "text/javascript" src="js/SmoothScroll.js">  
  • "text/javascript" src="js/jquery.prettyPhoto.js">  
  • "text/javascript" src="js/jquery.isotope.js">  
  • "text/javascript" src="js/jqBootstrapValidation.js">  
  • "text/javascript" src="js/contact_me.js">  
  • "text/javascript" src="js/main.js">  
  •   
  •   
    1. public partial class WebForm1 : System.Web.UI.Page  
    2. {  
    3. protected void Page_Load(object sender, EventArgs e)  
    4. {  
    5. if(Session["UserName"]!=null)  
    6. {  
    7. string query = "select * from User where UserName'" + Session["UserName"] + "'";  
    8. Button1.Text = string.Format("Welcome {0}", Session["UserName"].ToString());  
    9. Button1.PostBackUrl = "/Profile.aspx";  
    10. }  
    11. }  
    12. protected void Button1_Click(object sender, EventArgs e)  
    13. {  
    14. Response.Redirect("/SignIn.aspx");  
    15. }  
    16. }  
  • Jenith Thakkar
    You can do it like create html 
    Give style hide to that dive and show on hover

    https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_display_element_hover

    like this example
    it's basic example but you can apply this type of logic for that