C# side wont work as it should RRS feed

  • Question

  • I created an asp.net webpage using Visual studio, C#  and now I want to add an input and call it Upload, as I know, to get to the code behind,  you have to double click the "button" in the design view and then it would automatically take you to the .cs file. Not mine.. Here is what happened when I did double click the upload "button
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <!--This is what visual studio added when I clicked on the button I want to program in design view-->
        <script language="javascript" type="text/javascript">
            function Submit1_onclick() {
    // -->
        <form id="Form1" method="post" enctype="multipart/form-data" runat="server">
            <input type="file" id="File1" name="File1" runat="server" />
            <input type="submit" id="Submit1" value="Upload" runat="server" onclick="return Submit1_onclick()" />

    • Moved by Ego Jiang Friday, July 12, 2013 8:04 AM
    Wednesday, July 10, 2013 1:47 PM

All replies