Hi I am a beginner programmer and I would like to know how I can create a new page(.aspx) usong a button.

So What I am actually asking is:

I want to have a page that you can enter your information in. eg name
Then if you press submit it wll automatically create a new page called [name].aspx this must then be added to a folder called new in the website.

Can someone please help / assist me with this matter

Thanks

Recommended Answers

All 5 Replies

Hi what can I then do because I want to let the website automatically create a page

Read and learn about ashx/handlers. See post #2.

Hi I program in visual basic can you please convert this file or give me a place where I can thanks:

public void ProcessRequest (HttpContext context) {
        // Comment out these lines first:
        // context.Response.ContentType = "text/plain";
        // context.Response.Write("Hello World");

        context.Response.ContentType = "image/png";
        context.Response.WriteFile("~/Flower1.png");
    }

    public bool IsReusable {
        get {
            return false;
        }
    }
}

Hi thanks I got a code converter thanks for your help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.