Click here to Skip to main content
15,886,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to make start up page on iis for a website Pin
Zubair_Shah25-May-12 10:31
Zubair_Shah25-May-12 10:31 
AnswerRe: how to make start up page on iis for a website Pin
Sandeep Mewara25-May-12 17:43
mveSandeep Mewara25-May-12 17:43 
GeneralRe: how to make start up page on iis for a website Pin
shashidhar reddy.k28-May-12 19:19
shashidhar reddy.k28-May-12 19:19 
AnswerRe: how to make start up page on iis for a website Pin
ashjassi17-Aug-12 3:18
ashjassi17-Aug-12 3:18 
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 
Hi,

I am new in ASP.NET c# web application development. I am creating a simple Account Management application. I am experiencing an error when using QueryString to pass value to a form. I have a main form named WebForm1.aspx. When I click a button named View List, it will pop-up a separate window with a gridview displaying all the account from a SQL database. The new window is called frmList.aspx, the gridview has a button on each row, and when I click the button it should transfer the data from the row to several textbox in the first page, WebForm1.aspx. But after I click the button it gives me an error. Below is the code behind for frmList.aspx

protected void Page_Load(object sender, EventArgs e)
        {
            if (ClassProj.GetDBconn() == true)
            {
                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);
            }
        }

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 
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 

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.