Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • Last Modified:

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

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
itgirl7
Asked:
itgirl7
  • 6
  • 2
1 Solution
 
Kalpesh ChhatralaSoftware ConsultantCommented:
you can redirect page on Click event of Image Button

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



0
 
Rahul AgarwalTeam LeaderCommented:
0
 
itgirl7Author Commented:
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
itgirl7Author Commented:
@kalpesh2804 I tried by that way but it's not working it's not taking textbox vlaue
0
 
Kalpesh ChhatralaSoftware ConsultantCommented:
can you paste your sample Code here ?
0
 
itgirl7Author Commented:
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
 
itgirl7Author Commented:
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
 
itgirl7Author Commented:
@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
 
itgirl7Author Commented:
@kalpesh2804 you know if I want to open that in blank page what can I do for that?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now