WebSite X5Help Center

 
Jiří K.
Jiří K.
User

Asp script to page  en

Author: Jiří K.
Visited 72, Followers 1, Shared 0  

Hi, how do I insert  * .aspx page into x5 ?

I have www ofline on my computer of aspx files - all is run in IIS, now I want move, repair, to x5.

I can search for aspx file, where will I put the individual parts (or all text off *.aspx) ?
If I set the "conversion" page as asp in Expert, and inserted the entire code from the * .aspx file, then the "conversion" page does not run on the IIS server. Page Language = "C #" Debug = "true" ... "

---------------------

<%@ Page Language="C#" Debug="true" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<%@ import Namespace="System.Data.OleDb" %>
<script runat="server">

void Page_Load(object sender, EventArgs e) {
OleDbConnection oracleConn = new OleDbConnection();

..... next .......

</script>
<html>
<head>

..... next .......

Posted on the
3 ANSWERS
Incomedia
Stefano G.
Incomedia

Hello Jiří 

Custom ASP code can be inserted into the HTML Object that you can place almost anywhere on the page.

At the same time, in Step 3 -> Map -> Properties per each page, you must make sure to change the extension of the page to .asp or the code won't work

This is all that is needed to get the code to work. Should it still not work, you will need to review the ASP code itself which might contain the issue and that is why it wouldn't run on the configured pages

I remain available here

Thank you

Stefano

Read more
Posted on the from Stefano G.
Jiří K.
Jiří K.
User
Author

Ahoj Stefano, děkuji.

Dělám vše, ale nespouštím asp.

Pokud v TEXTU vytvořím hypertextový odkaz na soubor * .aspx, pak se otevře v showboxu, novém okně, .. dobře.

Problém je pouze při vkládání asp kódu do html. Více příloh, pokud to pomůže.
Děkuji za vaší pomoc.

Jura

Read more
Posted on the from Jiří K.
Jiří K.
Jiří K.
User
Author

Hi Stefan, thank you.

I do everything but don't run asp.

If I create a hypertext link to the * .aspx file in TEXT, then it will open in a showbox, a new window, .. well.

The problem is only when pasting asp code into html. More attachments if that helps.
Thank you for your help.

Jura

Read more
Posted on the from Jiří K.