Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

amit_ghosh18

@amit_ghosh18
About
Posts
4
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Who to write HTML code using Csharp
    A amit_ghosh18

    private void button1_Click(object sender, EventArgs e)
    {
    string[] input = new string[] { "Web", "Images", "Gmail", "C:\\Users\\Amit_Personal\\Documents\\Visual Studio 2008\\Projects\\abc\\abc\\google_image_final.png", "Google Search", "I'm Lucky"};

           // Pass the array as a parameter:
           Designpage(input);
       }
    
       public void Designpage(string\[\] arr)
       {
    
           string fileLoc = @"C:\\Users\\Amit\_Personal\\Documents\\Visual Studio 2008\\Projects\\abc\\abc\\a.htm";
    
    
                     if (File.Exists(fileLoc))
                     {
                         using (StreamWriter s = File.AppendText(fileLoc))
                   {
    
                       //  StringWriter s = new StringWriter();
                       s.WriteLine("{0}", "<!DOCTYPE HTML PUBLIC \\"-//W3C//DTD HTML 4.0 Transitional//EN\\">");
                       s.WriteLine("{0}", "<html>");
                       s.WriteLine("{0}", "<title>Google</title>");
                       s.WriteLine("{0}", "<link rel=\\"stylesheet\\" type=\\"text/css\\" href=\\"style.css\\">");
                       s.WriteLine("{0}", "</head>");
                       s.WriteLine("{0}", "<body>");
    
    
                       s.WriteLine("<h4>{0}&nbsp;", arr\[0\]);
                       s.Write("{0}&nbsp;", arr\[1\]);
                       s.WriteLine("{0}&nbsp;</h4>", arr\[2\]);
                       s.WriteLine("<img src=\\"{0}\\" />",arr\[3\]);
    
    
    
                       s.WriteLine("{0}", "</body>");
                       s.WriteLine("{0}", "</html>");
                       s.WriteLine("{0}", "");
                       s.Close();
                   }
               }
    

    Any one Know how to write better code to generate a .html file using C# language..

    C# csharp html css visual-studio data-structures

  • 2nd
    A amit_ghosh18

    /* for 2nd page */

    #top_search
    {
    background: none repeat scroll 0 0 #F5F5F5;
    border-bottom:1px solid #E5E5E5;
    height:80px;
    }

    #top_search_bar
    {
    top:70px;
    left:300px;
    position:absolute;
    height: 24px;
    width: 540px;
    }

    #top_serch_image
    {
    top:62px;
    left:800px;
    position:absolute;
    }

    #site_link
    {
    left:30px;
    width:170px;

    }

    #site_image
    {
    top:140px;
    left:40px;
    width:50px;
    text-align:right;
    height: 123px;
    line-height:25px;
    }

    #site_text
    {
    left:70px;
    width:77px;
    top:140px;
    text-align:left;
    position:absolute;
    line-height:25px;
    }

    div#site_text a
    {
    color:#6A6A6A;
    font-weight:500;

    }

    div#site_text a:hover
    {
    text-decoration:underline;
    }

    .site_tab a
    {
    font-size:small;
    font-weight:300;
    line-height:18px;
    left:60px;
    width:120px;
    }

    div.site_tab a:hover
    {
    text-decoration:underline;
    }

    #search_result
    {
    top:150px;
    left:190px;
    position:absolute;
    width:800px;
    }
    div.link p
    {
    margin-top:0;
    margin-bottom:0;
    }
    div.link a
    {
    text-decoration:underline;
    }

    #goooogle_image
    {
    text-align:center;
    }
    #footer2
    {
    text-align:center;
    bottom:50px;
    }
    div#footer2 a
    {
    font-size:small;
    color:#47A1EB;
    }

    div#footer2 a:hover
    {
    text-decoration:underline;
    }

    Web Development architecture

  • Style
    A amit_ghosh18

    StyleSheet.css

    body
    {
    font-family: arial,sans-serif;
    }
    a
    {
    text-decoration:none;
    }
    #heading
    {

    top:0px;
    left:0px;
    height: 30px;
    background-color:Black;
    

    }
    div#heading a
    {
    color:#CCCCCC;
    font-family: arial,sans-serif;
    top:5px;
    font-size:14px;
    text-decoration:none;
    }

    .setting_image
    {
    top:13px;
    right:10px;
    position:absolute;
    }

    .signin
    {
    top:13px;
    right:40px;
    position:absolute;

    }

    div.signin a
    {
    color:#CCCCCC;
    font-family: arial,sans-serif;
    font-size:14px;
    font-weight:bold;
    text-decoration:none;
    }

    #google_image
    {
    padding-top:200px;
    text-align:center;
    background-image:url('Image/google_image_final.png');
    background-repeat:no-repeat;
    background-position:center;

    }
    #search
    {

    text-align:center;
    

    }

    div.main_body input
    {
    background-color:#F5F5F5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #666666;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    height: 29px;
    line-height: 27px;
    margin: 11px 6px;
    min-width: 54px;
    padding: 0 8px;
    text-align: center;
    }

    div.main_body input:hover
    {
    background-color:#F8F8F8;
    border:1px solid #C6C6C6;
    color:#333333;
    }

    div.language a
    {
    color:Blue;
    font-size:small;
    text-decoration:none;
    }

    div.language
    {
    font-size:small;
    }

    #footer
    {
    bottom:10px;
    left:25px;
    position:absolute;
    font-size:small;
    color:Blue;

    }

    div#footer a
    {
    text-decoration:none;
    }

    #footer1
    {
    bottom:10px;
    right:30px;
    position:absolute;
    font-size:small;
    }

    div#footer1 a
    {
    text-decoration:none;
    }

    /* for 2nd page */

    #top_search
    {
    background: none repeat scroll 0 0 #F5F5F5;
    border-bottom:1px solid #E5E5E5;
    height:80px;
    }

    #top_search_bar
    {
    top:70px;
    left:300px;
    position:absolute;
    height: 24px;
    width: 540px;
    }

    #top_serch_image
    {
    top:62px;
    left:800px;
    position:absolute;
    }

    #site_link
    {
    left:30px;
    width:170px;

    }

    #site_image
    {
    top:140px;
    left:40px;
    width:50px;
    text-align:right;
    height: 123px;
    line-height:25px;
    }

    #site_text
    {
    left:70px;
    width:77px;
    top:140px;
    text-align:left;
    position:absolute;
    line-height:25px;
    }

    div#site_text a
    {
    color:#6A6A6A;
    font-weight:500;

    }

    div#site_text

    Web Development css architecture

  • Design Google page..
    A amit_ghosh18

    google.html

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title>Google</title>
    <link href="StyleSheet.css" type="text/css" rel="Stylesheet" />
    <script type="text/javascript">
    function navigation()
    {
    window.location="Google_Search.html";
    }

    </script>
    

    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <div id="heading">

      
    <a href="#" style="color: #FFFFFF; font-weight: bold">Web</a>  
    <a href="#">Images</a>  
    <a href="#">Maps</a>  
    <a href="#">News</a>  
    <a href="#">Orkut</a>  
    <a href="#">Translate</a>  
    <a href="#">Gmail</a>  
    <a href="#">More</a>  
    </div>

    <div class="setting_image">
    <img src="Image/settings.jpg" alt="setting_image" style="height: 21px; width: 22px" />
    </div>

    <div class="signin">

    <a href="#">Sign in</a>&nbsp;&nbsp;
    
    </div>
    

    <br /><br /><br /><br /><br />
    <div id="google_image" >

    </div>

    <div id="search" >
    <input type="text" style="width:586px; height: 23px;" />
    <br />

                <div class="main\_body">
                  <input type="button" id="button1" value="Google Search" onclick="navigation()"/>&nbsp;&nbsp;&nbsp;&nbsp;
                  <input type="button" id="button2" value="I'm Feeling Lucky" />
                    <br />
                  <br /><br />
    

    </div>

     <div class="language">
    
     Google.co.in offered in: &nbsp;&nbsp;
    <a href="#">Hindi</a>&nbsp;&nbsp;
    <a href="#">Bengali</a>&nbsp
    
    Web Development javascript html css design sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups