CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 3/22/2005 12:46:11 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 31 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
blsilks2000
Asp.Net User
Passing Values in URL3/22/2005 12:46:11 PM

0/0

I know how create Hyperlinks in a datagrid that can pull a column_ID and pass it through the URL however I would like to be able to create a stand alone hyperlink that can pull a value from lets say a prepopulated read only/hidden TEXT BOX and pass it though the URL(example: index.aspx?textbox1=6). Im basically just look for some tutorials if anybody has any info.
miguelcastro67
Asp.Net User
Re: Passing Values in URL3/23/2005 2:34:42 PM

0/0

You textboxes are accessible from the code-behind after the first postback using the good ole fashioned Request.Form. Of course you wouldn't use this for textboxes that you've dropped onto your form, but for a hidden one that you manually placed there you can. Say you called it "MyHiddenTextbox" you could just access Request.Form("MyHiddenTextbox"). You can then use that value to define the NavigateUrl property of your hyperlink.
Did I understand your question right?

Miguel Castro
www.dotnetdude.com
blsilks2000
Asp.Net User
Re: Passing Values in URL3/23/2005 4:18:07 PM

0/0

Could you give me an example using the following code?

<html>
<head>
</head>
<body>
<form runat="server">
<p>
<asp:TextBox id="TextBox1" runat="server">1</asp:TextBox>
</p>
<p>
<asp:HyperLink id="HyperLink1" runat="server" NavigateUrl="topics.aspx?category_id={0}">Click Here</asp:HyperLink>
</p>
</form>
</body>
</html>
miguelcastro67
Asp.Net User
Re: Passing Values in URL3/23/2005 6:29:01 PM

0/0

uh, unless I'm missing something, this is as simple as:

HyperLink1.NavigateUrl = "topics.aspx?category_id=" + TextBox1.Text ;

What's the catch?

Miguel Castro
www.dotnetdude.com
blsilks2000
Asp.Net User
Re: Passing Values in URL3/24/2005 12:10:05 PM

0/0

thanks for the help. i got it figured out.
blsilks2000
Asp.Net User
Re: Passing Values in URL3/24/2005 12:26:50 PM

0/0

I used:

<%@ Page Language="VB" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<script runat="server">

Sub Page_Load(Sender As Object, E As EventArgs)
Hyperlink1.NavigateUrl = "topics.aspx?category_id=" & System.Web.HttpUtility.UrlEncode(Textbox1.Text)
End Sub

</script>
<html>
<head>
</head>
<body>
<form runat="server">
<p>
<asp:TextBox id="TextBox1" runat="server">2</asp:TextBox>
</p>
<p>
<asp:HyperLink id="HyperLink1" runat="server">Click Here</asp:HyperLink>
</p>
</form>
</body>
</html>
blsilks2000
Asp.Net User
Re: Passing Values in URL3/24/2005 12:33:11 PM

0/0

Although your method seems better. hehehe

<%@ Page Language="VB" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<script runat="server">

Sub Page_Load(Sender As Object, E As EventArgs)
Hyperlink1.NavigateUrl = "topics.aspx?category_id=" & System.Web.HttpUtility.UrlEncode(Textbox1.Text)
HyperLink1.NavigateUrl = "topics.aspx?category_id=" + TextBox1.Text
End Sub

</script>
<html>
<head>
</head>
<body>
<form runat="server">
<p>
<asp:TextBox id="TextBox1" runat="server">2</asp:TextBox>
</p>
<p>
<asp:HyperLink id="HyperLink1" runat="server">Click Here</asp:HyperLink>
</p>
</form>
</body>
</html>
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Dreamweaver CS3 Bible: Master Every Aspect of Dreamweaver - Work with CSS, Text, Images, And Links - Incorporate Flash Movies and Other Media Authors: Joseph W. Lowery, Pages: 1112, Published: 2007
ColdFusion MX: From Static to Dynamic in 10 Steps Authors: Barry Moore, Pages: 400, Published: 2002
Delivering Business Intelligence with Microsoft SQL Server 2005 Authors: Brian Larson, Pages: 776, Published: 2006
Mastering SQL Server 2005 Reporting Services Infrastructure Design Authors: Joseph L. Jorden, Pages: 486, Published: 2007
Macromedia Coldfusion 5: Training from the Source Authors: Kevin Schmidt, Pages: 288, Published: 2002
Beginning PHP5, Apache, and MySQL Web Development Authors: Elizabeth Naramore, Michael K. Glass, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Pages: 798, Published: 2005
Beginning JavaScript Authors: Paul Wilton, Pages: 1056, Published: 2000
Developing Web Information Systems: From Strategy to Implementation Authors: Richard Vidgen, David Avison, Bob Wood, Trevor Wood-Harper, Pages: 274, Published: 2002
Struts: Kick Start Authors: James Turner, Kevin Bedell, Pages: 504, Published: 2002

Web:
ASP.NET.4GuysFromRolla.com: Passing Parameters from One Page to ... Feb 2, 2005 ... The URL of the page that is to receive the data; The name/value pairs of the data to pass; A method that, when called, will pass the ...
Always use UrlEncode, when passing parameters to Url string Mar 6, 2007 ... Always use UrlEncode, when passing parameters to Url string ... It worked fine for a while, because most of values were numeric or ...
passing values in url..second page checking for null [Archive ... I am passing a value in the url for display logic. There is a chance that the request will not contain a value. how do I check for null. ...
passing values through url - Re: Pass variables through URL passing values through url. Jen Jiang wrote:. Here's the xslt file that has the url: .... Or even iterate through the AGE elements to build up the url: ...
RE: Passing value in URL to Form: msg#00208 Passing the value through the URL to an html page with form > and then through > a URL again into a php doc. I tried the same method I used > in the php doc ...
Pros/ Cons of passing parameters in URL Search engine optimization, hackers, spiders pros/ cons of passing parameters in url.
Pass values from URL to other pages ? Talk about Pass values from URL to other pages ? ... Posts: n/a. Default Re: Pass values from URL to other pages ? ...
Need help with passing values in URL using PHP & MySQL - WebProWorld I have a MySQL database with: id username address phone How can I have a simple link ie Code:
The JavaScript Source: Forms: Passing Values THREE STEPS TO INSTALL PASSING VALUES: 1. Copy the form code into the first page ... URL.substring(idx+1, document.URL.length).split('&'); for (var i=0; ...
Passing variables between pages using URL GET method Passing data and variable between pages through URL.

Videos:
Learning ColdFusion Chapter 7 - Passing URL Variables In this video we will learn about passing URL variables through hyperlinks. Download Exercise Files: http://www.filedropper.com/756/chapter07
C++ Tutorial (55) - Absolute n00b spoonfeed ATTENTION!!! Add &fmt=18 to this video's URL in the address bar for high-quality playback Video tutorials about programming in the C++ programming l...
C++ Tutorial (54) - Absolute n00b spoonfeed ATTENTION!!! Add &fmt=18 to this video's URL in the address bar for high-quality playback Video tutorials about programming in the C++ programming l...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming environmen...
full project Welcome to VAKISHNA safari came with me to discover the great thing what they do when a volcano interpreted the great thing about volcano its really ...
DVLH volume 1 (WRESTLING) Classic Luke Hadley wrestling video. http://www.lukehadley.com Hardcore wrestling is a form of professional wrestling that eschews traditional concep...
YouTube Player APIs and Tools Tutorial Stephanie Liu gives a short tutorial on the basic functionality available in the JavaScript and Flash player APIs, as well as the Chromeless Player. ...
Classic Luke Hadley wrestling video (DVLH) Classic Luke Hadley wrestling video. http://www.lukehadley.com Hardcore wrestling is a form of professional wrestling that eschews traditional concep...
From the DVLH Wrestling vault Classic Luke Hadley wrestling music video from 1997. http://www.lukehadley.com Hardcore wrestling is a form of professional wrestling that eschews tr...
DVLH Classic Classic Luke Hadley wrestling video. http://www.lukehadley.com Hardcore wrestling is a form of professional wrestling that eschews traditional concep...




Search This Site:










design time and onpaint

fileupload control....

customizing the image for a drop down list......

sharing controls between two web sites

is there any free temporary hosting?

static ip address

server control with more than one children type

smart tag broke from version beta 1 to 2.

looking for fast performance in dnn and application hosting

hide web references from vs.net toolbox

composite control bound to data

hosting with unlimited bandwith?

adding a textbox in a table

http://datapacket.net/ the most horrible hosting in the world

communicating between two custom control's

setting the content of a control

unattended install w2k3 sp1 using ads - error 29006 ?

event accessor in vb.net

how to find control and render it again

good control building practice question?

control builds itself to quickly

snapshot of webpage control - anybody has one?

5 domains on one hosting account? (shared disk space & bandwidth?)

adding an onclick event in a .vb class

minimal code to create a hierarchicaldataboundcontrol

date drop down composite control problem

hire our developers for $1600/month

page_validators undefined

column 'invariantname' is constrained to be unique

help! controls problem

  Privacy | Contact Us
All Times Are GMT