hi,
this is saritha
iam getting the Error System.IndexOutOfRangeException: Index was outside the bounds of the array.
for (location = arrIndMsg[2].ToString().Trim();) this line.
private void BindData1()
{
if (!IsPostBack)
{
string strReq = "";
strReq = Request.RawUrl;
strReq = strReq.Substring(strReq.IndexOf('?') + 1);
strReq = DecryptQueryString(strReq);
//Parse the value... this is done is very raw format.. you can add loops or so to get the values out of the query string...
string[] arrMsgs = strReq.Split('&');
string[] arrIndMsg;
string keyskills = "", location = "", category = "", experience="";
arrIndMsg = arrMsgs[0].Split('=');
keyskills = arrIndMsg[1].ToString().Trim();//get the jobId
arrIndMsg = arrMsgs[0].Split('=');
location = arrIndMsg[2].ToString().Trim();
arrIndMsg = arrMsgs[0].Split('=');
category = arrIndMsg[3].ToString().Trim();
arrIndMsg = arrMsgs[0].Split('=');
experience = arrIndMsg[4].ToString().Trim();
Lblkeyskills.Text = keyskills;
Lbllocation.Text = location;
Lblcategory.Text = category;
Lblexp.Text = experience;
Session["OrganisationName"] = Lblorgname.Text.Trim();
Panel2.Visible = true;
DataList1.Visible = true;
jb.Skills = Lblkeyskills.Text;
jb.Location = Lbllocation.Text;
jb.jobcategory = Lblcategory.Text;
jb.Experience = Lblexp.Text;
DataList1.DataSource = jb.showJobSeekerSearchjobs();
DataList1.DataBind();
Lblorgname.Text = jb.OrganisationName;
Lblmsg.Visible = false;
if (DataList1.Items.Count.ToString() == "0")
{
Lblmsg.Visible = true;
Lblmsg.Text = " Sorry No Jobs Found of This Type !";
Panel2.Visible = false;
}
}
}