Tag Archives: C#

Adding Custom Validator run-time to your page and throw Data driven Error to page

Hello All, Today, I was trying to add a custom validator to my page, as we know that Page.IsValid is responsible to run all validators attached to page. Following Code snippet will create a custom validator on the fly: In …

Read more »

Creating SQL connection in ASP.NET C#

If you want to perform database operations from your ASP.NET website/application, Please use below code to connect and perform operations: Please share your queries…if any ?

Debugging ASP.NET website from remote/client machine

Please opt following steps to debug An ASP.NET website from a remote/client instance. define/create your breakpoints on the code which you want to debug. go to tools>attachprocess. select process named as w3wp.exe [if there are more than one w3wp.exe processes, …

Read more »

Scope of a variable on designer page

Commonly, if we want to code on our designer page[aspx], we should be aware about the scope of a variables on the same. Once, I wanted to show same information on more than one place, I used variable but after …

Read more »