1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with Dreamweaver ASP.NET

Discussion in 'HTML, Graphics & Programming' started by KevinCB, 16 Jan 2006.

  1. KevinCB


    Joined: 20 Jan 2005

    Posts: 386

    Location: Crewe, Cheshire


    Could someone help me get around the ASP.NET (VBScript) aspect of dreamweaver.

    What I have is a page with a form containing a drop down list and submit button. I have created a variable on this page because I want to select something from the list click the button and open another page which contains a datagrid with a parameter in it's SQL statement, which I want to be the variable.

    I can't seem to get this working at all, all the page seems to do is refresh but not redirect to the other page.

    I have placed the following code in the first page with the drop down list:

    <script language="VB" runat="server">
    Sub Button1_Click(ByVal s As Object, ByVal e As EventArgs)
    Session("sessCArea") = Request.Form("ddlCArea")
    End Sub
    And in the second page I have the following code to convert the variable to a parameter for the datagrid:

    <Parameter Name="@Course_Area" Value='<%# (Session["sessCArea"] != null) ? Session["sessCArea"] : "" %>' Type="NVarChar" /> 
    Can anyone help with this?