Response.Redirect(String.Format("/StudentTime.aspx?AddEdit={0}&SearchBy={1}", addEdit, "FirstAndLastName"));
---my properties GET / SET---
public String AddEdit
{
get
{
m_addedit = Request.QueryString["AddEdit"];
return m_addedit;
}
set
{
m_addedit = value;
}
}
public String SearchBy
{
get
{
m_searchby = Request.QueryString["SearchBy"];
return m_searchby;
}
set
{
m_searchby = value;
}
}
---THE INITIAL IF BELOW ALWAYS FAILS--
if (!string.IsNullOrEmpty(SearchBy))
{
if (string.Equals(SearchBy, "FirstAndLastName"))
{
iobl = InOutListProcessor.GetInOutRecsByStudentName(SearchBy);
//iobl.Add(iob);
}
if (string.Equals(SearchBy, "StudentID"))
{
iob = InOutListProcessor.GetInOutRecsByStudentID(SearchBy);
iobl.Add(iob);
}
if (string.Equals(SearchBy, "TeamName"))
iobl = InOutListProcessor.GetInOutRecsByTeamName(SearchBy);
}
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
ASKER