473,503 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

details view control

13 New Member
hi,
I am a beginner in asp.net. I am designing a page using details view control in asp.net using VB. The page is about inserting information and then sending it to the database. I want that the records shud be empty, nobody shud be able to view them, Only shud be able to insert information, but in the browser i can view one record. So kindly help me out.


<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateInsertButton="true" HeaderText="REPORTING PROBLEM:" AutoGenerateRows="false" DataKeyNames="ID"
DataSourceID="AccessDataSource1" Height="50px" Width="125px">

<Fields>
<asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="True" ReadOnly="False"
SortExpression="ID" />
<asp:BoundField DataField="ProblemDescr" HeaderText="ProblemDescr" SortExpression="ProblemDescr" />
<asp:BoundField DataField="EquipmentDescr" HeaderText="EquipmentDescr" SortExpression="EquipmentDescr" />
<asp:BoundField DataField="Serial/EquipNumber" HeaderText="Serial/EquipNumber" SortExpression="Serial/EquipNumber" />
<asp:BoundField DataField="DateReported" HeaderText="DateReported" SortExpression="DateReported" />
<asp:BoundField DataField="PersonReporting" HeaderText="PersonReporting" SortExpression="PersonReporting" />
</Fields>
</asp:DetailsView>

</div>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="C:\Documents and Settings\Harpreet Narula\My Documents\invivo.mdb"
EnableCaching="True"
SelectCommand="SELECT * FROM [MaintenanceReport]" InsertCommand="INSERT INTO [MaintenanceReport] ([ID], [ProblemDescr], [EquipmentDescr], [Serial/EquipNumber], [DateReported], [PersonReporting]) VALUES (?, ?, ?, ?, ?, ?)" UpdateCommand="UPDATE [MaintenanceReport] SET [ProblemDescr] = ?, [EquipmentDescr] = ?, [Serial/EquipNumber] = ?, [DateReported] = ?, [PersonReporting] = ? WHERE [ID] = ?">
<UpdateParameters>
<asp:Parameter Name="ProblemDescr" Type="String" />
<asp:Parameter Name="EquipmentDescr" Type="String" />
<asp:Parameter Name="column1" Type="String" />
<asp:Parameter Name="DateReported" Type="DateTime" />
<asp:Parameter Name="PersonReporting" Type="String" />
<asp:Parameter Name="ID" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="ID" Type="Int32" />
<asp:Parameter Name="ProblemDescr" Type="String" />
<asp:Parameter Name="EquipmentDescr" Type="String" />
<asp:Parameter Name="column1" Type="String" />
<asp:Parameter Name="DateReported" Type="DateTime" />
<asp:Parameter Name="PersonReporting" Type="String" />
</InsertParameters>


</asp:AccessDataSource>
Nov 7 '06 #1
0 1509

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1597
by: Pete | last post by:
One way to accomplish thumbnail imaging without excessive lines of code is using the web browswer control (see WebBrowseWeb form in Solutions.mdb). The trouble is when I point to a directory path...
1
1791
by: Shiva | last post by:
Hi, My (main)form has a subform that contains the details of the mainform. The default view of the mainform is 'single form', the default view of the subform containing the details is...
0
985
by: JeremyW | last post by:
I have a data bound Details View control in asp.net 2.0 that formats a phone number. The 'Default Mode' for the control is set to Edit. The phone number field is a template field and I can...
0
1661
by: amily | last post by:
hi, i designed a page in details view control in asp.net. for entering information in the database. there is one column in which we have to write yes or no. so i thought of using a combo box. the...
3
2044
by: Chris | last post by:
Hi, i have the following script which creates the two tables, i wish to have a master/details form (with two datagrids on the same form, i have a many to one relationship with tracks to album) but...
2
1474
by: kamlesh | last post by:
Hi All, I have a question on the ASP.NET 2.0 Details view control I dont like using the SQLDataSource to bind the data to the DetailsView control.. I dont like the idea of placing Queries in...
0
863
by: lieufirst | last post by:
hi all, well i got a grid view and a details view i linked the details view to the grid view so when i select a field it appers in the details view but the problem is when i surf to diffrent pages...
4
2132
by: randy.buchholz | last post by:
Been fighting this one for a while, looking for help. I have a simple page with a grid view and details view (just managing a single table). The details view is primarily used for creating new...
0
7204
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7091
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...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6998
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...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
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...
0
4680
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...
0
3171
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...
0
1516
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 ...

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.