Posts

Sending an e-mail message through SQL

EXEC sp_send_dbmail @profile_name = 'PinalProfile' , @recipients = 'test@Example.com' , @subject = 'Test message' , @body = 'This is the body of the test message. Congrates Database Mail Received By you Successfully.' http://msdn.microsoft.com/en-us/library/ms190307.aspx http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/

Create Online Membership of EPFO

http://epfindia.gov.in/

How to configure ASP.NET Membership with role management database in SQL Server

http://msdn.microsoft.com/en-us/library/ff647401.aspx  or Execute Aspnet_regsql.exe from v/s command prompt and add membership tables in your sqlserver. Add in web.config  <authentication mode="Forms">       <forms loginUrl="~/Account/LogOn" timeout="2880" />     </authentication>     <roleManager enabled="true" defaultProvider="SqlRoleManager">       <providers>         <add name="SqlRoleManager"              type="System.Web.Security.SqlRoleProvider"              connectionStringName="Your Connection Name"              applicationName="Application Name" />       </providers>     </roleMan...

Chandra Bhushan Prasad: How to do paging in MVC 3

Chandra Bhushan Prasad: How to do paging in MVC 3 : Follow to do paging by JQuery in MVC 3 http://mkdot.net/mknetug/mk_web/b/hajan/archive/2011/02/10/table-sorting-amp-pagination-with-jquery...

How to do paging in MVC 3

Image
Follow to do paging by JQuery in MVC 3 http://mkdot.net/mknetug/mk_web/b/hajan/archive/2011/02/10/table-sorting-amp-pagination-with-jquery-and-razor-in-asp-net-mvc.aspx http://www.box.com/shared/5bfz4vk9f1 Or Server-Side Paging with the Entity Framework and ASP.NET MVC 3 http://msdn.microsoft.com/en-us/magazine/gg650669.aspx Data Points Server-Side Paging with the Entity Framework and ASP.NET MVC 3 Julie Lerman Download the Code Sample In my February Data Points column, I showed off the jQuery DataTables plug-in and its ability to seamlessly handle huge amounts of data on the client side. This works well with Web applications where you want to slice and dice large amounts of data. This month, I’ll focus on using queries that return smaller payloads to enable a different type of interaction with the data. This is especially important when you’re targeting mobile applications. I’ll take advantage of features introduced in ASP.NET MVC 3 and demonstrate how to use these tog...

How to create RSS Feed in Asp.Net

using System; using System.Data; using System.Configuration; using System.Data.SqlClient; using System.Text; using System.Xml; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string connectionString = ConfigurationManager.ConnectionStrings["TestConnection"].ConnectionString; DataTable dt = new DataTable(); SqlConnection conn = new SqlConnection(connectionString); using (conn) { SqlDataAdapter ad = new SqlDataAdapter("SELECT * from tblRSS", conn); ad.Fill(dt); } Response.Clear(); Response.ContentType = "text/xml"; XmlTextWriter TextWriter = new XmlTextWriter(Response.OutputStream, Encoding.UTF8); TextWriter.WriteStartDocument(); //Below tags are mandatory rss tag TextWriter.WriteStartElement("rss"); TextWriter.WriteAttributeString("versio...

Adding the CANONICAL tag to my page for SEO through code behind?

Dim seoTag As HtmlLink = New HtmlLink ()     seoTag . Attributes . Add ( "rel" , "canonical" )     seoTag . Href = "http://www.erate.co.za/"     Header . Controls . Add ( seoTag )