I'm using the Obout.com MVC controls and have included the following code in one of my views:
@{
Html.Obout(new ComboBox("Languages") {
Width = 175,
SelectedIndex = (int) ViewData["DefaultLanguage"] - 1,
ShowSelectedImage = true
}
);
}
I'm doing it that way because my original attempt failed:
@Html.Obout(new ComboBox("Languages") { Width = 175, SelectedIndex = (int) ViewData["DefaultLanguage"] - 1, ShowSelectedImage = true })
...it seems I need to use the @{}
structure. However, when the output gets generated, the code that Html.Obout()
generates comes ahead of all other output. the <!DOCTYPE html>
and the real page follows the control's output. is this a function of the @{}
structure, or is it some issue with the control itself?