Category: C#

Updates Not Being Reflected in Azure Website

In this article I will demonstrate that how we can fix issue of  “Updates Not Being Reflected in Azure Website” Sometimes things are not in our hand and this frustrate us. So the main question is why its happening?  Why Updates Not Being Reflected in Azure Website? Well I also don’t know exactly why changes not being reflected on …

Textboxes Are Disabled In Bootstrap Modal

Texboxes are disabled in bootstrap modal, that’s seem wired and your question would be how this is possible? there might be a css issue or maybe other javascript rules conflicting with this page. But believe me none of these reasons are responsible for this behavior.  What was happening like I was using some text boxes on bootstrap modal and …

Add Datarow In Datatable At Specified Index

During website development in asp.net,  sometimes we need to manage data-table according to our need like modify records in data-table, adding new record etc.In this post I will show you how we can insert generic data in the data-table, sometimes mix types of values being returned by data-table(using stored procedure), so I am going to show …

How To Get Routing Details In Static Class

Hello Word, in this post I am going to show how we can get the Routing Information in the static class. During development sometime we need to create a static class but this class may be used from the entire project so sometimes system throws an error that cannot call non static method in the static …

How To Send An Email in Asp.Net Using Gmail

If your application doing more than displaying “Hello World” then we should need to configure the Email Services in your application. In this post I am going to create a static class so we can call this without creating a object of this class Static Class and Method public static class EmailServices{public static void SendMail(string htmlBody){var …

How To Use Svcutil.exe Tool

Hello friends, in this post I am going explain how we can create a client for web service and this is tested on window 7. For this what steps we need to perform and what we need? Path of webservices. svcutil.exe tool svcutil.exe tool can be find at “C:Program Files (x86)Microsoft SDKsWindowsv7.0ABinsvcutil.exe””, please double  check this …

How To Hide – Show Image Button in Telerik Rad Grid

In order to set the visibility for the control , you need to access the control first and then set the visibility. Here is a sample code. In C# protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e){if (e.Item is GridDataItem){GridDataItem item = (GridDataItem)e.Item;if (Item.FindControl("UniqueName") as Textbox (your control's Unique Name))// Add your condition{item .Visible=false; // setting visibility of …

How to Dynamically Change the Image Button of Telerik RadGrid

In order to set the Image for the GridButton Column in Telerik Rad Grid, you need to access the control first from server side and then set the Image dynamically. Here is a sample code. protected void grdDemo_ItemDataBound(object sender, GridItemEventArgs e){if (e.Item is GridDataItem){var item = (GridDataItem)e.Item;if() // your condition here(item.Controls as ImageButton).ImageUrl = "~/Content/Images/icon_cancel_fade.gif";}} You …