Im really new to ASP.NET and have a background in ASP VB coding.
I have been reporgramming a webpage from ASP to ASP.net the last week and basically rewritten most of it.
Forms and formchecks work great but the rest of ASP.NET is kinda abacadabra for me.
I have some website data stored in an Access database (general info about the site, keywords, title etc) i use this info from a table cuz I want to make the site multilingual.
Im trying to write this data to variables in my site which I can use in all scripts on the site.
So I include this ascx file and in this file I try this:
Sub PageLoad(ByVal sender As System.Object, ByVal e As System.EventArgs)
........................ 'not important code for this question
Dim strSiteInfoKeywords As String = DBReader("site_info_keywords")
Dim strSiteInfoKeywordslong As String = DBReader("site_info_keywordslong")
Dim strSiteInfoHome As String = DBReader("site_info_home")
So I thought I could use these values in the rest of my site, since this ascx usercontrol is used on each page.
But somehow the variables declared in here cant be used in the ASPX files.
Why is this and how can I fix this????
Variables from includes files in good old ASP could be used vice versa (base file to include, include file to base) without any hassle....
I need this project fixed this comming weeks, this crap gives me some serious headaches :)