如何使用asp.net或vb.net从HTM页面检索数据 [英] How to retrieve data from HTM Page using asp.net or vb.net

查看:124
本文介绍了如何使用asp.net或vb.net从HTM页面检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

对你们来说可能是一个简单的问题,所以请忍受我.我有一个asp.net页面,其中实际上包含一个.htm页面,以便加载GPS位置.我想从此嵌入式页面或实时网页中获取经度和纬度,无论如何传递给运行在该按钮后面的vb代码中的变量,然后将其传递到SQL数据库.

有一个我不知道的简单函数吗?我已经做了很多谷歌搜索,但是我还没有想出一个好的解决方案来从HTM页面中获取信息并将其传递给我的变量.

在此先感谢!

Hey all,

Probably a simple question for you guys so bear with me. I have an asp.net page where I''m including a .htm page virtually in order to load a GPS location. I''d like to get the latitude and longitude from this embedded page or from a live webpage, it doesn''t matter how and pass to a variable in my vb code running behind a button the page to post to a SQL database.

Is there a simple function that I''m not aware of that does this? I''ve done a bunch of googling but I haven''t come up with a good solution yet to grab the info from the HTM page and pass it through to my variable.

Thanks in advance!

推荐答案

hi--

例如,以下是您的页面:

> gpsPage.aspx-在此页面中放入以下代码行
hi--

for example the following are your page:

> gpsPage.aspx -- in this page put this line of code
<!--#include file="gpsPage.htm"-->


-这样,内容将为.htm,但后面的代码仍将位于gpsPage.aspx.vb中.

> gpsPage.aspx.vb
> gpsPage.htm

希望对您有所帮助.



谢谢


-- this way the content will be the .htm but the code behind will still be in the gpsPage.aspx.vb.

> gpsPage.aspx.vb
> gpsPage.htm

hope this helps.



Thanks,


这篇关于如何使用asp.net或vb.net从HTM页面检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆