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
Tips and Tricks: C# Code Surround-with Snippets
Dec12

Tips and Tricks: C# Code Surround-with Snippets

We have discussed Code Snippets and one of the two types, expansion snippets in our previous article: Tips and Tricks: C# Code Expansion Snippets Now, we will discuss Surround-with snippets. Surround-with snippets are added around a selected block of code. How to use Surround-with snippets? Select the lines of code you want to surround with a snippet. class CodeSpread { void printname() { Console.WriteLine(“CodeSpread”); } }  ...

Read More
Tips and Tricks: C# Code Expansion Snippets
Dec12

Tips and Tricks: C# Code Expansion Snippets

“Ever felt like not writing the same code again? Yes! But what is the solution? Solution is Code Snippets.” What is a Code Snippet? Code snippets are small blocks of reusable code which contains commonly-used code blocks such as property, try-finally or if-else blocks. We just have to type a few letters and then press tab twice [TAB TAB]. This is one of the useful ways to reduce our efforts of writing repetitive code again. Do we need...

Read More
IIRF.ini for URL rewriting
Jul22

IIRF.ini for URL rewriting

We often hear the terms like URL rewriting or friendly URLs. There are many techniques available to achieve it and we will discuss one of those today, IIRF. What is URL rewriting? Before we try to understand URL rewriting, we should first understand a term called SEO friendly URLs,Read more about it here. When Google and Yahoo spiders start indexing the page, they take various parameters in account for indexing the page and one of the...

Read More
DI: Dependency Injection Summary
Apr30

DI: Dependency Injection Summary

Here is a summary of Dependency Injection implementation. This ppt is also available for download. Download (PPT, 941KB) You can also check the same ppt on our youtube...

Read More
Page 1 of 41234