15,904,156 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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
NothingToLoose
13-Aug-12 3:03am
View
As per your suggestion i have make changes in my tags just check below but still validation message of required field validator is display
<asp:TextBox ID="TextBox1" runat="server" MaxLength="50" xmlns:asp="#unknown">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Value Required!" Display="None"
ControlToValidate="TextBox1" ValidationGroup="Insert" xmlns:asp="#unknown" >
<ajax:ValidatorCalloutExtender runat="server" ID="ValidatorCalloutExtender1" TargetControlID="RequiredFieldValidator1" Width="200px"
PopupPosition="Right" xmlns:asp="#unknown"/>
NothingToLoose
13-Aug-12 2:39am
View
when i added xmlns:asp="#unknown" tag in requiredfieldValidator & xmlns:cc1="#unknown" in ValidatorCalloutExtender then its generate error message like AjaxControlToolkit.ValidatorCalloutExtender' does not have a public property named 'xmlns:ajax'
Show More