.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> MVC >> Post New QuestionBookmark and Share Subscribe to Forum

validation using mvc dynamic

Posted By: Sethuraman     Posted Date: March 22, 2011    Points:5   Category :MVC
HI all


<div id="textcontent">
<% using (Html.BeginForm()) { %>
<table>
<tr>
<td>User Name</td>
<td><%=Html.TextBox("txt_username","", new { style = "width:150px" })%> </td>
</tr>

<tr>
<td>Password</td>
<td>
<%=Html.Password("txt_password", "", new { style = "width:150px" })%></td>
</tr>

<tr>
<td colspan="2" align="center" ><input type="submit" value="Login" class="logon" /> <input type="submit" value="Clear" class="logon" /></td>
</tr>
</table>

<% } %>
</div>


this id my code what i have given in dynamic view i need client side validation


Responses
Author: Karthikeyan Anbarasan       [Moderator]      
Posted Date: March 23, 2011     Points: 20   

Hi,

Please post your requirement briefly... what type of validation

Thanks
Karthik
http://www.f5debug.net
Mark as Answer if the answer solves your issue!!!
Author: Sethuraman             
Posted Date: March 24, 2011     Points: 20   

Hi

Before going to controller i need to validate where the textbox is empty or not , if empty i do not allow next step .

Author: Maverick             
Posted Date: March 24, 2011     Points: 20   

Hello,

You could to this by using javascript

Thnaks,
Maverick

Thanks,
Maverick


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend