472,362 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,362 software developers and data experts.

details view control

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">

<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" />

<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="C:\Documents and Settings\Harpreet Narula\My Documents\invivo.mdb"
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] = ?">
<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" />
<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" />

Nov 7 '06 #1
0 1481

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

Similar topics

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...
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...
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...
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...
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...
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...
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...
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...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.