Hi, thank you very much for taking time to give feedback. Actually neither of these are being used in real world. More often people implement custom data access layer, using the standard ado.net classes like SqlConnection, SqlCommand etc. The data access layer will then be consumed by business or other layers depending on the architecture of the application. I have seen a few real time projects using objectdatasource, control, but definitely not sqldatasource control.
A very insightful series. I appreciate your explanation of the ADO.Net code as well. What is more common in the working world: sqldatasource or objectdatasource?
sir i am using this ((LinkButton)control).OnClientClick = "return confirm('Are you sure you want to delete? This cannot be undone.');"; but its not working , please give me solution ASAP, its urgent.
I appreciate your explanation and efforts u r putting.....i had a concern in this video .....i am not able to configure insert,update,delete through ADVANCED....they are disabled by default..i am not able to make a selection....i will appreciate if u would help me out.....plzzzzzzzzzzzzzzz
The javascript thing confirmation box is not working if I am using Button instead of LinkButton. ((Button)control).OnClientClick = "return confirm('Are You sure you want to delete? This change cannot be reverted')"; I am not sure what the reason is??
Try This Code! foreach (DataControlFieldCell cell in e.Row.Cells) { // check all cells in one row foreach (Control control in cell.Controls) { // Must use LinkButton here instead of ImageButton // if you are having Links (not images) as the command button. LinkButton button = control as LinkButton; if (button != null && button.CommandName == "Delete") // Add delete confirmation button.OnClientClick = "if (!confirm('Are you sure " + "you want to delete this record?')) return;"; } }
Did anyone get an answer to this question? I tried the same thing and the post back does not happen if user clicks yes. Thanks in advance! The javascript thing confirmation box is not working if I am using Button instead of LinkButton. ((Button)control).OnClientClick = "return confirm('Are You sure you want to delete? This change cannot be reverted')"; I am not sure what the reason is??
hello, i am getting compilation error- Server Error in '/' Application. Compiler Error Message: CS0583: Internal Compiler Error (0xc0000006 at address 658F166C): likely culprit is 'IMPORT'. plz guide me on this error how to resolve it.
Hi, thank you very much for taking time to give feedback. Actually neither of these are being used in real world. More often people implement custom data access layer, using the standard ado.net classes like SqlConnection, SqlCommand etc. The data access layer will then be consumed by business or other layers depending on the architecture of the application. I have seen a few real time projects using objectdatasource, control, but definitely not sqldatasource control.
I will never forget you Sir
A very insightful series. I appreciate your explanation of the ADO.Net code as well. What is more common in the working world: sqldatasource or objectdatasource?
Great Explanation
I just want to know, can the confirm box be implemented using onRowDeleting event ??
sir i am using this
((LinkButton)control).OnClientClick =
"return confirm('Are you sure you want to delete? This cannot be undone.');";
but its not working , please give me solution ASAP, its urgent.
very nice explanation
thank you
I appreciate your explanation and efforts u r putting.....i had a concern in this video .....i am not able to configure insert,update,delete through ADVANCED....they are disabled by default..i am not able to make a selection....i will appreciate if u would help me out.....plzzzzzzzzzzzzzzz
same problem.. did u get now ??
@@awaisrajpoot3160 u need to put primary key in table.
Hi sir need one help if you use GUID as primary key then what will be the parameter Type in Type field
Hi,
Javascript Validation is not working if I use Button control as Trivedi said.
Could you plz tell us what is the reason for it?
when i change the button type to = button the fields do not delete. Any Sugestions??
The javascript thing confirmation box is not working if I am using Button instead of LinkButton.
((Button)control).OnClientClick = "return confirm('Are You sure you want to delete? This change cannot be reverted')";
I am not sure what the reason is??
How do you display image path locations from a sql database?
i have an error please help: Must declare the scalar variable "@EmployeeID".
what if i have 2 options in that row edit and delete than how to get than this works on delete
Try This Code!
foreach (DataControlFieldCell cell in e.Row.Cells)
{
// check all cells in one row
foreach (Control control in cell.Controls)
{
// Must use LinkButton here instead of ImageButton
// if you are having Links (not images) as the command button.
LinkButton button = control as LinkButton;
if (button != null && button.CommandName == "Delete")
// Add delete confirmation
button.OnClientClick = "if (!confirm('Are you sure " +
"you want to delete this record?')) return;";
}
}
sir ,plz help us to develop a real time project.
Did anyone get an answer to this question? I tried the same thing and the post back does not happen if user clicks yes. Thanks in advance!
The javascript thing confirmation box is not working if I am using Button instead of LinkButton.
((Button)control).OnClientClick = "return confirm('Are You sure you want to delete? This change cannot be reverted')";
I am not sure what the reason is??
+Michael Burns i think you are missing the javascript function
i tried what u showed in the video. but when i click the Advanced button botch checkboxes are seen Disabled what can be the reason ?
it was because i didnt have primary key in my table. i replied maybe someone else also has the same problem.
thank u so much :)
Thanks you so much. It's take lots of time
supposed that javascript must be used in html file not in code file ?
hello,
i am getting compilation error-
Server Error in '/' Application.
Compiler Error Message: CS0583: Internal Compiler Error (0xc0000006 at address 658F166C): likely culprit is 'IMPORT'.
plz guide me on this error how to resolve it.
on button type javascript not working
Same with me. I tried many things but could not make it work. The linkbutton worked fine though.
java script code not working.
Java Script Code Is Not Properly Worked....
java Script code is not working