Solved

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

Posted on 2011-02-27
9
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
9 Comments
 
LVL 16

Accepted Solution

by:
Kalpesh Chhatrala earned 500 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:agarwalrahul
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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 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