This is a really simple issue, but I have racked my brain on how to get these values over. I am knowledgable on asp classic but .net has me lost. All of the code I am using, or trying to use, is vb. In classic asp I could easily set a variable and say that <%test_value = 1%> then call it later by saying <%response.write test_value%>.
I basically am trying to learn how to do this simple task in VB but I am feeling stupid on why I cannot make it happen. I am trying to do the same thing but in the .vb file, and pull the value into the .aspx file.
Below is a very simple string that I want to work, which does not. I think I am attaching myself to classic and making it more difficult than it is in .net. Thanks for your help!
Partial Class _Default
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim test_value = "25"
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<form id="form1" runat="server">