Category: C#
In this post we will learn about Easy way to remove special characters from string. There are many ways available to achieve this like we can use string.replace method we can also use regex and many more but there should be a simple c# method that should take care about this In this example I will …
Telerik’s Radgrid is a wonderful way to show all of your data but sometime something happens, which we never ever expected like RadGrid Column Being Displayed Empty If Its Contains Special Characters My case was that I need to show xml on the rad grid but rad grid displaying column all empty(No clue, what was happening wrong) only …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …