View Complete Post
I have two (parent-child) tables that are bound by a primary key (PK)/foreign key (FK) relation.each PK is identity (idStudent and idBac)
to insert data, i'm using an little application in c# i programmed myself where i insert these columns for the Student table: F_Name, L_Name, Age, Mobile, Adresse, City ,and ( i don't know how to handle the idBac wich is foreign key of the other table
wich still not inserted yet)
for the table Bac, i insert section, school, and city.
what i want is when i click on "OK" button, the idBac ,wich is a foreign key of the other table (BAC), receives the same idBac given the moment i inserted the BAC informations too ...
i don't have any problem wich ado.net ...i just want the right query/procedure.
thanks in advance and sorry for my english, it's not my mother tongue.
I am at my wits end and need some help, I have a dynamic data site, and have built a formview for my parent table, Claims (parent), Claims has a child table called DamagedVehicles, I want all the fields on the Cliams table and the fields on the DamagedVehicle to be displayed for insert on the same formsview, when the user fills in all data it should insert the claim and the damagedvehicle at the same time and set the foriegn key on the Damagedvehciles row to the Primary key of the claim, I dont know were to start any examples in VB.net or C# will be greatly appricated. i have been search for 3 days now trying to come to a solution and nothing has worked.
thanks in advance.Andrew
I'm using cssfriendly control adapter for menu. My asp.net menu control's datasource is a sitemap file I'm using which contains all the urls.
I have the following questions:
MSDN Magazine May 2004
MSDN Magazine July 2003
When I open two modalpopups, one over another, there is unexpected order.
After click on "Open Parent Panel", and click on "Open Child Panel",
Child Panel (newone) is under the Parent.
Uploaded with ImageShack.us
What should I do to get it in "normal order"?
The code is:
I got This Error : Microsoft JScript runtime error: 'Parent' is null or not an object
In runtime,after click on the check box, It Show "Microsoft JScript runtime error: 'Parent' is null or not an object"
var IsChecked = spanChk.checked;
var Chk = spanChk;
Parent = document.getElementById('gvUsers');
var items = Parent.getElementsByTagName('input');
if(items[i].id != Chk && items[i].type=="checkbox")
please verify it.
Hello ASP.NET community,
I am having trouble finding how to solve the following issue :
I am using nested listviews to display Sales and Sales details.
The main ListView displays General Information about Sales and the child ListView displays the detailed information about one sale. the child listview is shown only when the user clicks on a link (see included code, DataBind is made on PageLoad) :
ASPX Markup Code :
<asp:listview id="lvSales" runat="server" onitemdatabound="lvSales_ItemDataBound"> <layouttemplate> <table cellspacing="0" border="1" width="250" style="border-collapse:collapse;"> <tr runat="server" id="headerRow"> <th scope="col" style="width:30px;"></th> <th scope="col">SaleNumber</th> </tr> <tr id="itemPlaceHolder" runat="server" enableviewstate="true"/> </table> </layouttemplate> <itemtemplate> <tr id="row" runat="server"> <td style="text-align:center;"><asp:button id="btnShowHideDetails" runat="server" oncommand=&qu
I'm trying to link an InfoPath form to an Access database, I want to connect the InfoPath form to 3 tables in the Access database but InfoPath will only recognise parent-child relationships in a series (e.g. the "Company" table is the parent to
the "Customer" table, which is again parent to the "Orders" table)
I need to have two parent tables and one child table, though (e.g. "Customer" is parent to "Orders", but "Inventory_Item" is also parent to "Orders"). Is there any way to establish this in InfoPath? I'm using Windows XP, InfoPath 2007 and Access 2007.
I have to create a aspx page where end users can create, edit and delete category and their subCategory from it.
Please suggest what is simple way to do above? using .Net
PS: a category can have zero or more subcategory and subcategory will not have any of its own subcategory, i.e. there are only two levels.