Click here to Skip to main content
15,893,401 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: page break of rdlc report Pin
Sandeep Mewara7-Aug-10 3:45
mveSandeep Mewara7-Aug-10 3:45 
AnswerRe: page break of rdlc report Pin
pat_vrs10-Aug-10 10:10
pat_vrs10-Aug-10 10:10 
QuestionFTP root folder question Pin
95ulisse6-Aug-10 12:29
95ulisse6-Aug-10 12:29 
AnswerRe: FTP root folder question Pin
NeverHeardOfMe6-Aug-10 13:12
NeverHeardOfMe6-Aug-10 13:12 
GeneralRe: FTP root folder question Pin
95ulisse6-Aug-10 23:53
95ulisse6-Aug-10 23:53 
GeneralRe: FTP root folder question Pin
NeverHeardOfMe7-Aug-10 3:51
NeverHeardOfMe7-Aug-10 3:51 
GeneralRe: FTP root folder question Pin
95ulisse7-Aug-10 4:08
95ulisse7-Aug-10 4:08 
QuestionASP and Html Pin
future38396-Aug-10 5:22
future38396-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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" ><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
Dhyanga6-Aug-10 3:20 
AnswerRe: string format Pin
m@dhu6-Aug-10 3:26
m@dhu6-Aug-10 3:26 
GeneralRe: string format Pin
Dhyanga6-Aug-10 3:41
Dhyanga6-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
Dhyanga9-Aug-10 3:46 
Questioncreate multi language web application in asp.net Pin
Ajeet kumar verma6-Aug-10 3:02
Ajeet kumar verma6-Aug-10 3:02 
AnswerRe: create multi language web application in asp.net Pin
Yusuf6-Aug-10 4:08
Yusuf6-Aug-10 4:08 
Questionasp:Textbox control Pin
Phan7om6-Aug-10 0:50
Phan7om6-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
Phan7om6-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
SreejithKumar M6-Aug-10 0:44 
AnswerRe: Ajax Drag And drop Pin
Sandeep Mewara6-Aug-10 8:01
mveSandeep Mewara6-Aug-10 8:01 
Questionsmall help for email sending Pin
Hemant Thaker5-Aug-10 21:50
Hemant Thaker5-Aug-10 21:50 
AnswerRe: small help for email sending Pin
Yusuf6-Aug-10 5:04
Yusuf6-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.