Click here to Skip to main content
15,890,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to add Items in DropDown List Programitically ??? Pin
M.Farrukh Abbas21-Sep-14 19:04
M.Farrukh Abbas21-Sep-14 19:04 
AnswerRe: How to add Items in DropDown List Programitically ??? Pin
Arvind Zamakia26-Sep-14 3:28
Arvind Zamakia26-Sep-14 3:28 
QuestionWhy is it so difficult to make search by dropdownlist value? (Solved) Pin
samflex20-Sep-14 15:10
samflex20-Sep-14 15:10 
AnswerRe: Why is it so difficult to make search by dropdownlist value? Pin
M.Farrukh Abbas21-Sep-14 2:02
M.Farrukh Abbas21-Sep-14 2:02 
GeneralRe: Why is it so difficult to make search by dropdownlist value? Pin
samflex21-Sep-14 4:08
samflex21-Sep-14 4:08 
AnswerRe: Why is it so difficult to make search by dropdownlist value? (Solved) Pin
Arvind Zamakia26-Sep-14 3:33
Arvind Zamakia26-Sep-14 3:33 
GeneralRe: Why is it so difficult to make search by dropdownlist value? (Solved) Pin
samflex26-Sep-14 8:25
samflex26-Sep-14 8:25 
QuestionJavaScript Code not working properly for a registration ASP page. Pin
omrohit120-Sep-14 6:10
omrohit120-Sep-14 6:10 
I have a register form to make. But client side validation not working properly. Can anyone help me out.

Thanks in Advance.

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script language="javascript" type="text/javascript">
function Validate() {
var summary = "";
summary += isValidName();
summary += isValidEmail();
summary += isValidMobile();
if (summary != "") {
//alert(summary);
return false;
}
else {
return true;
}
}
function isValidName() {
var Name = document.getElementById("TxtName");
if (Name.value == "") {
    alert('Please provide a valid Name');
    Name.focus;
    return false
    }
else {
  return "";
}
}
function isValidEmail() {
    var email = document.getElementById('TxtEmail');
    var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    if (!filter.test(email.value)) {
        alert('Please provide a valid email address');
        email.focus;
        return false;
    }
}
function isValidMobile() {
var Mobile = document.getElementById("TxtMoible");
    if (Mobile.value == "") {
        alert('Please provide a valid Mobile');
        Mobile.focus;
        return false
    }
else {
    return "";
}
}
</script>
</head>
<body>

<%--<form name="myForm" action="demo_form.asp" onsubmit="return validateForm();" method="post">
Email: <input type="text" name="email">
<input type="submit" value="Submit">--%>

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

        <table style="width:100%;">
            <tr>
                <td>
                    Name
                </td>
                <td>
                    <input id="TxtName" type="text" /></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Email ID</td>
                <td>
                    <input id="TxtEmail" type="text" /></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Confirm Email ID</td>
                <td>
                    <input id="TxtConfirmEmail" type="text" /></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Password</td>
                <td>
                    <input id="TxtPass" type="text" /></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Confirm Password</td>
                <td>
                    <input id="TxtConfirmPass" type="text" /></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    Mobile No.</td>
                <td>
                    <input id="TxtMobile" type="text" /></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Button ID="BtnSubmit" runat="server" onClientClick="return Validate();"
                                                   onClick="Button1_Click" Text="Register Now" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>

    </div>
    </form>
    </form>
</body>
</html>

AnswerRe: JavaScript Code not working properly for a registration ASP page. Pin
Kornfeld Eliyahu Peter20-Sep-14 8:32
professionalKornfeld Eliyahu Peter20-Sep-14 8:32 
AnswerRe: JavaScript Code not working properly for a registration ASP page. Pin
Richard Deeming22-Sep-14 2:27
mveRichard Deeming22-Sep-14 2:27 
QuestionGetting error ORA12541 while connecting to oracle through ASP.net Pin
Akshay Dukhande19-Sep-14 0:01
Akshay Dukhande19-Sep-14 0:01 
AnswerRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
jkirkerx19-Sep-14 7:47
professionaljkirkerx19-Sep-14 7:47 
GeneralRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
Akshay Dukhande20-Sep-14 6:34
Akshay Dukhande20-Sep-14 6:34 
GeneralRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
jkirkerx20-Sep-14 8:07
professionaljkirkerx20-Sep-14 8:07 
GeneralRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
Akshay Dukhande21-Sep-14 19:20
Akshay Dukhande21-Sep-14 19:20 
GeneralRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
jkirkerx22-Sep-14 13:30
professionaljkirkerx22-Sep-14 13:30 
AnswerRe: Getting error ORA12541 while connecting to oracle through ASP.net Pin
thatraja21-Sep-14 19:28
professionalthatraja21-Sep-14 19:28 
QuestionPosting a form to a table Pin
Member 914293618-Sep-14 10:23
Member 914293618-Sep-14 10:23 
AnswerRe: Posting a form to a table Pin
Richard Deeming19-Sep-14 1:34
mveRichard Deeming19-Sep-14 1:34 
QuestionI am having problem updating one table by selecting values from dynamic dropdownlist from another table Pin
samflex18-Sep-14 5:40
samflex18-Sep-14 5:40 
AnswerRe: I am having problem updating one table by selecting values from dynamic dropdownlist from another table Pin
jkirkerx18-Sep-14 13:25
professionaljkirkerx18-Sep-14 13:25 
GeneralRe: I am having problem updating one table by selecting values from dynamic dropdownlist from another table Pin
samflex18-Sep-14 17:28
samflex18-Sep-14 17:28 
GeneralRe: I am having problem updating one table by selecting values from dynamic dropdownlist from another table Pin
jkirkerx18-Sep-14 17:45
professionaljkirkerx18-Sep-14 17:45 
GeneralRe: I am having problem updating one table by selecting values from dynamic dropdownlist from another table Pin
jkirkerx18-Sep-14 18:04
professionaljkirkerx18-Sep-14 18:04 
QuestionHow to check for validation as well as run code in code page on submit button press Pin
omrohit118-Sep-14 3:39
omrohit118-Sep-14 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.