The value of variable can be read and is okay as long as I remain in the same method in which its value is
instantiated but I get null values in rest of the methods on same aspx.cs page
thanks




Posted 12 June 2010 - 12:58 AM
Posted 14 June 2010 - 06:49 AM
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace WebApplication2
{
public partial class _Default : System.Web.UI.Page
{
private string _strpolladdress; //will contain the string
protected void Page_Load(object sender, EventArgs e)
{
//initialize _strpolladdress with data from the database...
}
private void methodA(){
//do stuff with _strpolladdress
}
private void methodB(){
//do stuff with _strpolladdress
}
}
}
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
