| |
|||
Представленная процедура определяет исходный текст и внешний вид страницы. Она должна выполняться при передаче идентификатора OrderChoiceiD со страницы Спецификация:
Page.Request.QueryString("OrderChoiceiD")
("Select ChoicelD from OrderChoices " _ & "Where OrderChoiceiD = " _ & Session("CurrentOrderChoicelD"),DBConn) DBCommand.Fill(DSQuestion, _ "CurrentChoicelD")
("Select ObjectQuestionID from QuestionChoices " _ & "Where ChoicelD = " _ & DSQuestion.Tables("CurrentChoicelD").Rows(O).Item("ChoiceID") _ ,DBConn) DBCommand.Fill(DSQuestion, _ "CurrentQuestionID")
("Select ObjectQuestionID, " _ & "ObjectQuestionText, PicPath, " _ & "PicAltText from ObjectQuestions " _ & "Where ObjectQuestionID = " _ & DSQuestion.Tables("CurrentQuestionID"). _ Rows(O) .Item("ObjectQuestionID") _ ,DBConn) DBCommand.Pill(DSQuestion, _ "CurrentQuestion")
("Select ChoicelD, ChoiceText " _ & "From QuestionChoices " _ & "Where ObjecteQuestionID = " _ & DSQuestion.Tables("CurrentQuestion"). _ Rows(0).ItemC'ObjectQuestionID") _ ,DBConn) DBCommand.Fill(DSQuestion, _ "CurrentResponses")
IblTitle.BorderStyle = 9 IblTitle.Width = New Unit("90%") IblTitle.Font.Size = New FontUnit("25pt") IblTitle.Font.Name = "Arial"
& " - изменение"
DSQuestion.Tables("CurrentQuestion").Rows(0).Item("PicAltText") imgStepPicture.ImageUrl = _ DSQuestion.Tables("CurrentQuestion").Rows(0).Item("PicPath") imgStepPicture.BorderWidth = New Unit("7px")
IblQuestion.Font.Name = "Verdana" IblQuestion.Text = DSQuestion.Tables("CurrentQuestion"). _ Rows(O).Item("ObjectQuestionText")
DSQuestion.Tables("CurrentResponses").DefaultView ddlResponses.DataBindO |
|||