From ASP.NET to VB.NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sport Girl
    New Member
    • Jul 2007
    • 42

    From ASP.NET to VB.NET

    Hi there,

    please can somebody help me with this:

    if i want to transfer this little peace of code from ASP.NET to VB.NET, what could i write?

    Code:
    <HTML>
    
    <frameset> 
    
    <frame scrolling="auto" src="Tree.aspx" name="tree" DESIGNTIMEDRAGDROP="4">
    
    </frameset>
    
    <head>
    	<script>
    	window.parent.frames('tree').location.href('Tree.aspx');
    	</script>
    </head>
    
    </HTML>
  • Mr Gray
    New Member
    • Apr 2008
    • 47

    #2
    in the code behind use in the page load event

    Code:
    Response.Redirect("Tree.aspx")

    Comment

    • Sport Girl
      New Member
      • Jul 2007
      • 42

      #3
      But in fact i have the task to eliminate the code in ASP.NET and write a new code in VB.NET without including any ASP.NET.

      so should i use a button in the windows forms application and in the code behind it writing:

      Tree.show();
      Me.Hide();

      is this true?

      Best Regards

      Comment

      • Mr Gray
        New Member
        • Apr 2008
        • 47

        #4
        ASP.NET is a subset of the .NET framework VB.NET is a language used to write .NET code and as ASP.NET is a subset, VB.NET is also used to write ASP.NET.

        Do you have to use frames? If you look at master pages instead of using frames the web site can be controlled much easier and in a less out of date way. I can help you further if you need a little tutorial in the master page topic just message me.

        Comment

        • Sport Girl
          New Member
          • Jul 2007
          • 42

          #5
          But writing this same peace of code in Windows forms application is all an error , how can i fix it ?
          I don't know if i am clear...

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by Sport Girl
            But writing this same peace of code in Windows forms application is all an error , how can i fix it ?
            I don't know if i am clear...
            Web applications are different from desktop applications. You can't use the same code for both.

            Comment

            • shalini166
              New Member
              • Apr 2008
              • 70

              #7
              type

              convert c#.net to vb.net

              then some link will open


              click first link.


              then u place the code in the textbox then u click convert.

              ok.

              i think it will help u.

              Comment

              Working...