Browse by Tags

All Tags » Vb.net (RSS)

How to pass parameters to the dynamically added user control by aghausman12

In this post, I will explain how you can pass parameter to the dynamically added (from code behind) User Control. Most of you might aware of how we can achieve this in web application project. Following is the code for that 1: Dim objCon As Control =...
Filed under: , ,

Get Repeater Control Output in String by aghausman12

In this post I will share with you a small code snippet which will help you to get the repeater control output in string variable. 1: Dim sb As New StringBuilder() 2: Dim objHtml As New HtmlTextWriter( New System.IO.StringWriter(sb)) 3:   4: If dt...
Filed under: ,

Get Column name From Stored Procedure by aghausman12

The requirement of the day is to extract the name of the columns returned by procedures. Stored Procedures are dynamic that is why we need to create a function that takes Stored Procedure name as parameter and return the column names in string. So here...
Filed under: , ,

Long Waited Task in Asp.net by aghausman12

Yesterday, one my my friend ask me a query about sending some 500+ emails using an asp.net page. Sending bulk email using asp.net is obviously an issue. I mean, You cannot keep the page on the post back state for the five minutes. Your page will get expired...
Filed under: , ,

Get Primary key on Row Command (GridView) by aghausman12

Some days back I got a query from one of my fellow, regarding a very normal situation I mean that’s the day to day task that we as a developers are doing. Here is the scenario Scenario: Consider you have a data grid view which show a list of products...
Filed under: , , ,

Prevent .js caching in asp.net by aghausman12

This is like a very common issue, specially for those who are working on public site which is live and they have to release the builds every week or month and if the new build contain JS files then your change will not reflect on the client browser until...
Filed under: , ,
More Posts