Click here to Skip to main content
15,032,024 members
Home / Discussions / ASP.NET


AnswerRe: page break of rdlc report Pin
Sandeep Mewara7-Aug-10 3:45
mvaSandeep Mewara7-Aug-10 3:45 
AnswerRe: page break of rdlc report Pin
pat_vrs10-Aug-10 10:10
Memberpat_vrs10-Aug-10 10:10 
QuestionFTP root folder question Pin
95ulisse6-Aug-10 12:29
Member95ulisse6-Aug-10 12:29 
AnswerRe: FTP root folder question Pin
NeverHeardOfMe6-Aug-10 13:12
MemberNeverHeardOfMe6-Aug-10 13:12 
GeneralRe: FTP root folder question Pin
95ulisse6-Aug-10 23:53
Member95ulisse6-Aug-10 23:53 
GeneralRe: FTP root folder question Pin
NeverHeardOfMe7-Aug-10 3:51
MemberNeverHeardOfMe7-Aug-10 3:51 
GeneralRe: FTP root folder question Pin
95ulisse7-Aug-10 4:08
Member95ulisse7-Aug-10 4:08 
QuestionASP and Html Pin
future38396-Aug-10 5:22
Memberfuture38396-Aug-10 5:22 
Hi Guys, I am new in MVC and reading book. I follow his example but after running I faced with error, I can't run the page. Could you please check the following code and tell me was the problem.
thx in advance
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MvcApplication1.Models.GuestResponse>" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""><br />
<br />
<html xmlns="" ><br />
<head runat="server"><br />
    <title>RsvpForm</title><br />
</head><br />
<body><br />
    <br />
    <%using (Html.BeginForm()){ %><br />
    <p>Your Name:<%:Html.TextBoxFor(x=> x.Name) %></p><br />
    <p>Your Email:<%:Html.TextBoxFor(x=> x.Email) %></p><br />
    <p>Your Phone:<%:Html.TextBoxFor(x=> x.Phone) %></p><br />
    <p><br />
        will you attend?<br />
        <%Html.DropDownListFor(x=> x.Attend,  <br />
          new SelectListItem {Text = "Yes", Value = bool.TrueString} <br />
          new SelectListItem {Text = "No", Value = bool.FalseString}    <br />
        }, "choose an option") %><br />
          <br />
    </p><br />
    <input type = "submit" value= "submit RSVP" /><br />
    <br />
</body><br />
</html><br />

after running page, error appear from this line

Line 18: new SelectListItem {Text = "Yes", Value = bool.TrueString}
AnswerRe: ASP and Html Pin
Luc Pattyn7-Aug-10 0:10
sitebuilderLuc Pattyn7-Aug-10 0:10 
Questionstring format Pin
Dhyanga6-Aug-10 3:20
MemberDhyanga6-Aug-10 3:20 
AnswerRe: string format Pin
m@dhu6-Aug-10 3:26
Memberm@dhu6-Aug-10 3:26 
GeneralRe: string format Pin
Dhyanga6-Aug-10 3:41
MemberDhyanga6-Aug-10 3:41 
GeneralRe: string format Pin
Not Active6-Aug-10 8:01
mentorNot Active6-Aug-10 8:01 
AnswerRe: string format Pin
Not Active6-Aug-10 7:59
mentorNot Active6-Aug-10 7:59 
GeneralRe: string format Pin
Dhyanga9-Aug-10 3:46
MemberDhyanga9-Aug-10 3:46 
Questioncreate multi language web application in Pin
Ajeet kumar verma6-Aug-10 3:02
MemberAjeet kumar verma6-Aug-10 3:02 
AnswerRe: create multi language web application in Pin
Yusuf6-Aug-10 4:08
MemberYusuf6-Aug-10 4:08 
Questionasp:Textbox control Pin
Phan7om6-Aug-10 0:50
MemberPhan7om6-Aug-10 0:50 
AnswerRe: asp:Textbox control Pin
Anurag Gandhi6-Aug-10 1:18
professionalAnurag Gandhi6-Aug-10 1:18 
GeneralRe: asp:Textbox control Pin
Phan7om6-Aug-10 1:49
MemberPhan7om6-Aug-10 1:49 
GeneralRe: asp:Textbox control Pin
Not Active6-Aug-10 2:29
mentorNot Active6-Aug-10 2:29 
QuestionAjax Drag And drop Pin
SreejithKumar M6-Aug-10 0:44
MemberSreejithKumar M6-Aug-10 0:44 
AnswerRe: Ajax Drag And drop Pin
Sandeep Mewara6-Aug-10 8:01
mvaSandeep Mewara6-Aug-10 8:01 
Questionsmall help for email sending Pin
Hemant Thaker5-Aug-10 21:50
MemberHemant Thaker5-Aug-10 21:50 
AnswerRe: small help for email sending Pin
Yusuf6-Aug-10 5:04
MemberYusuf6-Aug-10 5:04 

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.