Deleting data from gridview using sqldatasource control

  Рет қаралды 46,638

kudvenkat

kudvenkat

Күн бұрын

Пікірлер: 32
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 11 жыл бұрын
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.
@chibumbamohammed5006
@chibumbamohammed5006 3 жыл бұрын
I will never forget you Sir
@RahulAgarwal-ne5wg
@RahulAgarwal-ne5wg 6 жыл бұрын
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.
@MrHooglaz
@MrHooglaz 11 жыл бұрын
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?
@ugotzenithful
@ugotzenithful 11 жыл бұрын
Great Explanation I just want to know, can the confirm box be implemented using onRowDeleting event ??
@pracashmaster
@pracashmaster 11 жыл бұрын
very nice explanation
@prashantjain9876
@prashantjain9876 5 жыл бұрын
Hi sir need one help if you use GUID as primary key then what will be the parameter Type in Type field
@hlams2
@hlams2 11 жыл бұрын
what if i have 2 options in that row edit and delete than how to get than this works on delete
@KochharAmandeep
@KochharAmandeep 7 жыл бұрын
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;"; } }
@erdinc2727
@erdinc2727 11 жыл бұрын
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 ?
@erdinc2727
@erdinc2727 11 жыл бұрын
it was because i didnt have primary key in my table. i replied maybe someone else also has the same problem.
@awaisrajpoot3160
@awaisrajpoot3160 7 жыл бұрын
thank u so much :)
@siddiquejaved5036
@siddiquejaved5036 6 жыл бұрын
Thanks you so much. It's take lots of time
@1999mer
@1999mer 11 жыл бұрын
How do you display image path locations from a sql database?
@narayanakatika4231
@narayanakatika4231 11 жыл бұрын
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?
@hitarthtrivedi6267
@hitarthtrivedi6267 11 жыл бұрын
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??
@satyasandeep3699
@satyasandeep3699 10 жыл бұрын
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
@awaisrajpoot3160
@awaisrajpoot3160 7 жыл бұрын
same problem.. did u get now ??
@veluviorel
@veluviorel 4 жыл бұрын
@@awaisrajpoot3160 u need to put primary key in table.
@michaelburns2273
@michaelburns2273 9 жыл бұрын
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??
@swastiknaik97
@swastiknaik97 8 жыл бұрын
+Michael Burns i think you are missing the javascript function
@dzdeathray
@dzdeathray 10 жыл бұрын
when i change the button type to = button the fields do not delete. Any Sugestions??
@sulemanali4006
@sulemanali4006 6 жыл бұрын
i have an error please help: Must declare the scalar variable "@EmployeeID".
@vichitraanand673
@vichitraanand673 7 жыл бұрын
on button type javascript not working
@ww1flyingace263
@ww1flyingace263 5 жыл бұрын
Same with me. I tried many things but could not make it work. The linkbutton worked fine though.
@karangoyalkkp
@karangoyalkkp 5 жыл бұрын
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.
@bishnumishra3357
@bishnumishra3357 11 жыл бұрын
sir ,plz help us to develop a real time project.
@mustafaabbas2520
@mustafaabbas2520 11 жыл бұрын
supposed that javascript must be used in html file not in code file ?
@MrHooglaz
@MrHooglaz 11 жыл бұрын
thank you
@RahulAgarwal-ne5wg
@RahulAgarwal-ne5wg 6 жыл бұрын
java script code not working.
@rahultnna9198
@rahultnna9198 3 жыл бұрын
Java Script Code Is Not Properly Worked....
@ashokreddyz
@ashokreddyz 6 жыл бұрын
java Script code is not working
ConflictDetection property of SqlDataSource control - Part 14
11:28
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Formatting gridview using rowdatabound event   Part 8
16:06
kudvenkat
Рет қаралды 72 М.
GridView insert update delete in asp.net - Part 23
23:47
kudvenkat
Рет қаралды 499 М.
How To Write SQL Server Queries Correctly: IN and NOT IN
15:22
Erik Darling (Erik Darling Data)
Рет қаралды 596
JavaScript confirm on gridview delete
11:20
kudvenkat
Рет қаралды 51 М.
Normalization - 1NF, 2NF, 3NF and 4NF
19:02
channel5567
Рет қаралды 2,2 МЛН
Using stored procedures with objectdatasource control - Part 12
16:15
Delete Row with Confirmation in ASP.Net GridView control using C#
9:34
What is DATABASE SHARDING?
8:56
Gaurav Sen
Рет қаралды 950 М.
Formatting asp net gridview control   Part 7
12:57
kudvenkat
Рет қаралды 94 М.