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.
@chibumbamohammed50063 жыл бұрын
I will never forget you Sir
@RahulAgarwal-ne5wg6 жыл бұрын
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.
@MrHooglaz11 жыл бұрын
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?
@ugotzenithful11 жыл бұрын
Great Explanation I just want to know, can the confirm box be implemented using onRowDeleting event ??
@pracashmaster11 жыл бұрын
very nice explanation
@prashantjain98765 жыл бұрын
Hi sir need one help if you use GUID as primary key then what will be the parameter Type in Type field
@hlams211 жыл бұрын
what if i have 2 options in that row edit and delete than how to get than this works on delete
@KochharAmandeep7 жыл бұрын
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;"; } }
@erdinc272711 жыл бұрын
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 ?
@erdinc272711 жыл бұрын
it was because i didnt have primary key in my table. i replied maybe someone else also has the same problem.
@awaisrajpoot31607 жыл бұрын
thank u so much :)
@siddiquejaved50366 жыл бұрын
Thanks you so much. It's take lots of time
@1999mer11 жыл бұрын
How do you display image path locations from a sql database?
@narayanakatika423111 жыл бұрын
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?
@hitarthtrivedi626711 жыл бұрын
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??
@satyasandeep369910 жыл бұрын
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
@awaisrajpoot31607 жыл бұрын
same problem.. did u get now ??
@veluviorel4 жыл бұрын
@@awaisrajpoot3160 u need to put primary key in table.
@michaelburns22739 жыл бұрын
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??
@swastiknaik978 жыл бұрын
+Michael Burns i think you are missing the javascript function
@dzdeathray10 жыл бұрын
when i change the button type to = button the fields do not delete. Any Sugestions??
@sulemanali40066 жыл бұрын
i have an error please help: Must declare the scalar variable "@EmployeeID".
@vichitraanand6737 жыл бұрын
on button type javascript not working
@ww1flyingace2635 жыл бұрын
Same with me. I tried many things but could not make it work. The linkbutton worked fine though.
@karangoyalkkp5 жыл бұрын
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.
@bishnumishra335711 жыл бұрын
sir ,plz help us to develop a real time project.
@mustafaabbas252011 жыл бұрын
supposed that javascript must be used in html file not in code file ?