RegisterStartupScript, RegisterOnSubmitStatement
Dec14

RegisterStartupScript, RegisterOnSubmitStatement

Welcome to CodeSpread! We have discussed RegisterClientScriptBlock, RegisterClientScriptInclude in our previous article here. There are two more methods to client script dynamically from server side. We will discuss these methods: RegisterStartupScript, RegisterOnSubmitStatement. RegisterStartupScript: This method adds a script block into the page at the end of page i.e. just before the form closing tag. It has an advantage over other...

Read More
RegisterClientScriptBlock, RegisterClientScriptInclude
Dec14

RegisterClientScriptBlock, RegisterClientScriptInclude

“Current trends are more inclined towards the client model for a better UI experience where small pieces of client script are integrated into the application.” These client scripts can be declaratively attached to the events on UI forms or can be added dynamically from server side. How to add client script dynamically from server side? We have ClientScriptManager class which contains various methods to add client scripts...

Read More
Styles of Source Code Comments in C#, SQL, XML, HTML, CSS, JavaScript
Feb16

Styles of Source Code Comments in C#, SQL, XML, HTML, CSS, JavaScript

Developers take months to write beautiful pieces of code and reviewer gets only few hours or I say, minutes to provide suggestions and improvisations. Then it becomes a hard deal for a developer to showcase their work. At this moment, comments proved to be a nice packaging which can enhance the visibility of code and also reduce maintenance issues in long run. There are different commenting styles and guides available on internet but...

Read More
jQuery: Effects/Methods
Dec09

jQuery: Effects/Methods

In our last article, jQuery Part 1 , we covered the basic understanding and now we will move to Methods or effects available in jQuery. Hide/Show/Toggle Methods The most used method Hide/Show. From the last tutorial, we already know, how to select an element of our page. Then, if we are successful, we just have call hide() or show() method as required. Do not forget to include the jQuery library file. <script...

Read More
UI: Jquery is Javascript Library
Dec08

UI: Jquery is Javascript Library

Jquery Basics: With the title itself, anybody can deduce that we are indirectly talking about javascript only. So, we can say that Javascipt is the guardian of Jquery. These are client end technologies which are completely different from our server side technologies but now they have blend in. Lets try an example in Javascript first,we will try to set the background color of document in our page. For that we will declare a javascript...

Read More
Page 1 of 212