473,545 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

is aspnet what i need here?

Bob
Hallo,

I have to make a web application in Javascript/ASP for tenniscourt
reservation (based on Access database). I would like to do everything with
one page, because the user must be able to change his day, hour or
tenniscourt choice before really reserving it . I tried like this:

The first SELECT contains the date (next 30 days) and is filled dynamically.
No problem.
When the date is chosen (by clicking), the second SELECT must appears with
the right opening hours (monday = 8 -18h, friday=8-16h etc ..). So i need a
query like "select mondayhour, tuesdayhour ... from daytable". This is no
problem because the code can be placed between <% %> just below the
first SELECT (set objdc = Server.CreateOb ject("ADODB.Con nection" etc ..). No
form needed because no variable to pass to ASP.

My problem is when several tests must be done which require passing
variables to ASP.
Imagine that you can only reserve 2hours in a day. I need a query "select
count(hour) as tothour from reservation where day='" & dat & "' group by
logon having logon='" & login & "'" to check it. So i have to pass 'dat'
(chosen date) and 'login' (name of user) to ASP via a form that i submit to
this ASP file. The value of tothour can be returned by <%=tothour%> to the
client script.
Imagine you can maximum reserve 15 h in 30 days. Again a query "select
logon, count(hour) as tothour2 from reservation where cdate(day)> date()
group by logon having logon='" & login & "'" . Again a form to pass 'logon'
and submit it to itself

If tothour <2, then the third SELECT must appear with the tenniscourt
numbers which are still available. I need another query like "select
tennisnr from reservation where cdate(day)='" & dat & "' and hour=" & hr
(hr=chosen hour). I need to pass "dat" and 'hr" to ASP. So i submit another
form to ASP.
Etc ...

Is this way the right way to work? Does this not become very complicated and
confusing, also because when submitting the second form, the variable
passing through the first form are lost.
Can ASP.net do more?

Thanks for any advice.
Bob

Nov 18 '05 #1
4 1414
If I was doing this in asp.net, I'd use CustomValidator s for all these
"rules". As far as complicated SQL queries based on their current
selections, asp.net isn't going to help you much here, sql is sql..

"Bob" <sd***@no.az> wrote in message
news:u8******** ******@TK2MSFTN GP10.phx.gbl...
Hallo,

I have to make a web application in Javascript/ASP for tenniscourt
reservation (based on Access database). I would like to do everything with
one page, because the user must be able to change his day, hour or
tenniscourt choice before really reserving it . I tried like this:

The first SELECT contains the date (next 30 days) and is filled dynamically. No problem.
When the date is chosen (by clicking), the second SELECT must appears with
the right opening hours (monday = 8 -18h, friday=8-16h etc ..). So i need a query like "select mondayhour, tuesdayhour ... from daytable". This is no
problem because the code can be placed between <% %> just below the
first SELECT (set objdc = Server.CreateOb ject("ADODB.Con nection" etc ..). No form needed because no variable to pass to ASP.

My problem is when several tests must be done which require passing
variables to ASP.
Imagine that you can only reserve 2hours in a day. I need a query "select
count(hour) as tothour from reservation where day='" & dat & "' group by
logon having logon='" & login & "'" to check it. So i have to pass 'dat'
(chosen date) and 'login' (name of user) to ASP via a form that i submit to this ASP file. The value of tothour can be returned by <%=tothour%> to the
client script.
Imagine you can maximum reserve 15 h in 30 days. Again a query "select
logon, count(hour) as tothour2 from reservation where cdate(day)> date()
group by logon having logon='" & login & "'" . Again a form to pass 'logon' and submit it to itself

If tothour <2, then the third SELECT must appear with the tenniscourt
numbers which are still available. I need another query like "select
tennisnr from reservation where cdate(day)='" & dat & "' and hour=" & hr
(hr=chosen hour). I need to pass "dat" and 'hr" to ASP. So i submit another form to ASP.
Etc ...

Is this way the right way to work? Does this not become very complicated and confusing, also because when submitting the second form, the variable
passing through the first form are lost.
Can ASP.net do more?

Thanks for any advice.
Bob

Nov 18 '05 #2
The problem with custom validator controls is that they are quite difficult
to program them the way you want.

It seems at first read, that a large part of your question concerns how to
get the data that you are actually interested in.

Once you have the data you need, it is relatively easy to display it anyway
you like. I would go as how to get your data in the Access newsgroup, then
come back here if you need to

Simon
Nov 18 '05 #3
> Is this way the right way to work? Does this not become very complicated
and
confusing, also because when submitting the second form, the variable
passing through the first form are lost.
Can ASP.net do more?
ASP and ASP.Net both do essentially the same thing in 2 different ways. They
handle HTTP Requests for certain types of documents (.asp or .aspx), and
return HTML documents. ASP is procedural in nature. ASP.Net is
object-oriented. ASP requires COM to do the heavy lifting. ASP.Net does not.

Your'e still working in a stateless environment (HTTP). Each model handles
this in a different way. And you still have a lot of business logic to
write.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Bob" <sd***@no.az> wrote in message
news:u8******** ******@TK2MSFTN GP10.phx.gbl... Hallo,

I have to make a web application in Javascript/ASP for tenniscourt
reservation (based on Access database). I would like to do everything with
one page, because the user must be able to change his day, hour or
tenniscourt choice before really reserving it . I tried like this:

The first SELECT contains the date (next 30 days) and is filled dynamically. No problem.
When the date is chosen (by clicking), the second SELECT must appears with
the right opening hours (monday = 8 -18h, friday=8-16h etc ..). So i need a query like "select mondayhour, tuesdayhour ... from daytable". This is no
problem because the code can be placed between <% %> just below the
first SELECT (set objdc = Server.CreateOb ject("ADODB.Con nection" etc ..). No form needed because no variable to pass to ASP.

My problem is when several tests must be done which require passing
variables to ASP.
Imagine that you can only reserve 2hours in a day. I need a query "select
count(hour) as tothour from reservation where day='" & dat & "' group by
logon having logon='" & login & "'" to check it. So i have to pass 'dat'
(chosen date) and 'login' (name of user) to ASP via a form that i submit to this ASP file. The value of tothour can be returned by <%=tothour%> to the
client script.
Imagine you can maximum reserve 15 h in 30 days. Again a query "select
logon, count(hour) as tothour2 from reservation where cdate(day)> date()
group by logon having logon='" & login & "'" . Again a form to pass 'logon' and submit it to itself

If tothour <2, then the third SELECT must appear with the tenniscourt
numbers which are still available. I need another query like "select
tennisnr from reservation where cdate(day)='" & dat & "' and hour=" & hr
(hr=chosen hour). I need to pass "dat" and 'hr" to ASP. So i submit another form to ASP.
Etc ...

Is this way the right way to work? Does this not become very complicated and confusing, also because when submitting the second form, the variable
passing through the first form are lost.
Can ASP.net do more?

Thanks for any advice.
Bob

Nov 18 '05 #4
> Is this way the right way to work? Does this not become very complicated
and
confusing, also because when submitting the second form, the variable
passing through the first form are lost.
Can ASP.net do more?
ASP and ASP.Net both do essentially the same thing in 2 different ways. They
handle HTTP Requests for certain types of documents (.asp or .aspx), and
return HTML documents. ASP is procedural in nature. ASP.Net is
object-oriented. ASP requires COM to do the heavy lifting. ASP.Net does not.

Your'e still working in a stateless environment (HTTP). Each model handles
this in a different way. And you still have a lot of business logic to
write.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Bob" <sd***@no.az> wrote in message
news:u8******** ******@TK2MSFTN GP10.phx.gbl... Hallo,

I have to make a web application in Javascript/ASP for tenniscourt
reservation (based on Access database). I would like to do everything with
one page, because the user must be able to change his day, hour or
tenniscourt choice before really reserving it . I tried like this:

The first SELECT contains the date (next 30 days) and is filled dynamically. No problem.
When the date is chosen (by clicking), the second SELECT must appears with
the right opening hours (monday = 8 -18h, friday=8-16h etc ..). So i need a query like "select mondayhour, tuesdayhour ... from daytable". This is no
problem because the code can be placed between <% %> just below the
first SELECT (set objdc = Server.CreateOb ject("ADODB.Con nection" etc ..). No form needed because no variable to pass to ASP.

My problem is when several tests must be done which require passing
variables to ASP.
Imagine that you can only reserve 2hours in a day. I need a query "select
count(hour) as tothour from reservation where day='" & dat & "' group by
logon having logon='" & login & "'" to check it. So i have to pass 'dat'
(chosen date) and 'login' (name of user) to ASP via a form that i submit to this ASP file. The value of tothour can be returned by <%=tothour%> to the
client script.
Imagine you can maximum reserve 15 h in 30 days. Again a query "select
logon, count(hour) as tothour2 from reservation where cdate(day)> date()
group by logon having logon='" & login & "'" . Again a form to pass 'logon' and submit it to itself

If tothour <2, then the third SELECT must appear with the tenniscourt
numbers which are still available. I need another query like "select
tennisnr from reservation where cdate(day)='" & dat & "' and hour=" & hr
(hr=chosen hour). I need to pass "dat" and 'hr" to ASP. So i submit another form to ASP.
Etc ...

Is this way the right way to work? Does this not become very complicated and confusing, also because when submitting the second form, the variable
passing through the first form are lost.
Can ASP.net do more?

Thanks for any advice.
Bob

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3273
by: Matt Calhoon | last post by:
Hi there, I have specified a aspnet user account to run all .net sites. This account needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat file). I have given the aspnet user Read and execute but the .bat will still not start. What specific permissions does this user need for other folders...
22
2255
by: Zeng | last post by:
Hi, I'm running ClrProfiler for the first time to profile my web app, and it keeps getting stuck at this msg box: "Waiting for Asp.net to start common language runtime - this is the time to load your test page." even after I launched my app and aspnet_wp.exe is running. Do you know what I need to do to fix it? I also found some old post,...
6
1951
by: Matthew Wieder | last post by:
I have an ASPNET app that is running as the ASPNET machine user. It makes a call to the API CreateProcessWithLogonW. On Windows XP it executes without a problem, but on Windows 2000, I get an "Access is Denied" exception. I tried adding the ASPNET account to all the items in the "User Rights Assignment" list but to no avail. The only think...
3
7641
by: Harry Simpson | last post by:
Windows Server 2003 is supposed to include Framework 1.1 right. I don't have it here but have reports that the web is not running. The users say that the %COMPUTERNAME%\ASPNET user doesn't exist. Questions: 1. is this user replaced by the %COMPUTERNAME%\NETWORK SERVICE user in Windows 2003 Server (IIS6)? 2. if the ASPNET user still...
4
1817
by: Justin | last post by:
Hi All, Can the ASPNET user be deleted on an end user's machine that will run .NET applications? I heard someone say it was only needed on the developers machine. Sounded odd to me but I thought I'd ask. Cheers
3
5672
by: Doctor Who | last post by:
I am running a Windows 2003 Server w/Framework 1.1 loaded. We have built a ..NET 2003 app and it requires that ASPNET be assigned permissions to several folders and servcies. The ASPNET account does not exist on the server (viewed through Active Directory). The accounts IUSR_WIN2K3SRVR and IWAM_WIN2K3SRVR do exist. I thought that the...
11
1759
by: Jeff Robichaud | last post by:
Are there any security issues having the ASPNET user account member of Administrators ? Is it a good practice ?
3
1594
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here. Server 2 - SQL server with database on. Want to store images on here accessed via a share.
7
2509
by: SK | last post by:
Hi, Would appreciate if anyone could help me on this. Basically my client having few branches across state. And they used Citrix in which to connect to the server side for accessing application running on ASPNET (C# code behind). Basically, all my form was coded as user control and loaded as component to the IFrame. The problem is when...
6
2423
by: Andrew Chalk | last post by:
My application attempts to connect to an SQL Server database as name ASPNET and Login Name SERVERNAME/ASPNET in response to these commands: SqlConnection myConnection = new SqlConnection("Data Source=(local);Initial Catalog=MCSCRE;Integrated Security=SSPI"); myConnection.Open(); However, the user of this database is ASPNET. I can't create...
0
7410
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7437
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4960
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1025
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
722
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.