| | |
Reservation on ASP.NET
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 4
Reputation:
Solved Threads: 0
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..
could you add some code to block the date between the booked date....?
sorry if its to much trouble >.<
here are the syntax..
ASP.NET Syntax (Toggle Plain Text)
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues" 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" InsertCommand="INSERT INTO [tesDB3] ([Nama], [Tgl_masuk], [Tgl_keluar]) VALUES (@Nama, @Tgl_masuk, @Tgl_keluar)" OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [tesDB3]" 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"> <DeleteParameters> <asp:Parameter Name="original_IdTamu" Type="Int32" /> <asp:Parameter Name="original_Nama" Type="String" /> <asp:Parameter DbType="DateTime" Name="original_Tgl_masuk" /> <asp:Parameter DbType="DateTime" Name="original_Tgl_keluar" /> </DeleteParameters> <UpdateParameters> <asp:Parameter Name="Nama" Type="String" /> <asp:Parameter DbType="DateTime" Name="Tgl_masuk" /> <asp:Parameter DbType="DateTime" Name="Tgl_keluar" /> <asp:Parameter Name="original_IdTamu" Type="Int32" /> <asp:Parameter Name="original_Nama" Type="String" /> <asp:Parameter DbType="DateTime" Name="original_Tgl_masuk" /> <asp:Parameter DbType="DateTime" Name="original_Tgl_keluar" /> </UpdateParameters> <InsertParameters> <asp:Parameter Name="Nama" Type="String" /> <asp:Parameter DbType="DateTime" Name="Tgl_masuk" /> <asp:Parameter DbType="DateTime" Name="Tgl_keluar" /> </InsertParameters> </asp:SqlDataSource>
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.
•
•
Join Date: Apr 2008
Posts: 115
Reputation:
Solved Threads: 6
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.
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.
Please mark this post as 'Solved' if it has helped and fixed your issue.
![]() |
Similar Threads
- Dot Net programmer wanted. Work from home. (Web Development Job Offers)
- credit card validation (ASP.NET)
- need idea for developing project in asp.net. (ASP.NET)
- fares (ASP.NET)
- display values from one page to another page (ASP.NET)
- can any body help me !! (ASP.NET)
- Popup window (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Flex in ASP.NET
- Next Thread: First 4 cases Skipped by if statements
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox child click commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu edit expose feedback flash flv form formatdecimal forms formview gridview homeedition hosting iframe iis javascript jquery list listbox login menu microsoft mono mouse mssql multistepregistration nameisnotdeclared news numerical objects order panelmasterpagebuttoncontrols radio ratings rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql-server sqlserver2005 suse textbox tracking typeof unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webarchitecture webdevelopemnt webservice xml youareanotmemberofthedebuggerusers





