Profile: Lavish Kumar

  • United States
  • 219
  • Thursday, March 13, 2008 8:00 PM

About Author

Based out of New York, USA, Lavish Kumar is a full stack web developer by profession and founder of Striving Programmers, a trusted community for developers that offers a wealth of articles and forums to assist individuals with improving their software development skills.

Lavish 's Posts

Setting up your websites for WordPress and nopCommerce Integration

Setting up your websites for WordPress and nopCommerce Integration is quite easy. Make sure you have installed all the necessary plugins / add-ons and have configured your WordPress site and nopCommerce store site as per the installation guide.

Here is the process to setup your WordPress and nopCommerce websites for this integration.

Installing WordPress and nopCommerce Integration

This integration is completely free and can be installed on any WordPress and nopCommerce store site individually like any other plugin. The integration comes with two custom plugins: one custom plugin for WordPress and other for nopCommerce. Both plugins can technically be used individually on their respective sites (depending on what feature you need).

Overview of WordPress and nopCommerce Integration

Everyone knows that nopCommerce is the leading ASP.NET based open-source eCommerce platform while WordPress is a world famous blogging platform backed by thousands of plugins. Integrating nopCommerce with WordPress can be seen as a natural choice for your business if you would like to take advantage of the best of both worlds.

How to create a multi-language store site with nopCommerce

As a store owner, when you are selling products globally (in multiple countries or regions), it becomes quite important to offer a multilingual website that allows online shoppers to change the default store language to their native language. The good news is that nopCommerce does support multi-language option that enables store owner (or administrators) to add / install multiple languages on the store site. In this tutorial, we will cover these 3 topics: Adding a new language pack, Adding a new custom string resource and Localization settings

3 Ways to create a personalized shopping experience on nopCommerce site

Greeting your customers with a personalized shopping experience is high-priority for most of the retails / online business owners these days. When personalization is done correctly on your business website and your sales are going, this is a sign that you as a retailer / business owner understand your customers needs. In this article, we will discuss 3 ways to create a personalized shopping experience on nopCommerce site.

How to display a loading icon until the page loads completely in nopCommerce

Isn't a great idea to display a nice loading animation or icon on your webpage until the page loads completely? It adds a cool little animated touch on your site and it acts as a buffer that fills in the gap of waiting time. Most of the users / website visitors love to see animation on websites. WHY? well, animation helps in keeping the users engaged with the website and its content. Animation also helps in directing the users to the right directing and keep the users from leaving the site too soon.

In this quick tutorial, we will learn how we can display a loading icon until the page loads completely in nopCommerce.

How to disable wishlist in nopCommerce

Every online store is different and offers a different set of featues to its customers depending on the type of business, product, service(s), industry and customer's interest. nopCommerce offers a wealth of features that any store owner may need in order to run his / her e-Commerce business. One of these features includes wishlist.

What if you are not interested in offering this feature to your customers? What if you want to disable wishlist of your nopCommerce store site? Well, there is a way to accomplish this right from the administration section.

How to change or add topic template in nopCommerce

nopCommerce offers a great functionalilty of "topic" pages that allow store owners / managers to create pages right from the administration section without even touching the source code. Creating these topic pages on the fly from the administration section DOES NOT require any technical skills. As long as you have the access to the administration section (& required privilege), you can easily create a topic page.

But, what if you (as a store owner / manager) want to change the layout of the topic pages? What if you want topic page 1 to look different from topic page 2? Let's look into the process that allows you to choose different templates for different topic pages.

How to use Salesforce Marketing Cloud (SFMC) LookupOrderedRows AMPScript to search data in a data extension that returns multiple rows

Today, we will talk about Salesforce Marketing Cloud (SFMC) and AMPScript (LookupOrderedRows AMPScript to be specific). Salesforce Marketing Cloud (SFMC) is a customer relationship management (CRM) platform for marketers that allows marketers to create 1-to-1 journeys across the entire Salesforce Customer Success Platform -- journeys that span not only digital marketing, but sales and service as well. This simplifies data management, segmentation and campaign management, making it easy to create compelling digital marketing campaigns, boost customer engagement and ultimately drive more leads into Salesforce.

In this tutorial, we will go over the LookupOrderedRows AMPScript that can be used to search data in a data extension that returns multiple rows.

How to redirect users based on referrer URL using JavaScript

In this tutorial, you will learn how you can redirect users on your website based on referrer URL using JavaScript. According to W3Schools, "document.referrer" returns a string, representing the URL of the document that loaded the current document. Returns the entire URL, including the protocol (like http://). If the current document was not opened through a link (for example, through a bookmark), an empty string is returned.

This solution can check if the user (site traffic) is coming from a specific webpage or a website URL and based on that it will redirect the users accordingly.

Let's dive in!

It seems like your "Web Sites" contains all the files and folders of your current live website.

Just create New Website : Right click on "Web Sites" > New

and after that create new virtual directory in it and add your test website folder in that application and make the test-website folder as application.

This should work...

8 years ago

Hey duncan,

You should go with what Ala'a suggested you, BlogEngine.Net

It is a full featured open source blogging platform which is really good...

8 years ago

Here's the code:


<asp:Label ID="Label1" runat="server" style="font-size: large" 
            Text="To Website Owner Name: "></asp:Label>
        <br />
        <hr />
        <br />
        <asp:Label ID="Label2" runat="server" style="font-size: large"
            Text="Sender's Name: "></asp:Label>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
            ErrorMessage="RequiredField" Font-Size="7.4pt">Name is required</asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="Label3" runat="server" style="font-size: large"
            Text="Sender E-mail:"></asp:Label>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
            ErrorMessage="RequiredField" Font-Size="7.4pt">Email is required</asp:RequiredFieldValidator>
        <br />
        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBox2"
             CssClass="ValidationMessage" ErrorMessage="Required Field"  ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
            Font-Size="7.5pt">Please enter a valid e-mail</asp:RegularExpressionValidator>
        <br />
        <asp:Label ID="Label4" runat="server" style="font-size: large" Text="Message:"></asp:Label>
        <br />
        <asp:TextBox ID="TextBox3" runat="server" Height="196px" TextMode="MultiLine"
        <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3"
            ErrorMessage="RequiredField" Font-Size="7.4pt">Message is required</asp:RequiredFieldValidator>
        <br />
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click"
            Text="Send Message" />
            <hr />
            <asp:Panel runat="server" ID="EmailSentForm" Height="13px" Width="471px">
        <span style="font-size: 8pt">
        Your email has been sent... thank you! </span>


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
using System.IO;
public partial class mail : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        EmailSentForm.Visible = false;
    protected void Button1_Click(object sender, EventArgs e)
        SmtpClient smtpClient = new SmtpClient();
        MailMessage message = new MailMessage();
        message.Subject = "E-mail from your website (Contact Us)";
        message.IsBodyHtml = true;
        message.Body = "<h2>E-mail From<code></code> </h2><p> <em></em></p>" + System.Environment.NewLine + System.Environment.NewLine + "<br/>" + "<br/>";
        message.Body = message.Body + "Sender's Name: " + TextBox1.Text + System.Environment.NewLine + System.Environment.NewLine + "<br/>" + "<br/>";
        message.Body = message.Body + "Sender's E-mail: " + TextBox2.Text + System.Environment.NewLine + System.Environment.NewLine + "<br/>" + "<br/>";
        message.Body = message.Body + "Message: " + System.Environment.NewLine + System.Environment.NewLine + "<br/>" + "<br/>";
        message.Body = message.Body + TextBox3.Text;
        smtpClient.EnableSsl = true;
        EmailSentForm.Visible = Visible;

Just change "" in code behind (.cs) page with your details and you're good to go...

8 years ago

"GO" doesn't work in Visual Studio, ruan the script in SQL Server Management Studio and it should work.

8 years ago

Just install SQL Server 2008 Express on your system....

8 years ago

M Willey wrote:

how to convert mdf file version 655 to 612 in sql sever or in other words .mdf file created in 2008 to .mdf 2005 file ???

Well, you can't change it from upper to lower version on in other words sql 2008 to sql 2005
The best option would be just generate script of your 2008 database tables along with the data and run these table scripts to newly created sql 2005 database.

Question: How to generate sql scripts of sql 2008 database?
Answer: It's always better to use SSMS (SQL Server Mangement Studio)

1) Right click the database in sql 2008 which you want to do with
2) Choose Task and Generate script
3) Make sure select "script all objects in the database"
4) In the Script Option, choose the item Script for SQL server version to SQL2005
and Script data to be true! Those two are the key steps!
5) Here you go to check the generated script. That's it !

Now you have your script and you can run this script against your newly created sql 2005 database

8 years ago

Yes, of course you can modify the site after you launch it.  

In general, you do not want to directly update your live site. I would keep a development copy on my local machine > make changes on my local machine and deploy to the live server.

It's always a good practice to take a backup of your database before making any changes to it.

8 years ago

If your page is named Index.aspx, just add a VB class file named Index.aspx.vb to your project, and then change the page element at the top of your aspx file as follows:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Index.aspx.vb" Inherits="Index" %>

Finally, make sure the class you have added to your project is named Index, is marked as partial, and inherits from System.Web.UI.Page, as follows:

Partial Class Default3
    Inherits System.Web.UI.Page

End Class

And repeat this process for each page.

8 years ago