Showing posts with label access. Show all posts
Showing posts with label access. Show all posts

Wednesday, March 28, 2012

The best way to archieve this? Help please

I have an ASP.NET application running on one win2k server and it needs to
access a shared folder in other server. To access this shared folder, I have
to login with user name and password.

I used IWshRuntimeLibrary.WshNetwork() and mapped the folder to a network
drive (Y:\) in the page_load. Then I disconnected this drive in the
page_unload. I got it works but not stable. Sometimes it fails to disconnect
and to map.

thanks"dbui" <nnngoan@dotnet.itags.org.hotmail.com> wrote in
news:u6zLB9pbEHA.1408@dotnet.itags.org.TK2MSFTNGP12.phx.gbl:

> I used IWshRuntimeLibrary.WshNetwork() and mapped the folder to a
> network drive (Y:\) in the page_load. Then I disconnected this drive
> in the page_unload. I got it works but not stable. Sometimes it fails
> to disconnect and to map.

How about impersonating a user with access to that drive?

http://support.microsoft.com/defaul...b;EN-US;Q306158

--
Lucas Tam (REMOVEnntp@dotnet.itags.org.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
thanks for the link.

"Lucas Tam" <REMOVEnntp@dotnet.itags.org.rogers.com> wrote in message
news:Xns952CB1601E166nntprogerscom@dotnet.itags.org.140.99.99.130.. .
> "dbui" <nnngoan@dotnet.itags.org.hotmail.com> wrote in
> news:u6zLB9pbEHA.1408@dotnet.itags.org.TK2MSFTNGP12.phx.gbl:
> > I used IWshRuntimeLibrary.WshNetwork() and mapped the folder to a
> > network drive (Y:\) in the page_load. Then I disconnected this drive
> > in the page_unload. I got it works but not stable. Sometimes it fails
> > to disconnect and to map.
> How about impersonating a user with access to that drive?
> http://support.microsoft.com/defaul...b;EN-US;Q306158
> --
> Lucas Tam (REMOVEnntp@dotnet.itags.org.rogers.com)
> Please delete "REMOVE" from the e-mail address when replying.
> http://members.ebay.com/aboutme/coolspot18/

The best way to archieve this? Help please

I have an ASP.NET application running on one win2k server and it needs to
access a shared folder in other server. To access this shared folder, I have
to login with user name and password.
I used IWshRuntimeLibrary.WshNetwork() and mapped the folder to a network
drive (Y:\) in the page_load. Then I disconnected this drive in the
page_unload. I got it works but not stable. Sometimes it fails to disconnect
and to map.
thanks"dbui" <nnngoan@dotnet.itags.org.hotmail.com> wrote in
news:u6zLB9pbEHA.1408@dotnet.itags.org.TK2MSFTNGP12.phx.gbl:

> I used IWshRuntimeLibrary.WshNetwork() and mapped the folder to a
> network drive (Y:\) in the page_load. Then I disconnected this drive
> in the page_unload. I got it works but not stable. Sometimes it fails
> to disconnect and to map.
>
How about impersonating a user with access to that drive?
http://support.microsoft.com/defaul...b;EN-US;Q306158
Lucas Tam (REMOVEnntp@dotnet.itags.org.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
[url]http://members.ebay.com/aboutme/spot18/[/url]
thanks for the link.
"Lucas Tam" <REMOVEnntp@dotnet.itags.org.rogers.com> wrote in message
news:Xns952CB1601E166nntprogerscom@dotnet.itags.org.140.99.99.130...
> "dbui" <nnngoan@dotnet.itags.org.hotmail.com> wrote in
> news:u6zLB9pbEHA.1408@dotnet.itags.org.TK2MSFTNGP12.phx.gbl:
>
> How about impersonating a user with access to that drive?
> http://support.microsoft.com/defaul...b;EN-US;Q306158
> --
> Lucas Tam (REMOVEnntp@dotnet.itags.org.rogers.com)
> Please delete "REMOVE" from the e-mail address when replying.
> [url]http://members.ebay.com/aboutme/spot18/[/url]

the best way to have some information accessable to all pages?

hello all,
I need to have access to some details in all my pages eg a Person object.
what is the best way to do it?
store in session object? or pass them through the QueryString or Application
variables etc?
what is the best and efficient way?It really depends on the nature of the application. Overall, I am not fond o
f
putting everything in hidden tags so it can travel on the Query String. It
potentially opens security holes.
Where you store information depends on the nature of the information.
If it is linked to the user, cookies are an option. For security, you can
send the user's token instead, or link it to the session ID. This will
require grabbing the information with each return, but it is safer than
storing in the cookie.
For session specific information, you can use the Session object as a cache.
You can also use the cache manager functionality of ASP.NET.
For page specific information (like the Person object is the person being
worked on, not the person using the app), you can use ViewState.
As I stated at the beginning, it really depends on the nature of the
application.
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"Annie" wrote:

> hello all,
> I need to have access to some details in all my pages eg a Person object.
> what is the best way to do it?
> store in session object? or pass them through the QueryString or Applicati
on
> variables etc?
> what is the best and efficient way?
>
>

the best way to have some information accessable to all pages?

hello all,

I need to have access to some details in all my pages eg a Person object.

what is the best way to do it?
store in session object? or pass them through the QueryString or Application
variables etc?

what is the best and efficient way?It really depends on the nature of the application. Overall, I am not fond of
putting everything in hidden tags so it can travel on the Query String. It
potentially opens security holes.

Where you store information depends on the nature of the information.

If it is linked to the user, cookies are an option. For security, you can
send the user's token instead, or link it to the session ID. This will
require grabbing the information with each return, but it is safer than
storing in the cookie.

For session specific information, you can use the Session object as a cache.
You can also use the cache manager functionality of ASP.NET.

For page specific information (like the Person object is the person being
worked on, not the person using the app), you can use ViewState.

As I stated at the beginning, it really depends on the nature of the
application.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Annie" wrote:

> hello all,
> I need to have access to some details in all my pages eg a Person object.
> what is the best way to do it?
> store in session object? or pass them through the QueryString or Application
> variables etc?
> what is the best and efficient way?
>

Monday, March 26, 2012

The ConnectionString property has not been initialized

Hi, I am trying to run some code I got off from the Quickstart tutorial for connecting to an Access database. I have been attempting several different methods from several different tutorials, none of which have been successful.

Here is the code that I have used which gave me the error: "The ConnectionString property has not been initialized" The complete error message is posted below the code.


<%@dotnet.itags.org. Import Namespace="System.Data" %>
<%@dotnet.itags.org. Import Namespace="System.Data.SqlClient" %
<html>
<script language="VB" runat="server"
Sub Page_Load(Sender As Object, E As EventArgs)

Dim DS As DataSet
Dim MyConnection As SqlConnection
Dim MyCommand As SqlDataAdapter

MyConnection = New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings("PubsString"))
MyCommand = New SqlDataAdapter("select * from Release_of_Information", MyConnection)

DS = new DataSet()
MyCommand.Fill(ds, "Release_of_Information")

MyDataGrid.DataSource=ds.Tables("Release_of_Information").DefaultView
MyDataGrid.DataBind()
End Sub

</script

Below is the complete error message.

I made a change to the web.cnfg file, as is stated below, and all that I got was even less functionality (okay, no functionality) from the webserver.

any ideas ?

The ConnectionString property has not been initialized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@dotnet.itags.org. Page Language="C#" Debug="true" %
or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configurationTry adding a Trace.Write (or a response.write) to see what your application sees as the configuration string - like:
Trace.Write("Config = " & ConfigurationSettings.AppSettings("PubsString"))

see what's really happening there - - it looks like, at first glance, that it merely doesn't find a viable connection string there.
Check out this link:

http://www.connectionstrings.com/
With my code now looking like this:

<configuration>
<appSettings>
<add key="PubsString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\C:\mikep\Career_Start\Career_Start.mdb;User Id=admin;Password=;" />
</appSettings>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration
<%@dotnet.itags.org. Import Namespace="System.Data" %>
<%@dotnet.itags.org. Import Namespace="System.Data.SqlClient" %
<html>
<script language="VB" runat="server"
Sub Page_Load(Sender As Object, E As EventArgs)
Trace.Write("Config = " & ConfigurationSettings.AppSettings("PubsString"))
Dim DS As DataSet
Dim MyConnection As SqlConnection
Dim MyCommand As SqlDataAdapter

MyConnection = New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings("PubsString"))
MyCommand = New SqlDataAdapter("select * from Release_of_Information", MyConnection)

DS = new DataSet()
MyCommand.Fill(ds, "Release_of_Information")

MyDataGrid.DataSource=ds.Tables("Release_of_Information").DefaultView
MyDataGrid.DataBind()
End Sub

</script
<body

I am still getting "The ConnectionString property has not been initialized" error message.

I will be glad if I can get beyond this...
your code in web.config looks fine to me just check that you are using the same username and password as you have specified.

Also try changing this the following line:


MyConnection = New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings("PubsString"))

TO

string ConnectionString = (string) ConfigurationSettings.AppSettings["PubsString"];
SqlConnection myConnection = new SqlConnection(ConnectionString);

The current configuration system does not support user-scoped settings

I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".
I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!
I can't seem to find a handle on what to do about this! Can somebody
help me!
Thanks so very much!
SteveThe solution was posted by Peter Bromberg a few days ago :
http://groups.google.com/group/micr...d338d6f8be72265
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Steve Kershaw" <steve_kershaw@dotnet.itags.org.yahoo.com> wrote in message
news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegroups.com...
> I have a problem in which I'm trying to access a method in a .DLL from
> an ASP.Net web page (written in C#). I keep on getting the error "The
> current configuration system does not support user-scoped settings".
> I've done some research into this problem and I've found out that the
> solution has something to do with the ConfigurationManager.AppSettings
> for settings, or Profiles for per-user configutation in ASP.Net 2.0.
> However, I don't know where to find the ConfigurationManager! I've
> looked in Website/ASP.Net configuration and Tools/Options +
> Environment and I can't find it!
> I can't seem to find a handle on what to do about this! Can somebody
> help me!
> Thanks so very much!
> Steve
>
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:
> The solution was posted by Peter Bromberg a few days ago :
> http://groups.google.com/group/micr...amework.aspn...
> Juan T. Llibre, asp.net MVP
> asp.net faq :http://asp.net.do/faq/
> foros de asp.net, en espa=F1ol :http://asp.net.do/foros/
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"Steve Kershaw" <steve_kers...@dotnet.itags.org.yahoo.com> =
wrote in message
> news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegroups.com...
>
>
>
>
>
>
>
> - Show quoted text -
Thanks for your help.
But where is this posting? I searched clear back to the beginning of
March for Peter Bromberg's posting on this but I just can't see it.
Can you give me a link?
Thanks again.
Steve
re:
!>> The solution was posted by Peter Bromberg a few days ago :
!> But where is this posting? I searched clear back to the beginning of
!> March for Peter Bromberg's posting on this but I just can't see it.
!> Can you give me a link?
Oops, I meant "a few minutes ago".
I've warned my fingers not to post on their own any more.
<chuckle>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Steve Kershaw" <steve_kershaw@dotnet.itags.org.yahoo.com> wrote in message
news:1176324797.391045.45160@dotnet.itags.org.n76g2000hsh.googlegroups.com...
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:
> The solution was posted by Peter Bromberg a few days ago :
> http://groups.google.com/group/micr...amework.aspn...
> Juan T. Llibre, asp.net MVP
> asp.net faq :http://asp.net.do/faq/
> foros de asp.net, en espaol :http://asp.net.do/foros/
> ==================================="Steve Kershaw" <steve_kers...@dotnet.itags.org.yahoo.co
m> wrote in message
> news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegroups.com...
>
>
>
>
>
>
>
> - Show quoted text -
Thanks for your help.
But where is this posting? I searched clear back to the beginning of
March for Peter Bromberg's posting on this but I just can't see it.
Can you give me a link?
Thanks again.
Steve

The current configuration system does not support user-scoped settings

I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".

I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!

I can't seem to find a handle on what to do about this! Can somebody
help me!

Thanks so very much!

SteveJust set a reference to the System.Configuration assembly and
ConfigurationManager will magically appear.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Steve Kershaw" wrote:

Quote:

Originally Posted by

>
I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".
>
I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!
>
I can't seem to find a handle on what to do about this! Can somebody
help me!
>
Thanks so very much!
>
Steve
>
>


On Apr 11, 2:04 pm, Peter Bromberg [C# MVP]
<pbromb...@dotnet.itags.org.yahoo.yabbadabbadoo.comwrote:

Quote:

Originally Posted by

Just set a reference to the System.Configuration assembly and
ConfigurationManager will magically appear.
Peter
>
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
>
>
>
"Steve Kershaw" wrote:
>

Quote:

Originally Posted by

I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".


>

Quote:

Originally Posted by

I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!


>

Quote:

Originally Posted by

I can't seem to find a handle on what to do about this! Can somebody
help me!


>

Quote:

Originally Posted by

Thanks so very much!


>

Quote:

Originally Posted by

Steve- Hide quoted text -


>
- Show quoted text -


Thanks so much for your help!

OK,
So I now have the Configuration Manager, what do I do?
I see "Project", "Configuration" (Debug), "Platform" (.NET) and
"Build" columns but no AppSettings seems to be available. Help!!!
The solution was posted by Peter Bromberg a few days ago :

http://groups.google.com/group/micr...d338d6f8be72265
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Steve Kershaw" <steve_kershaw@dotnet.itags.org.yahoo.comwrote in message
news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegr oups.com...

Quote:

Originally Posted by

>
I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".
>
I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!
>
I can't seem to find a handle on what to do about this! Can somebody
help me!
>
Thanks so very much!
>
Steve
>


re:
!>The solution was posted by Peter Bromberg a few days ago :

!But where is this posting? I searched clear back to the beginning of
!March for Peter Bromberg's posting on this but I just can't see it.
!Can you give me a link?

Oops, I meant "a few minutes ago".

I've warned my fingers not to post on their own any more.

<chuckle>

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Steve Kershaw" <steve_kershaw@dotnet.itags.org.yahoo.comwrote in message
news:1176324797.391045.45160@dotnet.itags.org.n76g2000hsh.googlegro ups.com...
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:

Quote:

Originally Posted by

The solution was posted by Peter Bromberg a few days ago :
>
http://groups.google.com/group/micr...framework.aspn...
>
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espaol :http://asp.net.do/foros/
==================================="Steve Kershaw" <steve_kers...@dotnet.itags.org.yahoo.comwrote in message
>
news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegr oups.com...
>
>
>
>
>

Quote:

Originally Posted by

I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".


>

Quote:

Originally Posted by

I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!


>

Quote:

Originally Posted by

I can't seem to find a handle on what to do about this! Can somebody
help me!


>

Quote:

Originally Posted by

Thanks so very much!


>

Quote:

Originally Posted by

Steve- Hide quoted text -


>
- Show quoted text -


Thanks for your help.

But where is this posting? I searched clear back to the beginning of
March for Peter Bromberg's posting on this but I just can't see it.
Can you give me a link?

Thanks again.
Steve
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:

Quote:

Originally Posted by

The solution was posted by Peter Bromberg a few days ago :
>
http://groups.google.com/group/micr...framework.aspn...
>
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espaol :http://asp.net.do/foros/
==================================="Steve Kershaw" <steve_kers...@dotnet.itags.org.yahoo.comwrote in message
>
news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegr oups.com...
>
>
>
>
>

Quote:

Originally Posted by

I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".


>

Quote:

Originally Posted by

I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!


>

Quote:

Originally Posted by

I can't seem to find a handle on what to do about this! Can somebody
help me!


>

Quote:

Originally Posted by

Thanks so very much!


>

Quote:

Originally Posted by

Steve- Hide quoted text -


>
- Show quoted text -


Thanks for your help.

But where is this posting? I searched clear back to the beginning of
March for Peter Bromberg's posting on this but I just can't see it.
Can you give me a link?

Thanks again.
Steve
Steve,

ConfigurationManager.AppSettings represents the NameValue collection of the
entries you have in your <appSettingsweb.config (or xx.exe.config)
configuration file. You can access individual elements with:
ConfigurationManager.AppSettings["connectionString"]

to get the string value.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Steve Kershaw" wrote:

Quote:

Originally Posted by

On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:

Quote:

Originally Posted by

The solution was posted by Peter Bromberg a few days ago :

http://groups.google.com/group/micr...framework.aspn...

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espa?ol :http://asp.net.do/foros/
==================================="Steve Kershaw" <steve_kers...@dotnet.itags.org.yahoo.comwrote in message

news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegr oups.com...

Quote:

Originally Posted by

I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".


Quote:

Originally Posted by

I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!


Quote:

Originally Posted by

I can't seem to find a handle on what to do about this! Can somebody
help me!


Quote:

Originally Posted by

Thanks so very much!


Quote:

Originally Posted by

Steve- Hide quoted text -


- Show quoted text -


>
Thanks for your help.
>
But where is this posting? I searched clear back to the beginning of
March for Peter Bromberg's posting on this but I just can't see it.
Can you give me a link?
>
Thanks again.
Steve
>
>

Thursday, March 22, 2012

The extreme basics

I am very new to this web development thing and have just started to play with Frontpage 2000. I have a an Access 2000 database which I want to use in conjunction with a web front end (to be constructed in Frontpage). There is no server involved, its just a project on my home desktop computer running either XP Home or ME.

I want to be able to add, delete, amend and query the data in the database from the web page, and understand that I need to use ASPs. I have created an ASP in Frontpage which has a database region within it connected to my local database (I set up an ODBC connection and selected that when choosing the database rather than selecting the mdb directly).

Basically I am at a loss. When viewing the web page the field headings appear, but no data. I gather from reading help files, etc that this is because I need some additional software to make it all work. If anyone can give me a few pointers as to how to get this to work, please let me know.

Best regardsyou HAVE to have a server because ASP is a "server-side" technology. you need IIS or Personal Web Server to run classic ASP, and IIS or Cassini to run ASP.NET. also, if you're not using ASP.NET (which is what it sounds like) please visit a forum for classic ASP.

ASPMessageBoard
You also might want to look at the Web Matrix tutorials - we have some dataBase examples you might find useful.

HTH

JD

http://www.asp.net/webmatrix/guidedtour/section2/newconn.aspx

Tuesday, March 13, 2012

The HTTP verb POST used to access path /WebSite11/HTMLPage.htm is not allowed.]

I got that error message when I clicked a Link Button that had it's PostBackUrl set to HTMLPage.htm.

Any insights?

Thanks,

Dave

Not sure about the error, but if you want to post the data to a normal html-page. Why not use a simple html-submit-button?

<input type="submit" value="Post My Data!" />

Whouldn't that work for you?