Click here to Skip to main content
15,877,145 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: The steps of hosting a website Pin
Nitish Arora - Web Developer(Learner)15-Dec-11 8:26
Nitish Arora - Web Developer(Learner)15-Dec-11 8:26 
Questioncreate keep me logged in Pin
Jitendra Parida - Jeetu14-Dec-11 23:54
Jitendra Parida - Jeetu14-Dec-11 23:54 
AnswerRe: create keep me logged in Pin
R. Giskard Reventlov15-Dec-11 21:34
R. Giskard Reventlov15-Dec-11 21:34 
GeneralRe: create keep me logged in Pin
Jitendra Parida - Jeetu16-Dec-11 1:45
Jitendra Parida - Jeetu16-Dec-11 1:45 
AnswerRe: create keep me logged in Pin
thatraja16-Dec-11 2:12
professionalthatraja16-Dec-11 2:12 
Questionevent not firing from user control Pin
V.14-Dec-11 23:06
professionalV.14-Dec-11 23:06 
QuestionCannot retrive a single record from Anonymous Type Pin
awedaonline14-Dec-11 21:22
awedaonline14-Dec-11 21:22 
QuestionMVC3: How to get the text box value as parameter? Pin
Tesic Goran14-Dec-11 18:42
professionalTesic Goran14-Dec-11 18:42 
Hi,

I'm new in MVC3 and have a simple question. I have Index.cshtml file (view) with 2 controls text box and hyper link:

@Html.TextBox("contId")
@Html.ActionLink("Query", "Query")

In controller class I'd like to have an action that handles clicking hyper link and getting the value of text box above in order to use it in LINQ construction as follows:

C#
public ActionResult Query()
{
    // How to get text box value?
    int cid = ... ?

    var data = from continents in db.Continents
               where continents.ContinentID == cid
               select continents;

    return View(data);
}


The result of LINQ query should be displayed on next view.

Thank you in advance.

Goran

modified 15-Dec-11 0:57am.

QuestionMembership & Role Pin
sk_ko14-Dec-11 17:06
sk_ko14-Dec-11 17:06 
QuestionHow to achieve this in GridView? Pin
bot66614-Dec-11 16:57
bot66614-Dec-11 16:57 
AnswerRe: How to achieve this in GridView? Pin
Ramkumar_S14-Dec-11 18:54
Ramkumar_S14-Dec-11 18:54 
GeneralRe: How to achieve this in GridView? Pin
bot66614-Dec-11 19:47
bot66614-Dec-11 19:47 
AnswerRe: How to achieve this in GridView? Pin
www.Developerof.NET19-Dec-11 3:18
www.Developerof.NET19-Dec-11 3:18 
QuestionProblem to access Generic handler in asp.net 4.0 Pin
cocoonwls14-Dec-11 16:26
cocoonwls14-Dec-11 16:26 
AnswerRe: Problem to access Generic handler in asp.net 4.0 Pin
cocoonwls14-Dec-11 21:00
cocoonwls14-Dec-11 21:00 
GeneralRe: Problem to access Generic handler in asp.net 4.0 Pin
Not Active15-Dec-11 0:28
mentorNot Active15-Dec-11 0:28 
GeneralRe: Problem to access Generic handler in asp.net 4.0 Pin
cocoonwls18-Dec-11 14:00
cocoonwls18-Dec-11 14:00 
Questionhow to get the dynamically created radiobutton checked values Pin
MalarGayu14-Dec-11 12:33
MalarGayu14-Dec-11 12:33 
AnswerRe: how to get the dynamically created radiobutton checked values Pin
Nitish Arora - Web Developer(Learner)15-Dec-11 8:33
Nitish Arora - Web Developer(Learner)15-Dec-11 8:33 
GeneralRe: how to get the dynamically created radiobutton checked values Pin
MalarGayu15-Dec-11 9:21
MalarGayu15-Dec-11 9:21 
GeneralRe: how to get the dynamically created radiobutton checked values Pin
MalarGayu15-Dec-11 15:01
MalarGayu15-Dec-11 15:01 
GeneralRe: how to get the dynamically created radiobutton checked values Pin
MalarGayu15-Dec-11 17:35
MalarGayu15-Dec-11 17:35 
GeneralRe: how to get the dynamically created radiobutton checked values Pin
Ibrahim Hebish11-Jan-12 0:59
Ibrahim Hebish11-Jan-12 0:59 
Questionhow to pass selected value to subreport(crystal report) Pin
Ramkumar_S14-Dec-11 0:18
Ramkumar_S14-Dec-11 0:18 
Questionsearching in populated GridView using Select statements Pin
Taysseer Kadri13-Dec-11 22:15
Taysseer Kadri13-Dec-11 22:15 

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.