.aspx.vb代码语法 [英] .aspx.vb code syntax

查看:70
本文介绍了.aspx.vb代码语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在代码中创建一个OLE DB连接,并且想知道是否有人

可以识别语法错误在这里是什么

粘贴(我尝试将& _放在第一行的末尾,而

只会带来其他错误):


新的OleDbConnection(" Provider = Microsoft.Jet.OLEDB.4.0;数据

Source ="& Server.MapPath(〜/ App_Data / Lowes.mdb)&";"& _

初始目录=资产;综合安全= SSPI)


谢谢!!

I''m making a OLE DB connection in code and was wondering if anyone
could identify what the syntax errors would be in this just as it is
pasted (I tried putting & _ at the end of the first line and that
only brought up other errors):

New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=" & Server.MapPath(~/App_Data/Lowes.mdb) & ";" & _
"Initial Catalog=Assets;Integrated Security=SSPI")

Thanks!!

推荐答案

你看过connectionstrings.com了吗?它是一个很棒的书签。

彼得

-

递归:见递归

网站: http://www.eggheadcafe.com

unBlog: http://petesbloggerama.blogspot.com

BlogMetaFinder: http://www.blogmetafinder.com


slinky ;写道:
Have you looked at connectionstrings.com? Its a good url to bookmark.
Peter
--
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"slinky" wrote:

我在代码中建立一个OLE DB连接,并想知道是否有人

可以识别语法错误是什么在这个就像它是

粘贴(我尝试在第一行的末尾放置& _并且

只会带来其他错误):


新的OleDbConnection(" Provider = Microsoft.Jet.OLEDB.4.0; Data

Source ="& Server.MapPath(〜/ App_Data / Lowes.mdb) &" ;;"& _

" Initial Catalog = Assets; Integrated Security = SSPI")


谢谢!!

I''m making a OLE DB connection in code and was wondering if anyone
could identify what the syntax errors would be in this just as it is
pasted (I tried putting & _ at the end of the first line and that
only brought up other errors):

New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=" & Server.MapPath(~/App_Data/Lowes.mdb) & ";" & _
"Initial Catalog=Assets;Integrated Security=SSPI")

Thanks!!


我查看了connectionstrings.com但它没有具体的

语法可能有什么问题......谢谢


8月9日上午11点20分,Peter Bromberg [C#MVP]

< pbromb ... @ yahoo.yohohhoandabottleofrum.comwrote:
I looked on connectionstrings.com but it did not have specifics for
what could be wrong with the syntax... thanks though

On Aug 9, 11:20 am, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yohohhoandabottleofrum.comwrote :

有哟你看看connectionstrings.com?它是一个很棒的书签。

彼得

-

递归:见递归

网站: http://www.eggheadcafe.com

unBlog: http://petesbloggerama.blogspot.com

BlogMetaFinder: http://www.blogmetafinder.com


slinky ;写道:
Have you looked at connectionstrings.com? Its a good url to bookmark.
Peter
--
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"slinky" wrote:

我在代码中建立一个OLE DB连接,并想知道是否有人

可以识别语法错误是什么就像它是粘贴的那样(我试着在第一行的末尾放置& _并且

只会带来其他错误):
I''m making a OLE DB connection in code and was wondering if anyone
could identify what the syntax errors would be in this just as it is
pasted (I tried putting & _ at the end of the first line and that
only brought up other errors):


新OleDbConnection(" Provider = Microsoft.Jet.OLEDB.4.0; Data

Source ="& Server.MapPath( 〜/ App_Data / Lowes.mdb)&" ;;"& _

" Initial Catalog = Assets; Integrated Security = SSPI")
New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=" & Server.MapPath(~/App_Data/Lowes.mdb) & ";" & _
"Initial Catalog=Assets;Integrated Security=SSPI")


谢谢!! - 隐藏引用的文字 -
Thanks!!- Hide quoted text -



- 显示引用的文字 -


- Show quoted text -



尝试删除所有延续字符,看看它是否全部工作


David Wier
http://aspnet101.com
http:// iWritePro .com - 点击PDF,将.doc / .rtf / .txt转换为HTML,没有

臃肿的加价


slinky < ca *************** @ yahoo.com写了留言

新闻:11 *************** *******@l70g2000hse.googlegr oups.com ...
try removing all continuation characters and see if it all works

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup

"slinky" <ca***************@yahoo.comwrote in message
news:11**********************@l70g2000hse.googlegr oups.com...

我正在代码中建立一个OLE DB连接,并想知道是否有人

可以识别出这里的语法错误,因为它是

粘贴(我试着在第一行的末尾放置& _和

只带来其他错误):


新OleDbConnection(" Provider = Microsoft.Jet.OLEDB.4.0; Data

Source =" ;& Server.MapPath(〜/ App_Data / Lowes.mdb)&" ;;"& _

" Initial Catalog = Assets; Integrated Security = SSPI")


谢谢!!
I''m making a OLE DB connection in code and was wondering if anyone
could identify what the syntax errors would be in this just as it is
pasted (I tried putting & _ at the end of the first line and that
only brought up other errors):

New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=" & Server.MapPath(~/App_Data/Lowes.mdb) & ";" & _
"Initial Catalog=Assets;Integrated Security=SSPI")

Thanks!!



这篇关于.aspx.vb代码语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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