Author: Hardeep Singh
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 …
Error of “A potentially dangerous Request.Form value was detected from the client” Why I am getting this error? This happens only when you’re trying to post HTML without encoding it, .Net provides security by validating all the input types when you submit your form. How to overcome this problem? I am going to discuss about how …
Some times during programming we are in hurry and not take care of these small issues like String Cannot be Zero Length. We should only take care about that when we perform replacing the old value, this value must have some text, otherwise we will get this same error of String Cannot be Zero Length. So …