C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

display message without using alert option in javascript.


Posted Date: 28 Jun 2008      Posted By: pavan      Member Level: Bronze     Points: 1   Responses: 1



how to display message using javascript.

My requirement is i want to compare password if not same i want to display message using div tag.i dont want to display message using alert.

Any one know reply me back.

Regards,
pavan.





Responses

Author: kapil pandey    28 Jun 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 6

you can use it :
string Message ;
if(Password.text != "xyz")
{
Message = "<Div ><strong>You Password Not match</strong></Div>";
}

td.innerHTML = Message;

///////////////////////////////

HTML Code

<table>
<tr>
<td>
password :<asp:TextBox id="Password" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td id="td" runat="server">

</td></tr>
</table>



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : E-book on Presentation Controls?
Previous : how to clear the session while loging out(ASP.Net,C#)
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use