RegisterStartupScript and RegisterClientScriptBlock methods

  Рет қаралды 32,514

kudvenkat

kudvenkat

Күн бұрын

Пікірлер: 11
@ga7853
@ga7853 8 жыл бұрын
Venkat, you are the best I have ever seenNo one has explained this subject like you, God bless you
@venumehta8801
@venumehta8801 9 жыл бұрын
Thank you so much for this tutorial - very helpful! Had another question related to it - As I am new to javascript, I am always looking for best practices. Just curious as to when one would use client.RegisterStartupScript methods as opposed to adding this javascript directly from your aspx files or .js files? Many thanks again for these wonderful tutorials! -Tulsi
@niravs1810
@niravs1810 8 жыл бұрын
Venkat.. I started following your posts recently and I must say you are doing awesome job.. i got the same question what Venu had asked.. I can do the same job by writing my own javascript in either directly aspx page or in a separate js file. in which scenario, one is recommended over another? Please provide some examples.
@saibhaskerraju2513
@saibhaskerraju2513 8 жыл бұрын
Great Work Mr.Venkat ... Please add more videos on Javascript and ASP.NET
@JediPhantom
@JediPhantom 9 жыл бұрын
I really look forward to your videos, especially this series..I learn so much..thanks
@jayflaggs
@jayflaggs 2 жыл бұрын
Is it possible to call a javascript library rather than writing the javascript inline?
@MostafaSakr4
@MostafaSakr4 9 жыл бұрын
good work kudvenkat‏:)
@faizamushtaq3998
@faizamushtaq3998 7 жыл бұрын
Can you please check my code it showing an error "ClientScript is not in context". string message = "Your details have been saved successfully."; string script = "window.onload = function(){ alert('"; script += message; script += "')};"; ClientScript.RegisterStartupScript(this.GetType(), "SuccessMessage", script, true); return RedirectToAction("index");
@mahipalkamanchi
@mahipalkamanchi 9 жыл бұрын
thank u sir..!
@colinmyers-boston
@colinmyers-boston 5 жыл бұрын
This is how you call a javascript function from a partial reload: ScriptManager.RegisterStartupScript(Page, typeof(Page), "somekey", "myFunciton();", true);
@BappaSaikh
@BappaSaikh 5 жыл бұрын
good
ASP NET control client id in JavaScript
12:13
kudvenkat
Рет қаралды 22 М.
C# Events and Delegates Made Simple | Mosh
32:04
Programming with Mosh
Рет қаралды 944 М.
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 1,3 МЛН
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 9 МЛН
JavaScript to select all checkboxes in GridView
25:29
kudvenkat
Рет қаралды 39 М.
SQL Server Quickie #1 - Data Pages
7:47
SQLpassion
Рет қаралды 18 М.
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 67 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
Warn user before leaving web page with unsaved changes
10:03
kudvenkat
Рет қаралды 32 М.
Namespaces in JavaScript
8:47
kudvenkat
Рет қаралды 61 М.
JavaScript confirm on gridview delete
11:20
kudvenkat
Рет қаралды 51 М.
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 1,3 МЛН