Here's my situation:
1) Am developing a website in asp.net in VB.NET (NOT using visual studio and NOT code behind except for my problem C# mini app as will be revealed as you read on).
2) We have a client registration page written in VB.NET which submits the new client data (name, dob, address etc) into to an SQL Server table and returns that table's primary key as the client's unique identifying variable which will be used in the pages that follow to link that client to the additional data that they need to enter.
In other words I need to hold that primary key as variable for a couple more pages where we seek to gain more data from the client.
3) The 2nd page holds a ListBox which allows the new client to sort items into their chosen order. This sortable ListBox (which we must use by the way) has been written in C# and includes a code behind file.
This 2nd page also holds a couple more data collection fields which are simple text boxes and drop down menus etc.
I need to utilise the primary key already collected and stored as a variable during page 1 (VB.NET) in page 2 when inserting the ListBox selection etc into another table.
My dilema is that I don't know what is and is not possible in ASP.NET in terms of moving a variable collected on a VB.NET page and carrying it across to a C# page.
Would it be best to:
a) Try and get the C# page converted into VB.NET using an online conversion tool which would resolve my problem?
b) Perhaps the variable collected on page 1 (VB.NET) can be carried across and utilised on page 2 (C#)? But please bear in mind page 3 will be in VB.NET and also needs to make use of this variable (ie move it from a C# page to a VB.NET page).
c) Mix C# and VB.NET on page 2 but essentially call it a VB.NET page? But then I suppose the C# code behind page won't work so I would have to apply the C# code from the code behind file (for the sortable ListBox) into a routine on the main body of page 2. If this is possible?
As you can tell I need some good advice.
Can anyone help clarify my options and supply any code snippets to help me get the job done?