Click here to Skip to main content
15,904,156 members

Comments by NothingToLoose (Top 7 by date)

NothingToLoose 5-Sep-12 2:48am View    
Your Suggested approch allready done by me earlier before posting this question.Let me know about other alternative simple solution if you have any idea about it
NothingToLoose 5-Sep-12 2:40am View    
I think you did't clearly undestand about my requirment.Above link did't give solution...Following are steps i have to keep in mind for this
- First Check value of any control(s) is changed in edit mode of Detailview
- If yes than when user click on update button & if any changed value is not proper than validation message is fired by concern validation control(s).No post back during this process.
- If all changed value is proper & user click on Update button than Confirmation window with Two buttons(OK,Cancle) Generate with Message Like "Record is Modify.Are you Sure to Continue?"...No Postback during this Process.
-If user click on OK button of Confirmation window than Post back of Page Occured & Record is Modify...
- In edit Mode if user has not Change value of any controls & press on update button than again Generate confirmation window with Message like "Record is NOT Modify.Are you sure to continue?".(No postback)If user click on OK than Detailview is change to Insert Mode from Edit Mode.
Now..Keeping all these steps in Mind if you have any solutions than suggest me.
NothingToLoose 5-Sep-12 1:03am View    
I am interested to apply this feature in all forms of my web application. For some forms i have to deal with single table & for some forms i have to deal with multiple tables..but in all forms i have use Detailview...
NothingToLoose 13-Aug-12 5:28am View    
i have use same validation group name Insert both for button as well as RequiredFieldValidator still your suggested changes not work & page is postback & then throw above exception
NothingToLoose 13-Aug-12 4:11am View    
Apply your suggested changes but when i click on button entire page is post back & following exception is generate when validation is fire
Unexpected Error: Cannot insert the value NULL into column 'Name', table 'tableName'; column does not allow nulls. INSERT fails. The statement has been terminated.
So its not feasible solution