B
Bucko
Hi guys,
this may be an easy for someone...
I have a situation like below. The "str" string variable (and any other
variable that VS.net declares normally in this space) can be used fine
in the Page_Load function, but not my own function, "datareaderconvert"
Anyone know why? Here's what it looks like:
namespace mynamespace
{
public class mypage : System.Web.UI.Page
{
protected string str = "";
private void Page_Load(object sender, System.EventArgs e)
{
//useage of str here works fine
}
private DataSet datareaderconvert(SqlDataReader reader)
{
//usage of str doesnt work here
}
}
}
this may be an easy for someone...
I have a situation like below. The "str" string variable (and any other
variable that VS.net declares normally in this space) can be used fine
in the Page_Load function, but not my own function, "datareaderconvert"
Anyone know why? Here's what it looks like:
namespace mynamespace
{
public class mypage : System.Web.UI.Page
{
protected string str = "";
private void Page_Load(object sender, System.EventArgs e)
{
//useage of str here works fine
}
private DataSet datareaderconvert(SqlDataReader reader)
{
//usage of str doesnt work here
}
}
}