• 14 years ago

    First of all, I am new to Visual Web Developer 2005.

    I have a formview, 'FormView1', and I would like to update information in a field, 'categories', by a selecting from a dropdownlist, 'dropdownlist1'. By updating I mean to concatanate; so I cannot just 'bind' the two together.

    I have three problems:
    1. I do not know where to put the code; do I put the code in the 'form2.aspx' or in the 'form2.aspx.vb' files.
    2. I do not know how to access the data that is selected from the 'dropdownlist1' list.
    3. I do not know how to access the 'categories' field in 'FormView1'.


  • 14 years ago

    Hi Abnew
     Answer for ur questions
     1. If u access data for filling ur dropdown list then u put ur coding in Codebehind that mean as per u work "form2.aspx.vb". Otherwise u can add data in ur Script side "form2.aspx"

     2.If u r getting data from ur dropdownlist than u can use script side. this following line is used to get the value from dropdownlist. 

     3. U can access categories field through ur script side or ur codebehind side. its depending upon ur purpose/requirement.

     The folowing links are may helpful for u. In this links somewhere using C# coding. U gothrough and get logic after that u apply into VB.Net(codebehind)


    Hari K


  • 14 years ago

    At the risk of sounding ignorant; where in the form2.aspx do I place the code?

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“C++: an octopus made by nailing extra legs onto a dog.” - Steve Taylor