Results 1 to 4 of 4

Thread: Developing .cs from .aspx

  1. #1
    Join Date
    May 2009
    Posts
    837

    Developing .cs from .aspx

    Hello. I have a dynamic content page developed for a website. The thing is that I need to differentiate the source from .apsx to .cs. That is I want to extract the source .cs from .aspx. The dynamic content is purely based on .aspx format.The pages have been set into different folders for .aspx now I want it to be executed in .cs form. Is there any software application which can do it. Please help.

  2. #2
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Developing .cs from .aspx

    You can do the following in order to get the things done in your favor. The .aspx file to .cs can be executed by the following steps:

    * Firstly rename the .aspx file that is not associated with the the code.
    * Create a new web form or a web page in with the original name of the existing file and make sure that it is not placed in same file. Use other file to locate them.
    * Open the new file with the old one and then make it to execute runat=serverscript. Then copy it to the new class of the code.
    * After this copy the html file or code and paste it in the class code.
    * Check for any namespaces available.

    Through this you can then extract the .cs from .aspx

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: Developing .cs from .aspx

    There is also an other way to do it. You can create a .cs file by coding. The namespace then would be of any choice depending on the program that is been coded. So the program goes as follows:

    using System;
    using System.Collections.Generic;
    using System.link;
    using System.Brow;
    using System.Brow.EI;
    using System.Brow.EI.Browcontrols;
    using System.Txt;

    public partial class Default : System.Brow.EI.Page
    {
    protected void Page_Load(object User, EventArgs e)
    {

    }
    }

    After this in the aspx code mention the C# page language. That is
    <%
    @ page lang = C#
    %>

    And at last the code file should be linked to the source of the new .cs file created and inheriting the Default class.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Developing .cs from .aspx

    An alternative can be as differentiating the C# files and html source code with different files. This is quite a difficult task in order to code for the extraction of .cs file from .aspx that is it is very complicated process to make the .aspx to execute in C3 language as you need to differently specify and allocate the file pages wit HTML and then to create a .cs file for locating it. This is hectic. It would be better that you make it differently the C# file and html file.

Similar Threads

  1. What do you mean by track.aspx on Apple Safari?
    By Ro-Man in forum Technology & Internet
    Replies: 5
    Last Post: 17-06-2011, 10:33 AM
  2. Can Any one Help me to Publish a aspx code to website
    By aska121 in forum Technology & Internet
    Replies: 1
    Last Post: 18-11-2010, 05:07 PM
  3. Can’t delete trojan aspx.js.win32
    By Mohegan in forum Networking & Security
    Replies: 3
    Last Post: 20-07-2010, 06:22 AM
  4. How to open file with extension ASPX
    By Centaurs in forum Software Development
    Replies: 5
    Last Post: 01-04-2010, 09:01 AM
  5. How to convert .aspx to pdf
    By Bassus in forum Software Development
    Replies: 3
    Last Post: 18-03-2009, 04:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,248,539.09349 seconds with 17 queries