Pramod Raising
Thursday, 27 August 2015
Write folder file in c#
string[] filePaths = Directory.GetFiles(@"d:\test\");
foreach ( var kk in filePaths)
{
Response.Write(Path.GetFileName(kk)+"<br>");
}
Wednesday, 19 August 2015
Gridview url concatenate
NavigateUrl='<%# Eval("Id", "~/Details.aspx?Id={0}") %>'
PostBackUrl=' <%# FundName_url(Eval("DisplayName", "https://abc.com?schemeName={0}")) %>'
Multi parameter:-
NavigateUrl
='
<%
#
string.Format("~/Details.aspx?Id={0}&Name={1}&Country={2}",
HttpUtility.UrlEncode(Eval("Id").ToString()), HttpUtility.UrlEncode(Eval("Name").ToString()), HttpUtility.UrlEncode(Eval("Country").ToString()))
%>
'
Thursday, 16 July 2015
Google custom search account details link
https://csea.google.co.in/cse/all
Monday, 13 July 2015
Google SMTP function for C sharp code
var client = new SmtpClient
{
Port = 587,
EnableSsl = true,
DeliveryMethod = SmtpDeliveryMethod.Network,
UseDefaultCredentials = false,
Credentials = new NetworkCredential("yourGmailUsername", "yourGmailPassword"),
Host = "smtp.gmail.com"
};
var message = new MailMessage
{
// Setup your MailMessage instance here...
}
client.Send(message);
changes date format code behid site C sharp
<system.web>
<globalization uiCulture="es" culture="es-US" />
</system.web>
Ex:- 7/13/2015 3:04:00 PM
Tuesday, 12 May 2015
CSV File upload and read time give error
Execute this services for this error
AccessDatabaseEngine_x64.exe
Thursday, 7 May 2015
Json call after function call
$.ajaxSetup({
async: false
});
functionname();
$.ajaxSetup({
async: true
});
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)