Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
AnswerRe: NEW Pin
OriginalGriff31-May-12 21:17
mveOriginalGriff31-May-12 21:17 
AnswerRe: new Pin
Paul Conrad1-Jun-12 13:56
professionalPaul Conrad1-Jun-12 13:56 
Questiondebugging vs 2010 C#.net Pin
sc steinhayse31-May-12 11:23
sc steinhayse31-May-12 11:23 
AnswerRe: debugging vs 2010 C#.net Pin
Dave Kreskowiak31-May-12 13:07
mveDave Kreskowiak31-May-12 13:07 
AnswerRe: debugging vs 2010 C#.net Pin
Richard MacCutchan31-May-12 21:36
mveRichard MacCutchan31-May-12 21:36 
GeneralRe: debugging vs 2010 C#.net Pin
sc steinhayse1-Jun-12 17:31
sc steinhayse1-Jun-12 17:31 
GeneralRe: debugging vs 2010 C#.net Pin
Richard MacCutchan1-Jun-12 22:25
mveRichard MacCutchan1-Jun-12 22:25 
QuestionUsing QueryString Pin
Franco Cipriano31-May-12 8:18
Franco Cipriano31-May-12 8:18 
I am trying to pass a value from a pop up window back to the parent page. The query string is successful, but it wont go back to the previous page, but instead the pop-up window will redirect to the previous page with the values. What I want to do is close the pop-up window, and go back to the previous page with the values. Here are the code that I currently have:

//this is action performed when the button to submit the values are clicked
C#
protected void btnSelect_Click(object sender, EventArgs e)
        {
            GridViewRow row = grdAll.Rows[SelectedProductIndex];

            name = row.Cells[2].Text.ToString();
            Industry = row.Cells[3].Text.ToString();
            SubInd = row.Cells[4].Text.ToString() ;
            geo = row.Cells[5].Text.ToString();
            location = row.Cells[6].Text.ToString();

            Page.Response.Redirect("frmMain.aspx?name=" + name + "&industry=" + Industry + "&subInd=" + SubInd + "&geo=" + geo + "&location=" + location);

        }


//this is the page_load of the parent window
C#
protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Page.Request.QueryString["name"] != null)
                {
                    txtMPSname.Text = Page.Request.QueryString["name"].ToString();
                    txtLoc.Text = Page.Request.QueryString["location"].ToString();
                    DlstGeo.Text = Page.Request.QueryString["geo"].ToString();
                    DlstInd.Text = Page.Request.QueryString["industry"].ToString();
                    DlstSubInd.Text = Page.Request.QueryString["subInd"].ToString();
                }
            }
        }

AnswerRe: Using QueryString Pin
timmy1831-May-12 11:58
timmy1831-May-12 11:58 
AnswerRe: Using QueryString Pin
Karthik Harve31-May-12 18:14
professionalKarthik Harve31-May-12 18:14 
GeneralRe: Using QueryString Pin
Franco Cipriano1-Jun-12 4:48
Franco Cipriano1-Jun-12 4:48 
AnswerRe: Using QueryString Pin
Ravi Bhavnani2-Jun-12 7:44
professionalRavi Bhavnani2-Jun-12 7:44 
QuestionCreating FTP Profiles and User Accounts Pin
Civic0631-May-12 7:26
Civic0631-May-12 7:26 
AnswerRe: Creating FTP Profiles and User Accounts Pin
Richard Andrew x6431-May-12 8:33
professionalRichard Andrew x6431-May-12 8:33 
AnswerRe: Creating FTP Profiles and User Accounts Pin
Dave Kreskowiak31-May-12 8:36
mveDave Kreskowiak31-May-12 8:36 
AnswerRe: Creating FTP Profiles and User Accounts Pin
Paul Conrad31-May-12 8:46
professionalPaul Conrad31-May-12 8:46 
Questioninherit NativWindow and IDisposable Pin
__John_31-May-12 4:46
__John_31-May-12 4:46 
AnswerRe: inherit NativWindow and IDisposable Pin
Eddy Vluggen31-May-12 4:51
professionalEddy Vluggen31-May-12 4:51 
GeneralRe: inherit NativWindow and IDisposable Pin
__John_31-May-12 5:20
__John_31-May-12 5:20 
GeneralRe: inherit NativWindow and IDisposable Pin
Eddy Vluggen31-May-12 9:01
professionalEddy Vluggen31-May-12 9:01 
Questionsaving in C# Pin
Member 905483831-May-12 3:34
Member 905483831-May-12 3:34 
AnswerREPOST Pin
Dave Kreskowiak31-May-12 4:20
mveDave Kreskowiak31-May-12 4:20 
Questiona code for shorten a path in a grid Pin
Siren931-May-12 3:00
Siren931-May-12 3:00 
AnswerRe: a code for shorten a path in a grid Pin
Richard MacCutchan31-May-12 3:56
mveRichard MacCutchan31-May-12 3:56 
AnswerRe: a code for shorten a path in a grid Pin
BobJanova31-May-12 4:35
BobJanova31-May-12 4:35 

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.