First paste this code to web.config file in configuration section:
<system.net>
<mailSettings>
<smtp>
<network host="mail.abc.com" userName="XYZ@abc.com" password="yourPassword"/>
</smtp>
</mailSettings>
</system.net>
Function for sending the mail:
try
{
System.Net.Mail.MailMessage...
Tuesday, December 16, 2014
Saturday, November 22, 2014
filter row datagrid with multiple column on keyup in jeasyui
Jeasyui provide filter row datagrid.., but if we put custom operator like greator,less,etc. then we must click on the button to search in datagrid.
If we want search by key press then its not available in jeasyui's datagrid.
I searched so many things since last 3 days.. and finally write my own custom function to search in datagrid on key press...
Our HTML page like below:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
...
Thursday, November 13, 2014
Searching multiple column value in repeater control using javascript without postback
Your ASPX page like below:
<body>
<form id="form1" runat="server">
<div>
<asp:Repeater ID="rpt" runat="server">
<HeaderTemplate>
<table>
<tr>
...
Wednesday, November 12, 2014
How to return multiple value with different data type from function in C#
public Tuple<string, int, decimal, string[], DataTable> myFunction()
{
string a = "ABC";
int b = 50;
decimal c = 45;
string d = "XYZ";
string[] ab = new string[2];
ab[0]
= a;
ab[1]
= d;
...
Saturday, September 20, 2014
Date validation(dd/MM/yyyy) using java script
//Java Script For date Check
<script type="text/javascript">
function checkDate(val) {
if (val != "") {
var r = false;
if (!val.value.match(/^\d{2}\/\d{2}\/\d{4}$/)) {
alert("Invalid Date");
val.value...