Hi,
I am creating a HTML output from Render Tool but we want to have a .ASPX file form it.
Do we have any way to create .ASPX file?
Thanks,
Yash
There is no way to tell the Render tool to change the extension the output file. The extension on the file name is how the Render tool determines what type of file to output. .html files are rendered as HTML, .xslx are rendered as Excel files, etc. You can use a Block Until Done Followed by a Run Command tool to rename the file after it's output.
In any event, renaming an html file to an aspx doesn't make it a true aspx file. An aspx file is a combination of html and code as in the following example
<!-- directives -->
<% @Page Language="C#" %>
<!-- code section -->
<script runat="server">
private void convertoupper(object sender, EventArgs e)
{
string str = mytext.Value;
changed_text.InnerHtml = str.ToUpper();
}
</script>
<!-- Layout -->
<html>
<head>
<title> Change to Upper Case </title>
</head>
<body>
<h3> Conversion to Upper Case </h3>
<form runat="server">
<input runat="server" id="mytext" type="text" />
<input runat="server" id="button1" type="submit" value="Enter..." OnServerClick="convertoupper"/>
<hr />
<h3> Results: </h3>
<span runat="server" id="changed_text" />
</form>
</body>
</html>
While it would be possible to generate this file in Alteryx and then output it to an aspx file by using an Output Data tool configured to write as .csv with a .aspx extension, it's a lot easier to the get the latest community edition of Visual studio and build your web site there
Dan