Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to pass value from asp.net page to PHP page

Posted on 2011-02-27
9
Medium Priority
?
294 Views
Last Modified: 2012-05-11
I  have asp.net page and there is image button and textbox inside.when anyone click on imagebutton there should be giving

http://www.rewardforloyalty.com/balance-kwi.php.balance on this site.While the way I am doing it is just redirecting that site.I want to ggive balance on that site.Please give me some guidence how to do that.
<asp:TextBox ID="TextBox1" runat="server" BorderColor="Black" 
               BorderStyle="Solid" BorderWidth="2px" Height="24px" Width="252px"></asp:TextBox></div>
               <div class="DvGiftNumber">Please enter gift card number:</div>
               <div class="DvSearch">
                
                <asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/Images/SearchButton.png" PostBackUrl="http://www.rewardforloyalty.com/balance-kwi.php" />

Open in new window

0
Comment
Question by:itgirl7
  • 6
  • 2
9 Comments
 
LVL 16

Accepted Solution

by:
Kalpesh Chhatrala earned 2000 total points
ID: 34993762
you can redirect page on Click event of Image Button

Response.Redirect("http://www.rewardforloyalty.com/balance-kwi.php?Balance="+TextBox1.Text)



0
 
LVL 13

Expert Comment

by:Rahul Agarwal
ID: 34994206
0
 

Author Comment

by:itgirl7
ID: 34999027
I don't have any access of PHP page.I don't know how can I write listner's script in PHP page.This is third party site.?
0
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 

Author Comment

by:itgirl7
ID: 34999045
@kalpesh2804 I tried by that way but it's not working it's not taking textbox vlaue
0
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 34999267
can you paste your sample Code here ?
0
 

Author Comment

by:itgirl7
ID: 34999334
This is the code for front end
<asp:TextBox ID="TextBox1" runat="server" BorderColor="Black" 
               BorderStyle="Solid" BorderWidth="2px" Height="24px" Width="252px"></asp:TextBox></div>
               <div class="DvGiftNumber">Please enter gift card number:</div>
               <div class="DvSearch">
                
                 <asp:ImageButton ID="btnSearch" runat="server"  ImageUrl="~/Images/SearchButton.png"  />
            </div>
               
        </div>  
          		<div class="DvGiftbox"><img src="Images/GiftBoxImage.png" align="left"/>
                <div class="DvSmallGift"> <img src="Images/GiftBoxSmall.png" align="left"/></div>
          </div>  
                 
          </div>
          
          </form>

Open in new window

0
 

Author Comment

by:itgirl7
ID: 34999374
in backend the coding is in click event
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnSearch.Click
        Response.Redirect("http://www.rewardforloyalty.com/balance-kwi.php" + TextBox1.Text)
    End Sub

Open in new window

0
 

Author Comment

by:itgirl7
ID: 34999987
@kalpesh2804 It works............I just wanted to know the name of the textbox of that site.I know the name and pass the querystring
0
 

Author Comment

by:itgirl7
ID: 35000012
@kalpesh2804 you know if I want to open that in blank page what can I do for that?
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question