Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
QuestionWCF service as Windows Service Pin
TwilightEva1-Jun-12 2:26
TwilightEva1-Jun-12 2:26 
AnswerRe: WCF service as Windows Service Pin
sina rahimzadeh1-Jun-12 3:15
sina rahimzadeh1-Jun-12 3:15 
GeneralRe: WCF service as Windows Service Pin
jschell1-Jun-12 3:38
jschell1-Jun-12 3:38 
GeneralRe: WCF service as Windows Service Pin
Pete O'Hanlon1-Jun-12 3:47
mvePete O'Hanlon1-Jun-12 3:47 
JokeRe: WCF service as Windows Service Pin
TwilightEva1-Jun-12 4:05
TwilightEva1-Jun-12 4:05 
AnswerRe: WCF service as Windows Service Pin
jschell1-Jun-12 3:46
jschell1-Jun-12 3:46 
GeneralRe: WCF service as Windows Service Pin
TwilightEva1-Jun-12 4:04
TwilightEva1-Jun-12 4:04 
GeneralRe: WCF service as Windows Service Pin
taha bahraminezhad Jooneghani3-Jun-12 2:02
taha bahraminezhad Jooneghani3-Jun-12 2:02 
QuestionAUDIO PROBLEM Pin
timmy1831-May-12 12:02
timmy1831-May-12 12:02 
AnswerRe: AUDIO PROBLEM Pin
PIEBALDconsult31-May-12 12:08
mvePIEBALDconsult31-May-12 12:08 
AnswerRe: AUDIO PROBLEM Pin
Abhinav S31-May-12 16:31
Abhinav S31-May-12 16:31 
AnswerRe: AUDIO PROBLEM Pin
OriginalGriff31-May-12 21:17
mveOriginalGriff31-May-12 21:17 
GeneralRe: AUDIO PROBLEM Pin
Luc Pattyn1-Jun-12 3:04
sitebuilderLuc Pattyn1-Jun-12 3:04 
GeneralRe: AUDIO PROBLEM Pin
OriginalGriff1-Jun-12 3:48
mveOriginalGriff1-Jun-12 3:48 
QuestionNEW Pin
timmy1831-May-12 11:51
timmy1831-May-12 11:51 
AnswerRe: NEW Pin
Dave Kreskowiak31-May-12 13:06
mveDave Kreskowiak31-May-12 13:06 
GeneralRe: NEW Pin
PIEBALDconsult31-May-12 14:51
mvePIEBALDconsult31-May-12 14:51 
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();
                }
            }
        }

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.