Saturday, June 20, 2026

Email Message Draft

ONLY  BODY SECTION  


mail.Body = @"

<html>

<head></head>

<body style='font-family:Arial, Helvetica, sans-serif; font-size:14px;'>


<p>Dear Student,</p>


<p>

Thank you for registering for the <b>Yoga Demo Session</b> with

<b>NRsolution4u</b>.

</p>


<p>

To complete your registration, please verify your email address using the

One-Time Password (OTP) below:

</p>


<p style='font-size:20px; color:#0066CC;'>

<b>Your OTP: " + otp + @"</b>

</p>


<p>

This OTP is valid for <b>10 minutes</b>.

Please do not share it with anyone.

</p>


<p>

If you did not request this registration, please ignore this email.

</p>


<p>

Thank you for choosing <b>NRsolution4u</b>.

We look forward to welcoming you to the Yoga Demo Session.

</p>


<br />


<p>

Regards,<br /><br />


<b>Team NRsolution4u</b><br />


Email:

<a href='mailto:info@nrsolution4u.com'>

info@nrsolution4u.com

</a>

<br />


Website:

<a href='https://www.nrsolution4u.com'>

www.nrsolution4u.com

</a>


</p>


</body>

</html>";

Display checkbox list selected text in label control

  StringBuilder sb = new StringBuilder();


        foreach (ListItem item in CheckBoxList1.Items)

        {

            if (item.Selected)

            {

                sb.Append(item.Text + ", ");

            }

        }

        lblfocdata.Text=sb.ToString();


Display professional message in aspx page

 <table align="center" cellpadding="10" cellspacing="0" border="1" width="700">

        <tr>

            <td align="center">


                  


                <asp:Label ID="lblTitle" runat="server"

                    Text="Registration Successful"

                    Font-Bold="True"

                    Font-Size="X-Large"

                    ForeColor="#a33987">

                </asp:Label>


                <br /><br />


                <asp:Label ID="lblMessage" runat="server">

                </asp:Label>


                <br />


                <asp:Literal ID="Literal1" runat="server" Text="

                    <b>Dear Student,</b><br /><br />


                    Thank you for registering for the <b>Yoga Demo Session</b>.<br /><br />


                    Your registration has been received successfully.

                    Our admin team will verify your registration and send the

                    <b>Google Meet Link</b> along with the

                    <b>Demo Class Schedule</b> to your registered email address

                    within <b>24 hours</b>.<br /><br />


                    Kindly check your <b>Inbox</b> as well as your

                    <b>Spam/Junk</b> folder for the email.<br /><br />


                    Thank you, and we look forward to seeing you in the demo session!<br /><br />


                    <b>Team NRsolution4u</b>">


                 

                </asp:Literal>  <br /> 


                 <a href="Default.aspx" style="color: #666; font-size: 0.9rem;">&#8592; Back</a> <br />

            </td>

        </tr>

    </table>

IMP TOPIC

 [1] FULL LENGTH DROP DOWN LIATS 

<asp:DropDownList ID="ddlStudentType" runat="server"
CssClass="fullDropdown">
<asp:ListItem Text="Indian Student" Value="Indian"></asp:ListItem>
<asp:ListItem Text="International Student" Value="International"></asp:ListItem>
</asp:DropDownList>


CSS  CREATE 

.fullDropdown {
width: 100%;
height: 38px;
padding: 6px 12px;
border: 1px solid #ced4da;
border-radius: 4px;
box-sizing: border-box;
}




Saturday, May 23, 2026

QR CODE GENERATOR

 https://chromewebstore.google.com/detail/qr-code-generator/afpbjjgbdimpioenaedcjgkaigggcdpp?hl=en

Thursday, May 21, 2026

Website popup in aspx page if open website

 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>


<!DOCTYPE html>

<html>

<head runat="server">

    <title>Popup Example</title>


    <style>

        /* Background overlay */

        .popup-overlay {

            position: fixed;

            top: 0;

            left: 0;

            width: 100%;

            height: 100%;

            background: rgba(0,0,0,0.6);

            display: flex;

            justify-content: center;

            align-items: center;

            z-index: 9999;

        }


        /* Popup box */

        .popup-box {

            background: white;

            width: 400px;

            padding: 20px;

            border-radius: 10px;

            text-align: center;

            box-shadow: 0px 0px 10px gray;

        }


        .popup-box h2 {

            color: #0d6efd;

        }


        .close-btn {

            background: red;

            color: white;

            border: none;

            padding: 10px 20px;

            cursor: pointer;

            border-radius: 5px;

        }


        .admission-btn {

            background: green;

            color: white;

            padding: 10px 20px;

            text-decoration: none;

            border-radius: 5px;

            display: inline-block;

            margin-top: 10px;

        }

    </style>


    <script>

        // Show popup when page opens

        window.onload = function () {

            document.getElementById("popup").style.display = "flex";

        }


        // Close popup

        function closePopup() {

            document.getElementById("popup").style.display = "none";

        }

    </script>


</head>

<body>


    <form id="form1" runat="server">


        <!-- Popup -->

        <div id="popup" class="popup-overlay">


            <div class="popup-box">

                <h2>Admission Open 2026</h2>


                <p>

                    Join NRsolution4u Training Programs

                </p>


                <a href="Admission.aspx" class="admission-btn">

                    Apply Now

                </a>


                <br /><br />


                <button type="button" class="close-btn" onclick="closePopup()">

                    Close

                </button>

            </div>


        </div>


    </form>


</body>

</html>

Website pop up box using HTML

 <!DOCTYPE html>

<html lang="en">

<head>

   


    <style>

       


        /* Popup Background */

        .popup{

            display: flex;

            position: fixed;

            top: 0;

            left: 0;

            width: 100%;

            height: 100%;

            background: rgba(0,0,0,0.6);

            justify-content: center;

            align-items: center;

        }


        /* Popup Box */

        .popup-content{

            background: #fff;

            width: 350px;

            padding: 25px;

            border-radius: 10px;

            text-align: center;

            position: relative;

            box-shadow: 0 0 15px rgba(0,0,0,0.3);

        }


        .popup-content h2{

            color: #007bff;

            margin-bottom: 10px;

        }


        .popup-content p{

            margin-bottom: 20px;

        }


        .admission-btn{

            display: inline-block;

            padding: 10px 20px;

            background: #28a745;

            color: white;

            text-decoration: none;

            border-radius: 5px;

            font-size: 16px;

        }


        .admission-btn:hover{

            background: #218838;

        }


        /* Close Button */

        .close{

            position: absolute;

            top: 10px;

            right: 15px;

            font-size: 22px;

            cursor: pointer;

            color: red;

        }

    </style>

</head>

<body>


    <!-- Popup -->

    <div class="popup" id="popupBox">

        <div class="popup-content">

            <span class="close" onclick="closePopup()">&times;</span>


            <h2>Admission Open 2026</h2>


            <p>

                Apply now for admission and start your career journey with us.

            </p>


            <a href="https://youradmissionlink.com" 

               target="_blank" 

               class="admission-btn">

               Apply Now

            </a>

        </div>

    </div>


    <script>

        // Close Popup Function

        function closePopup() {

            document.getElementById("popupBox").style.display = "none";

        }


        // Popup automatically opens when website loads

        window.onload = function () {

            document.getElementById("popupBox").style.display = "flex";

        };

    </script>


</body>

</html>

Email Message Draft

ONLY  BODY SECTION   mail.Body = @" <html> <head></head> <body style='font-family:Arial, Helvetica, sans-serif...