Click here to Skip to main content
16,015,393 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralMessage Closed Pin
11-Nov-13 7:33
Maniteja.Vegi11-Nov-13 7:33 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Richard Deeming11-Nov-13 7:38
mveRichard Deeming11-Nov-13 7:38 
GeneralMessage Closed Pin
11-Nov-13 7:49
Maniteja.Vegi11-Nov-13 7:49 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Richard Deeming11-Nov-13 7:51
mveRichard Deeming11-Nov-13 7:51 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Maniteja.Vegi11-Nov-13 7:38
Maniteja.Vegi11-Nov-13 7:38 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Chris Quinn11-Nov-13 23:54
Chris Quinn11-Nov-13 23:54 
GeneralRe: Please help me or suggest in the my project description and feilds Pin
Richard MacCutchan11-Nov-13 22:46
mveRichard MacCutchan11-Nov-13 22:46 
QuestionInsert controller return list into ListView over webpage Pin
gshhar11-Nov-13 3:19
gshhar11-Nov-13 3:19 
i have webpage with DropDownList with items inside (comes from my database). Each item i my object property. after choose an item and click the Select Button i reach to this controller method:

C#
[HttpPost]
public ActionResult Index(string File)
{
    var list = db.Captures.Where(x => x.protocol_site == File).ToArray();
    ViewBag.Files = list;
    return View();
}


Index.cshtml:

C#
<pre lang="HTML">@model IEnumerable<ApplicationMVC.Models.Capture>

@{
    ViewBag.Title = "Index";
}

<!DOCTYPE html>
    @using (Html.BeginForm())
    {
        <div>
            @Html.DropDownList(
               "File", new SelectList(ViewBag.Files,
               "protocol_site", "protocol_site"),
               "Select",
               new { style = "vertical-align:middle;" }
               )
            <button type="submit">Select</button>
        </div>
    }
</body>


After choose my item from my DropDownList and hit the button the return List from Index controller method in inserted again into my DropDownList but this is not what i want, i want this list to view on something like ListView or some List with columns in order to show All my object property. how can i do that ?
QuestionSize of the Div based on the Screen Resolution Pin
cybersavvy10-Nov-13 23:20
cybersavvy10-Nov-13 23:20 
AnswerRe: Size of the Div based on the Screen Resolution Pin
Gopi Kishan Mariyala11-Nov-13 16:43
Gopi Kishan Mariyala11-Nov-13 16:43 
Questionhow to convert crystal report (.rpt) to RDLC report Pin
mhd.sbt8-Nov-13 3:13
mhd.sbt8-Nov-13 3:13 
AnswerRe: how to convert crystal report (.rpt) to RDLC report Pin
thatraja8-Nov-13 4:06
professionalthatraja8-Nov-13 4:06 
QuestionC# code to fetch all attributes of an element Pin
AshwiniSH6-Nov-13 23:02
professionalAshwiniSH6-Nov-13 23:02 
AnswerRe: C# code to fetch all attributes of an element Pin
Richard MacCutchan6-Nov-13 23:08
mveRichard MacCutchan6-Nov-13 23:08 
AnswerRe: C# code to fetch all attributes of an element Pin
Kornfeld Eliyahu Peter7-Nov-13 5:22
professionalKornfeld Eliyahu Peter7-Nov-13 5:22 
QuestionMigrate Data Pin
cybersavvy6-Nov-13 19:22
cybersavvy6-Nov-13 19:22 
AnswerRe: Migrate Data Pin
Mycroft Holmes6-Nov-13 20:10
professionalMycroft Holmes6-Nov-13 20:10 
GeneralRe: Migrate Data Pin
cybersavvy6-Nov-13 20:29
cybersavvy6-Nov-13 20:29 
GeneralRe: Migrate Data Pin
Mycroft Holmes6-Nov-13 20:41
professionalMycroft Holmes6-Nov-13 20:41 
QuestionCan I connect to MS SQL using HTML & JavaScript? Pin
Michael-N6-Nov-13 8:12
Michael-N6-Nov-13 8:12 
AnswerRe: Can I connect to MS SQL using HTML & JavaScript? Pin
Abhinav S6-Nov-13 18:05
Abhinav S6-Nov-13 18:05 
AnswerRe: Can I connect to MS SQL using HTML & JavaScript? Pin
wikizhao7-Nov-13 22:22
wikizhao7-Nov-13 22:22 
AnswerRe: Can I connect to MS SQL using HTML & JavaScript? Pin
Peter Leow10-Nov-13 16:39
professionalPeter Leow10-Nov-13 16:39 
QuestionOracle 10g connectivity issue with .net 2.0 website hosted on win 2008 server Pin
abhi17_66-Nov-13 4:20
abhi17_66-Nov-13 4:20 
QuestionImplement Custom Membership Provider in n-tier architecture Pin
Member 103823785-Nov-13 11:56
Member 103823785-Nov-13 11:56 

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.