Urgent ****How to Design a Page using cshtml****

Posted by Nismeh under ASP.NET MVC on 12/26/2013 | Points: 10 | Views : 4381 | Status : [Member] | Replies : 4
Hi All,

I've started to work with MVC. Befor this I've never worked with MVC. I've worked only on normal .net framework.

Now I want to design a page using cshtml. But I dont know I can do it?

Can you please suggest me that how can I go ahead.?

I've to deliver my code by today only.

IT KNOWLEDGE IS APPLIED KNOWLEDGE
So Just Do It



Responses

Posted by: kgovindarao523-21772 on: 12/26/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

you can use general html tags to design a cshtml page.

For example I here Provide a login Page

<table cellpadding="3px" border="3px" style="height: 20px; table-layout: auto;">
<caption style="font-weight: bold; color: Maroon">
Log In</caption>
<tr>
<td style="border: 1px; font-style: italic; font-size: 14px">
User Name
</td>
<td>
<input id="userName" type="text" name="userName" />
</td>
</tr>
<tr>
<td style="border: 1px; font-style: italic; font-size: 14px; width: 50%;">
Password
</td>
<td style="border: 1px; font-style: italic; font-size: 14px">
<input id="Password" type="password" name="password" />
</td>
</tr>
</table>
<table align="center" style="height: 20px; table-layout: auto;">
<tr>
<td>
<input id="SignIn" type="submit" value="SignIn" />
</td>
</tr>
<tr>
<td>
<a href="" style="font-size:12px;">Forgot Password</a>
</td>
</tr>
</table>

One thing you have to remember that, In Mvc, there is big role in name value pairs. so don't forget to give name attribute for respective controls(if you want to post the form).

Thank you,
Govind

Thank you,
Govind

Nismeh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 12/27/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dot worry. I thing if you working on forms design, then your MVC will automatically provide all the html tags automatically.

See the below link:-
http://pluralsight.com/training/Player?author=scott-allen&name=mvc4-building-m3-views&mode=live&clip=0&course=mvc4-building

Nismeh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhukiran345 on: 12/27/2013 [Member] Starter | Points: 25

Up
0
Down
Dear Nismeh,
Dont worry that you can do or not. It is very easy to develop applications in MVC if once you look after basics. Here i have provided an article which covers Introduction to MVC and sample example with screen shots. Once go through it. It may Help you.

http://www.dotnetfunda.com/articles/show/2245/know-what-is-mvc-and-develop-a-simple-aplication

Thanks,
Prabhu Kiran B,

(Mark as answer if this helps you.)

Thanks,
Prabhu Kiran Bommareddy

Nismeh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bageshkumarbagi on: 12/27/2013 [Member] Starter | Points: 25

Up
0
Down
hi

Refer this tutorail:
http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/intro-to-web-pages-programming
http://www.asp.net/mvc/mvc3

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied

Nismeh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response