Introduction
This article will help you to create a responsive website using ASP.NET. Learn more about responsive from What is Foundation?.
Step 1

Download the responsive CSS and JavaScript files from Download Foundation 5 (you can customize your download).

Step 2
Open your Visual Studio then add your downloaded file into your project then add a default.aspx page and call your necessary files within the head tag from that downloaded folder.
  1. <head runat="server">
  2. <title></title>
  3. <script src="Foundation/js/foundation.min.js" type="text/javascript"></script>
  4. <link href="Foundation/css/foundation.min.css" rel="stylesheet" type="text/css" />
  5. </head>
Step 3
Foundation zurb provides so many functions in responsive. You can learn about it from my previous link :(http://foundation.zurb.com/docs/index.html) .
Now I will explain how to create a simple signup form with a responsive page. Once you add foundation.min.js and foundation.min.css you can get very many classes.
Before starting a responsive design you must specify <div class="row"></div>. Here the class row is a new line (for example: <tr></tr> in the table tag).
  1. <div class="row">
  2. </div>
Then you need to assign your space for specific content through the class large; class large-12 is 100% width. We can share 100% width to every object, for example:
  1. <div class="row">
  2. <div class="large-4 columns">...</div>
  3. <div class="large-4 columns">...</div>
  4. <div class="large-4 columns">...</div>
  5. </div>
Full Example
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Responsive_Site.Index" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <title></title>
  6. <script src="Foundation/js/foundation.min.js" type="text/javascript"></script>
  7. <link href="Foundation/css/foundation.min.css" rel="stylesheet" type="text/css" />
  8. </head>
  9. <body>
  10. <form id="form1" runat="server">
  11. <br /><br />
  12. <div class="row" style="border:2px solid blue">
  13. <div class="large-12 columns">
  14. <br /><br />
  15. <div class="row">
  16. <div class="large-12 columns text-center">
  17. <b>Signup Form</b>
  18. </div>
  19. </div><br /><br />
  20. <div class="row">
  21. <div class="large-12 columns">
  22. Name:
  23. </div>
  24. </div>
  25. <div class="row">
  26. <div class="large-12 columns">
  27. <asp:TextBox ID="txtUName" runat="server" placeholder="User name"></asp:TextBox>
  28. </div>
  29. </div>
  30. <br /><br />
  31. <div class="row">
  32. <div class="large-12 columns">
  33. Email id:
  34. </div>
  35. </div>
  36. <div class="row">
  37. <div class="large-12 columns">
  38. <asp:TextBox ID="txtEmail" runat="server" placeholder="Email id"></asp:TextBox>
  39. </div>
  40. </div>
  41. <br /><br />
  42. <div class="row">
  43. <div class="large-12 columns">
  44. Phone no:
  45. </div>
  46. </div>
  47. <div class="row">
  48. <div class="large-12 columns">
  49. <asp:TextBox ID="txtPhone" runat="server" placeholder="Phone number"></asp:TextBox>
  50. </div>
  51. </div>
  52. <br /><br />
  53. <div class="row">
  54. <div class="large-12 columns">
  55. Address:
  56. </div>
  57. </div>
  58. <div class="row">
  59. <div class="large-12 columns">
  60. <asp:TextBox ID="txtAddress" runat="server" placeholder="Address" TextMode="MultiLine"></asp:TextBox>
  61. </div>
  62. </div>
  63. <br /><br />
  64. <div class="row">
  65. <div class="large-6 columns">
  66. <asp:Button ID="btnSubmit" runat="server" Text="Submit"></asp:Button>
  67. </div>
  68. <div class="large-6 columns">
  69. <asp:Button ID="btnCancel" runat="server" Text="Cancel"></asp:Button>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </form>
  75. </body>
  76. </html>
Output (on large screens)
Output (on small screens)