Click here to Skip to main content
15,887,434 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Looking to develop a subscription type of web app - what stack should I use? Pin
Dalek Dave9-Dec-11 22:59
professionalDalek Dave9-Dec-11 22:59 
AnswerRe: Looking to develop a subscription type of web app - what stack should I use? Pin
User 171649210-Dec-11 2:08
professionalUser 171649210-Dec-11 2:08 
AnswerRe: Looking to develop a subscription type of web app - what stack should I use? Pin
David C# Hobbyist.13-Dec-11 7:18
professionalDavid C# Hobbyist.13-Dec-11 7:18 
AnswerRe: Looking to develop a subscription type of web app - what stack should I use? Pin
Dennis E White13-Dec-11 8:03
professionalDennis E White13-Dec-11 8:03 
QuestionQuestion Pin
messages8-Dec-11 22:22
messages8-Dec-11 22:22 
AnswerRe: Question Pin
cjoki12-Dec-11 6:48
cjoki12-Dec-11 6:48 
AnswerRe: Question Pin
best plumbers16-Jan-12 19:08
best plumbers16-Jan-12 19:08 
Questionwebgrid inside a webgrid Pin
dotolee5-Dec-11 7:05
dotolee5-Dec-11 7:05 
can you please tell me how to nest another webgrid in for my list of children? i found some c# examples but I wasn't able to get it working in my app (vb)
the code shows a table that i created with both parent and child rows, and then under the table, i have my attempt at a webgrid for just the parents.
@ModelType MyBusinessObject.ListSystemandSubSystems
@Code
      Layout = "~/Views/Shared/_Layout.vbhtml"
End Code

<!DOCTYPE html>

<html>
<head runat="server">
    <title>index</title>
</head>
<body>
    <p>
        @Html.ActionLink("Create New", "Create")
    </p>
<table>
    <tr>
        <th>
            SystemName
        </th>
        <th>
            SystemDescription
        </th>
        <th>
            SystemLocation
        </th>
        <th>
            SystemIP
        </th>
         <th>
            SubSystemName
        </th>
        <th>
            SubSystemDescription
        </th>
        <th>
            SubSystemIPAddress
        </th>
    </tr>
    
    @For Each item In Model.AllSystems
        Dim currentItem = item.MySystem
        @<tr>
    
        <td>
            @Html.DisplayFor(Function(modelItem) currentItem.SystemName)
        </td>
        <td>
            @Html.DisplayFor(Function(modelItem) currentItem.SystemDescription)
        </td>
        <td>
            @Html.DisplayFor(Function(modelItem) currentItem.SystemLocation)
        </td>
         <td>
            @Html.DisplayFor(Function(modelItem) currentItem.SystemIP)
        </td>
         <td>
             
        </td>
         <td>
             
        </td>
         <td>
            
        </td>
            <td>
                @*@Html.ActionLink("Edit", "Edit", New With {.id = currentItem.PrimaryKey}) |
                @Html.ActionLink("Details", "Details", New With {.id = currentItem.PrimaryKey}) |
                @Html.ActionLink("Delete", "Delete", New With {.id = currentItem.PrimaryKey})*@
            </td>
        </tr>
        
        For Each subsystem In currentItem.SubSystems
            Dim currentsubSys = subsystem 
    
         @<tr>
         <td>
             
        </td>
         <td>
             
        </td>
         <td>
            
        </td>
         <td>
            
        </td>
                <td>
                    @Html.DisplayFor(Function(modelItem) currentsubSys.Name)
                </td>
                 <td>
                    @Html.DisplayFor(Function(modelItem) currentsubSys.Description)
                </td>
                 <td>
                    @Html.DisplayFor(Function(modelItem) currentsubSys.IP)
                </td>
         </tr>

                Next
    Next
    
    </table>

 

@Code 
    Dim Grid = New WebGrid(source:=Me.Model.AllSystems., defaultSort:="CreatedDateTime", rowsPerPage:=10

   Grid.SortDirection = SortDirection.Descending

End Code

@Grid.GetHtml(tableStyle:="gridStyle", headerStyle:="headStyle", alternatingRowStyle:="alt", firstText:="<< first", previousText:="< previous", nextText:="next >", lastText:="last >>", mode:=WebGridPagerModes.All, columns:=Grid.Columns(
                  Grid.Column("MySystem.SystemName", header:="SystemName Id"),
                  Grid.Column("MySystem.SystemDescription", header:="Description"),
                  Grid.Column("MySystem.SystemIP", header:="SystemIP"),
                  Grid.Column("MySystem.systemLocation", header:="SystemLocation"),
                  Grid.Column("MySystem.SystemDescription", header:="SystemDescription")))


    
</body>
</html>

Question'Mobile Ready HTML5 MVC' template Pin
DaveAuld3-Dec-11 0:40
professionalDaveAuld3-Dec-11 0:40 
AnswerRe: 'Mobile Ready HTML5 MVC' template Pin
Dennis E White3-Dec-11 14:47
professionalDennis E White3-Dec-11 14:47 
GeneralRe: 'Mobile Ready HTML5 MVC' template Pin
DaveAuld3-Dec-11 19:12
professionalDaveAuld3-Dec-11 19:12 
GeneralRe: 'Mobile Ready HTML5 MVC' template Pin
Dennis E White4-Dec-11 5:40
professionalDennis E White4-Dec-11 5:40 
GeneralRe: 'Mobile Ready HTML5 MVC' template Pin
DaveAuld4-Dec-11 5:42
professionalDaveAuld4-Dec-11 5:42 
GeneralRe: 'Mobile Ready HTML5 MVC' template Pin
Dennis E White4-Dec-11 5:53
professionalDennis E White4-Dec-11 5:53 
GeneralRe: 'Mobile Ready HTML5 MVC' template Pin
Dennis E White4-Dec-11 6:10
professionalDennis E White4-Dec-11 6:10 
Questioncss doesn't work with .htaccess Pin
williamroma2-Dec-11 19:13
williamroma2-Dec-11 19:13 
AnswerRe: css doesn't work with .htaccess Pin
zyck7-Feb-12 22:47
zyck7-Feb-12 22:47 
Questionhow to make a web page? Pin
nik_utm1-Dec-11 14:48
nik_utm1-Dec-11 14:48 
AnswerRe: how to make a web page? Pin
Not Active1-Dec-11 16:57
mentorNot Active1-Dec-11 16:57 
QuestionIE9 gets something right (and beats Chrome, Safari and Opera)! Pin
StarNamer@work1-Dec-11 0:03
professionalStarNamer@work1-Dec-11 0:03 
AnswerRe: IE9 gets something right (and beats Chrome, Safari and Opera)! Pin
Dennis E White2-Dec-11 5:10
professionalDennis E White2-Dec-11 5:10 
GeneralRe: IE9 gets something right (and beats Chrome, Safari and Opera)! Pin
Graham Breach2-Dec-11 5:18
Graham Breach2-Dec-11 5:18 
GeneralRe: IE9 gets something right (and beats Chrome, Safari and Opera)! Pin
Dennis E White2-Dec-11 5:33
professionalDennis E White2-Dec-11 5:33 
Questionanybody can find out that asp program error? Pin
hack00430-Nov-11 6:11
hack00430-Nov-11 6:11 
AnswerRe: anybody can find out that asp program error? Pin
R. Giskard Reventlov30-Nov-11 6:14
R. Giskard Reventlov30-Nov-11 6:14 

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.