Click here to Skip to main content
15,881,248 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionColor Trackbar Pin
w4uoa25-May-12 7:47
w4uoa25-May-12 7:47 
AnswerRe: Color Trackbar Pin
Richard MacCutchan25-May-12 7:56
mveRichard MacCutchan25-May-12 7:56 
AnswerRe: Color Trackbar Pin
ZurdoDev25-May-12 8:45
professionalZurdoDev25-May-12 8:45 
QuestionHTTP 404 Pin
Franco Cipriano24-May-12 23:43
Franco Cipriano24-May-12 23:43 
AnswerRe: HTTP 404 Pin
ZurdoDev25-May-12 4:44
professionalZurdoDev25-May-12 4:44 
GeneralRe: HTTP 404 Pin
Franco Cipriano25-May-12 4:48
Franco Cipriano25-May-12 4:48 
GeneralRe: HTTP 404 Pin
ZurdoDev25-May-12 4:51
professionalZurdoDev25-May-12 4:51 
GeneralRe: HTTP 404 Pin
Franco Cipriano25-May-12 5:45
Franco Cipriano25-May-12 5:45 
I tried your suggestions but, this time everytime I click the select button it still gives me the same error. Here is the code behind from the WebForm1.aspx

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MySql.Data.MySqlClient;

namespace AccoutMgt
{
    public partial class WebForm1 : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.Request.QueryString["name"] != null)
            {
                txtMPSname.Text = Page.Request.QueryString["name"];
                txtLoc.Text = Page.Request.QueryString["location"];
                DlstGeo.DataValueField = Page.Request.QueryString["geo"];
            }
        }

        protected void BtnSearch_Click(object sender, EventArgs e)
        {

        }

    }
}


and here is the code from frmList.aspx

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MySql.Data.MySqlClient;


namespace AccoutMgt
{
    public partial class List : System.Web.UI.Page
    {
        //public static string connStr = "SERVER=157.184.82.187;DATABASE=acctinformation;UID=root;PASSWORD=l3xmark;pooling=false;";
        //public static MySqlConnection mycon;
        //ClassProj cs1 = new ClassProj();
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (ClassProj.GetDBconn() == true)
            {
                if (!IsPostBack)
                {
                    String SQLstr = "SELECT a.ID, a.NAME AS Name,b.NAME AS Industry,a.subindustry as SubIndustry,a.geo AS Geo,c.NAME AS LocType FROM mpsacct AS a,industry AS b,location AS c WHERE a.industry=b.id AND a.loctype=c.id";
                    MySqlCommand cmd = new MySqlCommand(SQLstr, ClassProj.mycon);
                    MySqlDataReader reader = cmd.ExecuteReader();

                    //Bind the grid view
                    grdAll.DataSource = reader;
                    grdAll.DataBind();

                    reader.Close();
                    cmd.Dispose();
                }
            }

            ClassProj.CloseConn();
        }

        public void MPS_Selected(Object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Select")
            {
                // Convert the row index stored in the CommandArgument
                // property to an Integer.
                int index = Convert.ToInt32(e.CommandArgument);
                //Populate textbox with selected values

                //String s = Request.QueryString["grdAll.Rows[index].Cells[1].Text.ToString();"];
                string name = grdAll.Rows[index].Cells[1].Text.ToString();
                string Industry = grdAll.Rows[index].Cells[2].Text.ToString();
                string SubInd = grdAll.Rows[index].Cells[3].Text.ToString();
                string geo = grdAll.Rows[index].Cells[4].Text.ToString();
                string location = grdAll.Rows[index].Cells[5].Text.ToString();

                Page.Response.Redirect("~/WebForm1.aspx?name=" + name + "&industry=" + Industry + "&subind=" + SubInd + "&geo=" + geo + "&location=" + location);
            }
        }

               
    }
}

GeneralRe: HTTP 404 Pin
ZurdoDev25-May-12 5:50
professionalZurdoDev25-May-12 5:50 
GeneralRe: HTTP 404 Pin
Franco Cipriano25-May-12 7:11
Franco Cipriano25-May-12 7:11 
GeneralRe: HTTP 404 Pin
ZurdoDev25-May-12 7:18
professionalZurdoDev25-May-12 7:18 
GeneralRe: HTTP 404 Pin
Franco Cipriano25-May-12 7:27
Franco Cipriano25-May-12 7:27 
GeneralRe: HTTP 404 Pin
ZurdoDev25-May-12 7:30
professionalZurdoDev25-May-12 7:30 
GeneralRe: HTTP 404 Pin
Franco Cipriano25-May-12 7:38
Franco Cipriano25-May-12 7:38 
GeneralRe: HTTP 404 Pin
ZurdoDev25-May-12 7:39
professionalZurdoDev25-May-12 7:39 
GeneralRe: HTTP 404 Pin
Franco Cipriano27-May-12 21:03
Franco Cipriano27-May-12 21:03 
AnswerRe: HTTP 404 Pin
frostcox25-May-12 10:29
frostcox25-May-12 10:29 
GeneralRe: HTTP 404 Pin
Franco Cipriano27-May-12 21:13
Franco Cipriano27-May-12 21:13 
AnswerRe: HTTP 404 Pin
wikizhao25-May-12 16:14
wikizhao25-May-12 16:14 
GeneralRe: HTTP 404 Pin
Franco Cipriano27-May-12 21:16
Franco Cipriano27-May-12 21:16 
GeneralRe: HTTP 404 Pin
wikizhao28-May-12 17:41
wikizhao28-May-12 17:41 
QuestionRegarding Availability of a username in Asp.net Pin
anu.koshy8524-May-12 23:13
anu.koshy8524-May-12 23:13 
AnswerRe: Regarding Availability of a username in Asp.net Pin
Richard MacCutchan25-May-12 1:14
mveRichard MacCutchan25-May-12 1:14 
GeneralRe: Regarding Availability of a username in Asp.net Pin
anu.koshy8525-May-12 4:19
anu.koshy8525-May-12 4:19 
AnswerRe: Regarding Availability of a username in Asp.net Pin
ZurdoDev25-May-12 4:45
professionalZurdoDev25-May-12 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.