Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

c# - copy database row with all dependency with others Tables -


hi have below mentioned tables , every table id auto incremented in db (i can't change property).

    box_table id  name    cost  1  box1    100  2  box2    175      fruit_table   id  name    cost 1   apple   100 2   orange  75 3   bannana 25       box_fruit_table  id  box_id  fruit_id 1      1      2 2      1      3 3      2      1 4      2      2 

i trying duplicate row of table box_table.

i trying in wpf using dataset adding 1 row dataset , copying content of duplicating row except id , doing commiting. after getting duplicated id have update box_fruit_table.

problem facing is: id autoincrement in db, after commit generated id. because of not able update box_fruit_table duplicated row.

do following steps

1- save in parent table 'box_table'

2- latest id generated

3- update box_fruit_table new id.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -