We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,831 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How i wan to pass the value from one page to other page?

I wan to tranfer the value barcode from abc.aspx to cde.aspx and display in other page

this is the code from abc.aspx

 <asp:HyperLink ID="hlBarcode" runat="server"   NavigateUrl='<%# "~/SearchStock.aspx?BC=" + Eval("Barcode")%>'  >

this is the code from cde.aspx.cs

 protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["Barcode"] != null)
                txtBarcode.Text = Request.QueryString["Barcode"];
        }

but my txtBarcode.Text cannot get anything...how to solved it?

3
Contributors
2
Replies
2 Days
Discussion Span
5 Months Ago
Last Updated
3
Views
ku.heng.7
Newbie Poster
5 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

You are referencing the wrong query string parameter. In your abc.aspx file, the query string parameter you used is BC, not Barcode. So just change line 3 to "BC".

JorgeM
Industrious Poster
4,010 posts since Dec 2011
Reputation Points: 294
Solved Threads: 544
Skill Endorsements: 115

hii..

your query string name is wrong. replace 'BC' instead of 'Barcode'

 protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["BC"] != null)
                txtBarcode.Text = Request.QueryString["BC"];
        }

thn it'll work fine.

manuindia
Newbie Poster
2 posts since Dec 2012
Reputation Points: 0
Solved Threads: 1
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0632 seconds using 2.7MB