ITKeyword,专注技术干货聚合推荐

注册 | 登录

jquery - Server side ASP in an HTA

itPublisher 分享于

2021腾讯云限时秒杀,爆款1核2G云服务器298元/3年!(领取2860元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1062

2021阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址https://www.aliyun.com/minisite/goods

推荐:asp.net get window width/height in server side

Step 1: put a hidden field on asp.net page  <asp:HiddenField ID="width" runat="server" /><asp:HiddenField ID="height" runat="server" /> Step 2: use j

up vote 0 down vote favorite I am very new to HTAs, but quite familiar with websites, javascript, ASP etc. I have an HTA which needs to read some configuration files on the disk to get its display data etc. I have written the vbscript to do this and can execute it within a tag in the HTA. This is fine and works nicely. However, given my javascript and, more recently, jQuery background, I am a lot more comfortable with DOM manipulation etc in jQuery that I am in VBScript. I thought I would be clever and use jQuery.ajax to get my config files processed and return JSON data to the main page. However, when I get the returned data from the .get call, its just the .asp code rather than the data it is supposed to output. It looks very much like the ASP tags are not being recognised, hence the code is not running. I've kind if confirmed this by putting a 'response.Write' statement inside '<%..%>' tags in the main code and observed nothing is output. So, am I right in thinking I can't execute server side ASP from an HTA? Thanks, Al. jquery asp-classic hta
  |

推荐:Asp.net + jQuery + jQuery pager plugin + Sql Server 利用Ajax实现真正的无刷新分页浏览

Asp.net + jQuery + jQuery pager plugin + Sql Server 利用Ajax实现真正的无刷新分页浏览,彻底不依赖于页面后台的支持,直接利用ajax进行异步取得数据。 学习


  this question asked Jun 29 '12 at 14:32 Al Henderson 67 1 8

 |  1 Answers

up vote 0 down vote ---Accepted---Accepted---Accepted---

Yes you are right ASP is server-side technology host by IIS. On the client side Internet Explorer is used to host a HTA. IE does not support <% %> nor any of the ASP objects like Response. The equivalent to Response.Write in a HTA is document.write.
  |
  this answer answered Jun 30 '12 at 12:41 AnthonyWJones 151k 24 206 278      Thanks Anthony - make sense now. Had forgotten that the ASP side was IIS rather than IE. –  Al Henderson Jul 2 '12 at 8:04



 | 

推荐:ASP.NET MVC 3: Server-Side Comments with Razor

[转自]http://weblogs.asp.net/scottgu/archive/2010/11/12/asp-net-mvc-3-server-side-comments-with-razor.aspx   ASP.NET MVC 3: Server-Side Comments with

up vote 0 down vote favorite I am very new to HTAs, but quite familiar with websites, javascript, ASP etc. I have an HTA which needs to read some configuration files on the disk to

相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。