http://www.telerik.com/community/forums/aspnet-ajax/rotator/client-side-control-of-rad-rotator.aspx
http://www.telerik.com/help/aspnet-ajax/rotator-clientside-api.html
29.10.09
27.10.09
starting Jquery
http://www.dotnetcurry.com/ShowArticle.aspx?ID=231&AspxAutoDetectCookieSupport=1
http://www.mkyong.com/jquery/page-loading-effects-with-jquery/
http://www.mkyong.com/jquery/page-loading-effects-with-jquery/
22.10.09
sys.webforms.pagerequestmanagerservererrorexception
sys.webforms.pagerequestmanagerservererrorexception ERROR
ok, try another simplest way:
asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="false"
and also setting the EnableEventValidation="false"
======================================================================================
You may want to try setting ValidateRequest="false" in the Page declaration. It worked for me.
ok, try another simplest way:
asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="false"
and also setting the EnableEventValidation="false"
======================================================================================
You may want to try setting ValidateRequest="false" in the Page declaration. It worked for me.
20.10.09
radajax
consider a RadAjaxPanel with id = rap1, we need to add
rap1.ResponseScripts.Add(”alert(’Email Sent Successfully!’);”);
rap1.ResponseScripts.Add(”javascript: self.close();”);
rap1.ResponseScripts.Add(”alert(’Email Sent Successfully!’);”);
rap1.ResponseScripts.Add(”javascript: self.close();”);
radRotator
OnItemClick="RadRotator1_ItemClick">
========================================
CustomIDProperty=' XPath("id") ' Style="width: 300px; height: 200px;" />
===========================================
using Telerik.Web.UI;
public void RadRotator1_ItemClick(object sender, RadRotatorEventArgs e)
{
Image img = e.Item.FindControl("Image1") as Image;
string id = img.Attributes["CustomIDProperty"];
}
========================================
===========================================
using Telerik.Web.UI;
public void RadRotator1_ItemClick(object sender, RadRotatorEventArgs e)
{
Image img = e.Item.FindControl("Image1") as Image;
string id = img.Attributes["CustomIDProperty"];
}
6.8.09
Send Email Using C# through GMAIL
SEE THIS LINK http://mudassarkhan.wordpress.com/2009/01/09/send-email-using-c/
or
Here I have discussed How to send Emails using C#.
See the function below
public Boolean sendemail(String strTo, string strFrom, string strSubject, string strBody,string strAttachmentPath, bool IsBodyHTML)
{
Array arrToArray;
char[] splitter = { ‘;’ };
arrToArray = strTo.Split(splitter);
MailMessage mm = new MailMessage();
mm.From = new MailAddress(strFrom);
mm.Subject = strSubject;
mm.Body = strBody;
mm.IsBodyHtml = IsBodyHTML;
foreach (string s in arrToArray)
{
mm.To.Add(new MailAddress(s));
}
if (strAttachmentPath != “”)
{
//Add Attachment
Attachment attachFile = new Attachment(strAttachmentPath);
mm.Attachments.Add(attachFile);
}
SmtpClient smtp = new SmtpClient();
try
{
//(4) Send the MailMessage (will use the Web.config settings)
smtp.Host = “YourSmtpServer”;
smtp.EnableSsl = “true/false”; //Depending on server SSL Settings
System.Net.NetworkCredential NetworkCred = new System.Net.NetworkCredential();
NetworkCred.UserName = “Your Email”;
NetworkCred.Password = “Your Password”;
smtp.UseDefaultCredentials = true;
smtp.Credentials = NetworkCred;
smtp.Port = 000;//Specify your port No;
smtp.Send(mm);
mm = null;
smtp = null;
return true;
}
catch (Exception ex)
{
mm = null;
smtp = null;
return false;
}
}
To call this function
protected void Button1_Click(object sender, EventArgs e)
{
//Without Attachment
sendemail(“recepient@abc.com”, “sender@xyz.com”, “Subject”, “Body”, “”, true);
//With Attachment
sendemail(“recepient@abc.com”, “sender@xyz.com”, “Subject”, “Body”, “c:\\mypdf.pdf”, true);}
You can also use threading so that your page does not wait for the email to get send and the users get a quick response and mail is send in background
To do that
protected void Button1_Click(object sender, EventArgs e)
{
System.Threading.Thread threadSendMails;
threadSendMails = new System.Threading.Thread(delegate() { sendemail(“recepient@abc.com”, “sender@xyz.com”, “Subject”, “Body”, “”, true); });
threadSendMails.IsBackground = true;
threadSendMails.Start();
}
Also these are the settings for sending email using Gmail
Host – smtp.gmail.com
SSL – true
PortNo 465 or just comment portNo
UserName – Gmail Email
Password Gmail Password
or
Here I have discussed How to send Emails using C#.
See the function below
public Boolean sendemail(String strTo, string strFrom, string strSubject, string strBody,string strAttachmentPath, bool IsBodyHTML)
{
Array arrToArray;
char[] splitter = { ‘;’ };
arrToArray = strTo.Split(splitter);
MailMessage mm = new MailMessage();
mm.From = new MailAddress(strFrom);
mm.Subject = strSubject;
mm.Body = strBody;
mm.IsBodyHtml = IsBodyHTML;
foreach (string s in arrToArray)
{
mm.To.Add(new MailAddress(s));
}
if (strAttachmentPath != “”)
{
//Add Attachment
Attachment attachFile = new Attachment(strAttachmentPath);
mm.Attachments.Add(attachFile);
}
SmtpClient smtp = new SmtpClient();
try
{
//(4) Send the MailMessage (will use the Web.config settings)
smtp.Host = “YourSmtpServer”;
smtp.EnableSsl = “true/false”; //Depending on server SSL Settings
System.Net.NetworkCredential NetworkCred = new System.Net.NetworkCredential();
NetworkCred.UserName = “Your Email”;
NetworkCred.Password = “Your Password”;
smtp.UseDefaultCredentials = true;
smtp.Credentials = NetworkCred;
smtp.Port = 000;//Specify your port No;
smtp.Send(mm);
mm = null;
smtp = null;
return true;
}
catch (Exception ex)
{
mm = null;
smtp = null;
return false;
}
}
To call this function
protected void Button1_Click(object sender, EventArgs e)
{
//Without Attachment
sendemail(“recepient@abc.com”, “sender@xyz.com”, “Subject”, “Body”, “”, true);
//With Attachment
sendemail(“recepient@abc.com”, “sender@xyz.com”, “Subject”, “Body”, “c:\\mypdf.pdf”, true);}
You can also use threading so that your page does not wait for the email to get send and the users get a quick response and mail is send in background
To do that
protected void Button1_Click(object sender, EventArgs e)
{
System.Threading.Thread threadSendMails;
threadSendMails = new System.Threading.Thread(delegate() { sendemail(“recepient@abc.com”, “sender@xyz.com”, “Subject”, “Body”, “”, true); });
threadSendMails.IsBackground = true;
threadSendMails.Start();
}
Also these are the settings for sending email using Gmail
Host – smtp.gmail.com
SSL – true
PortNo 465 or just comment portNo
UserName – Gmail Email
Password Gmail Password
28.7.09
IMAP setting in Gmail -Outlook
check this link: http://mail.google.com/support/bin/answer.py?answer=77659
or
1. Enable IMAP in Gmail. Don't forget to click Save Changes when you're done.
2. Open Outlook Express.
3. Click the Tools menu, and select Accounts...
4. Click Add, and then click Mail...
5. Enter your name in the 'Display name' field, and click Next.
6. Enter your full email address (username@gmail.com) in the 'Email address' field, and click Next. If you are a Google Apps user, enter your full address in the format 'username@your_domain.com.'
7. For 'My incoming mail server is a ______ server', please select IMAP in the drop-down menu.
8. Enter 'imap.gmail.com' in the 'Incoming mail (POP3, IMAP or HTTP) server' field. Enter 'smtp.gmail.com' in the 'Outgoing mail (SMTP) server' field.
9. Click Next.
10. Enter your full email address (including '@gmail.com' or '@your_domain.com') in the 'Account name' field. Enter your password in the 'Password' field, and click Next.
configuring outlook express
11. Click Finish.
12. Highlight imap.gmail.com under Account, and click Properties.
13. Click the Advanced tab.
14. Under Outgoing Mail (SMTP), check the box next to 'This server requires a secure connection (SSL).'
15. Enter '465' in the 'Outgoing mail (SMTP)' field.
16. Under Incoming mail (IMAP), check the box next to 'This server requires a secure connection (SSL)'. The port will change to '993'.
configuring outlook express
17. Click the Servers tab, and check the box next to 'My server requires authentication.'
configuring outlook express
18. Click OK.
19. Check our recommended client settings, and adjust your client's settings as needed.
Congratulations! You're done configuring your client to send and retrieve Gmail messages.
or
1. Enable IMAP in Gmail. Don't forget to click Save Changes when you're done.
2. Open Outlook Express.
3. Click the Tools menu, and select Accounts...
4. Click Add, and then click Mail...
5. Enter your name in the 'Display name' field, and click Next.
6. Enter your full email address (username@gmail.com) in the 'Email address' field, and click Next. If you are a Google Apps user, enter your full address in the format 'username@your_domain.com.'
7. For 'My incoming mail server is a ______ server', please select IMAP in the drop-down menu.
8. Enter 'imap.gmail.com' in the 'Incoming mail (POP3, IMAP or HTTP) server' field. Enter 'smtp.gmail.com' in the 'Outgoing mail (SMTP) server' field.
9. Click Next.
10. Enter your full email address (including '@gmail.com' or '@your_domain.com') in the 'Account name' field. Enter your password in the 'Password' field, and click Next.
configuring outlook express
11. Click Finish.
12. Highlight imap.gmail.com under Account, and click Properties.
13. Click the Advanced tab.
14. Under Outgoing Mail (SMTP), check the box next to 'This server requires a secure connection (SSL).'
15. Enter '465' in the 'Outgoing mail (SMTP)' field.
16. Under Incoming mail (IMAP), check the box next to 'This server requires a secure connection (SSL)'. The port will change to '993'.
configuring outlook express
17. Click the Servers tab, and check the box next to 'My server requires authentication.'
configuring outlook express
18. Click OK.
19. Check our recommended client settings, and adjust your client's settings as needed.
Congratulations! You're done configuring your client to send and retrieve Gmail messages.
Subscribe to:
Posts (Atom)