943,920 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 1001
  • ASP.NET RSS
Apr 22nd, 2009
0

Reservation on ASP.NET

Expand Post »
could anyone help me how to use a date function for reservation on ASP.NET....

thanx
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cakamaya is offline Offline
4 posts
since Apr 2009
Apr 22nd, 2009
0

Re: Reservation on ASP.NET

what are you trying to acheive? Are you trying to store dates into a table? Search on dates?

Do you have any code that you need help on?
Reputation Points: 22
Solved Threads: 9
Junior Poster
ninjaimp is offline Offline
129 posts
since Apr 2008
Apr 22nd, 2009
0

Re: Reservation on ASP.NET

i'm just making a small project, and all i have is only the check in date and the check out date. i dont know how to block the date between it.

here are the syntax..
ASP.NET Syntax (Toggle Plain Text)
  1. <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues"
  2. ConnectionString="<%$ ConnectionStrings:tesDB3 %>" DeleteCommand="DELETE FROM [tesDB3] WHERE [IdTamu] = @original_IdTamu AND [Nama] = @original_Nama AND [Tgl_masuk] = @original_Tgl_masuk AND [Tgl_keluar] = @original_Tgl_keluar"
  3. InsertCommand="INSERT INTO [tesDB3] ([Nama], [Tgl_masuk], [Tgl_keluar]) VALUES (@Nama, @Tgl_masuk, @Tgl_keluar)"
  4. OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [tesDB3]"
  5. UpdateCommand="UPDATE [tesDB3] SET [Nama] = @Nama, [Tgl_masuk] = @Tgl_masuk, [Tgl_keluar] = @Tgl_keluar WHERE [IdTamu] = @original_IdTamu AND [Nama] = @original_Nama AND [Tgl_masuk] = @original_Tgl_masuk AND [Tgl_keluar] = @original_Tgl_keluar">
  6. <DeleteParameters>
  7. <asp:Parameter Name="original_IdTamu" Type="Int32" />
  8. <asp:Parameter Name="original_Nama" Type="String" />
  9. <asp:Parameter DbType="DateTime" Name="original_Tgl_masuk" />
  10. <asp:Parameter DbType="DateTime" Name="original_Tgl_keluar" />
  11. </DeleteParameters>
  12. <UpdateParameters>
  13. <asp:Parameter Name="Nama" Type="String" />
  14. <asp:Parameter DbType="DateTime" Name="Tgl_masuk" />
  15. <asp:Parameter DbType="DateTime" Name="Tgl_keluar" />
  16. <asp:Parameter Name="original_IdTamu" Type="Int32" />
  17. <asp:Parameter Name="original_Nama" Type="String" />
  18. <asp:Parameter DbType="DateTime" Name="original_Tgl_masuk" />
  19. <asp:Parameter DbType="DateTime" Name="original_Tgl_keluar" />
  20. </UpdateParameters>
  21. <InsertParameters>
  22. <asp:Parameter Name="Nama" Type="String" />
  23. <asp:Parameter DbType="DateTime" Name="Tgl_masuk" />
  24. <asp:Parameter DbType="DateTime" Name="Tgl_keluar" />
  25. </InsertParameters>
  26. </asp:SqlDataSource>
could you add some code to block the date between the booked date....?

sorry if its to much trouble >.<
Last edited by Ezzaral; Apr 22nd, 2009 at 4:04 pm. Reason: Added [code] [/code] tags. Please use them to format any code that you post.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cakamaya is offline Offline
4 posts
since Apr 2009
Apr 22nd, 2009
0

Re: Reservation on ASP.NET

what do you mean block the date between?
Reputation Points: 22
Solved Threads: 9
Junior Poster
ninjaimp is offline Offline
129 posts
since Apr 2008
Apr 22nd, 2009
0

Re: Reservation on ASP.NET

block the date between the reservation date so that no one else can book between that date.

@Ezzaral
sorry.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cakamaya is offline Offline
4 posts
since Apr 2009
Apr 23rd, 2009
0

Re: Reservation on ASP.NET

have a look here:

http://odetocode.com/Articles/223.aspx

not exactly what your trying to do but could give you some ideas on how to display a calendar control which will only display available dates.
Reputation Points: 22
Solved Threads: 9
Junior Poster
ninjaimp is offline Offline
129 posts
since Apr 2008
Apr 23rd, 2009
0

Re: Reservation on ASP.NET

@ninjaimp
thank you so much....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cakamaya is offline Offline
4 posts
since Apr 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Flex in ASP.NET
Next Thread in ASP.NET Forum Timeline: First 4 cases Skipped by if statements





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC