Failed prop type: Invalid prop `type` of value `search` supplied to `Input`

Getting failed prop type due to type=”search” on input.
“Failed prop type: Invalid prop type of value search supplied to Input, expected one of [“text”,”number”,”password”,”date”,”date-range”,”email”,”tel”]”


The input with type=”search” works as intended, but it keeps giving me console errors. Anyone knows why? And how to fix it?

read more

How to get the Text value of Anchor tag inside this li class

Sorry for the noob question, I’m still learning in Javascript. I just want to get the “Welcome” text when the page load and save it to a variable so I could make a string compare.

<nav id="top-menu-nav">
    <ul id="top-menu" class="nav">
        <li id="menu-item-103" class="menu-item">
            <a href="#">About Us</a>
        <li id="menu-item-25417" class="menu-item">
            <a href="#">Offers</a>
        <li id="menu-item-102" class="menu-item">
            <a href="#">FAQ</a></li>
        <li id="menu-item-104" class="menu-item">
            <a href="#">Corporate</a></li>
        <li id="menu-item-100" class="menu-item">
            <a href="#">Contact Us</a></li>
        <li class="login">
            <a href="#">Welcome</a>

read more

sqlCommand does not contain a definition for Parameters

Error 1 ‘vijaystore.DAL.sqlCommand’ does not contain a definition for
‘Parameters’ and no extension method ‘Parameters’ accepting a first
argument of type ‘vijaystore.DAL.sqlCommand’ could be found (are you
missing a using directive or an assembly
reference?) E:\VIJAY\vijaystore\vijaystore\DAL\userDAL.cs 69 21 vijaystore

    String sql = "INSERT INTO tbl_user (first_name, last_name, email, username, password, contact, address, gender, user_type, added_date, added_by) VALUES (@first_name, @last_name, @email, @username, @password, @contact, @address, @gender, @user_type, @added_date, @added_by)";
    sqlCommand cmd = new sqlCommand(sql, conn);

    cmd.Parameters.AddwithValue("@first_name", u.first_name);
    cmd.Parameters.AddwithValue("@last_name", u.last_name);
    cmd.Parameters.AddwithValue("@username", u.username);
    cmd.Parameters.AddwithValue("@password", u.password);
    cmd.Parameters.AddwithValue("@address", u.address);
    cmd.Parameters.AddwithValue("@gender", u.gender);
    cmd.Parameters.AddwithValue("@user_type", u.user_type);
    cmd.Parameters.AddwithValue("@added_date", u.added_date);
    cmd.Parameters.AddwithValue("@added_by", u.added_by);

read more