473,811 Members | 3,314 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

using a querystring

Hey group !

I have a page where I have a newssection. Each line is a link.
Is it possible to use a page news.aspx where I work with a querystring to
refer to the page ? example: news.aspx?id=3
On my news.aspx page I have some usercontrols (header.ascx, leftside.ascx,
rightside.ascx, footer.ascx and newsmiddle.ascx ).

I want to put the news from the id in the querystring in the newsmiddle.ascx
component.
How can I do that so that the right newsheadline for each id can be used ?

Has somebody tips or examples how to do that ?

thx in advance !

gr

Bernd
Nov 17 '05 #1
2 1392
Your header information should also be available to your web controls ie
request.queryst ring("id").

Just put the routine in the web user control and it should work without a
problem

Regards

Jody

"Bernie V" <be************ *@pandora.be> wrote in message
news:Od******** ******@TK2MSFTN GP11.phx.gbl...
Hey group !

I have a page where I have a newssection. Each line is a link.
Is it possible to use a page news.aspx where I work with a querystring to
refer to the page ? example: news.aspx?id=3
On my news.aspx page I have some usercontrols (header.ascx, leftside.ascx,
rightside.ascx, footer.ascx and newsmiddle.ascx ).

I want to put the news from the id in the querystring in the newsmiddle.ascx component.
How can I do that so that the right newsheadline for each id can be used ?
Has somebody tips or examples how to do that ?

thx in advance !

gr

Bernd

Nov 17 '05 #2
Thx Jody !
I still have 1 question: how can I use html code to make the layout of that
page at runtime ? (example: to place a picture on the page, but there can't
be always a picture in the newspage) Can I do that in the same routine or is
there another trick to do that ?

Or do I have to do that with literal components like: Literal.Text =
"<h5>Test</h5><br>This is a test";
Without literals I don't know how to position my code.

Am I missing something ?

grz

Bernd

"Jody Fisher" <jf*****@clayto nutz.com.dontsp amme> schreef in bericht
news:%2******** **********@TK2M SFTNGP09.phx.gb l...
Your header information should also be available to your web controls ie
request.queryst ring("id").

Just put the routine in the web user control and it should work without a
problem

Regards

Jody

"Bernie V" <be************ *@pandora.be> wrote in message
news:Od******** ******@TK2MSFTN GP11.phx.gbl...
Hey group !

I have a page where I have a newssection. Each line is a link.
Is it possible to use a page news.aspx where I work with a querystring to refer to the page ? example: news.aspx?id=3
On my news.aspx page I have some usercontrols (header.ascx, leftside.ascx, rightside.ascx, footer.ascx and newsmiddle.ascx ).

I want to put the news from the id in the querystring in the newsmiddle.ascx
component.
How can I do that so that the right newsheadline for each id can be

used ?

Has somebody tips or examples how to do that ?

thx in advance !

gr

Bernd


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1503
by: Colin Mc Mahon | last post by:
Hi, I am trying to re-write an old url management class I use, and am having problems using the Execute method to create vars. I think i'm missing something simple, as I have used this method several times to perform this kind of action, maybe it just needs some fresh eyes :) The code i'm using is as follows: Class cURL ' *--- --------------------------------------------------* Private i_ItemCount
1
6753
by: lion | last post by:
my Problem: a query string passed into a html page doesn't display correctly on a mac I am just using html and javascript (no ASP, PHP or server side scripting) This is the query string: popup.html?pImage=30_leilani_dowding_b_060.jpg&ordRef=1000&Title=Leilani&nbsp;Dowding using the QueryString function below, the pImage variable should be
3
2000
by: Phil Powell | last post by:
'GET THE HTML CONTENT FOR DISPLAY BAND ORIGIN Dim bandOriginDropdown On Error Resume Next set scraper = Server.CreateObject("Microsoft.XMLHTTP") if err then bandOriginDropdown = "" else scraper.open "GET", path & "/includes/soa_form_element_plugin.inc.asp", false scraper.send "tableID=2&fieldID=1&typeID=0"
7
43279
by: Anne | last post by:
hie there, i want to be able to pass multiple parameters to another page. currently, i am able to do so, but somehow i feel it is not the correct way to do it. below is part of what i have so far. 'first page Private Sub btnOK_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click Response.Redirect("InputValues.aspx?Requestor=" &
3
3135
by: Dan Sikorsky | last post by:
How can I get the Querystring passed to the Referring Page from its referrer? I don't want the querystring coming to my current page. I want the querystring that came to the referring page, so that I can check for the existance of a parameter value in that previous querystring.
4
1624
by: Jeff | last post by:
Hey gang. I have a form to select multiple names. The problem I am having, is when it gets to the asp page. If I click 1 name, it will process. But multiple names gives me an error: Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /GIG/ladder/reportasp2_new.asp, line 53 that line's code is set rsID2 = conn.execute ("select total_score from rounds where username =
2
2542
by: rsenal | last post by:
I have buit a website using a template and want to use a contact form for people to submit details which the sends it to my email. My server is set for ASP. Below is the code can with my 2 email addresses. Can anyone tell me why i am still getting a invalid email address message. Thanks Set reg = New RegExp reg.Pattern = "^+@(+\.)++$" Set m = reg.Execute(Request.QueryString("your_email"))
0
10955
by: sirjohnofthewest | last post by:
This function will give you 100% control over the QueryString -- perfect for programmers who use QueryString manipulation a lot. I wrote this function when I kept having to change values of the QueryString and remove some, add some, etc., etc.. It takes four (4) parameters: oldUrl = the current QueryString you would like manipulated qsName = the name of the QueryField you would like to modify/remove/add newValue = the new value you...
2
3174
by: shivendravikramsingh | last post by:
hi friends, i m using a ajax function for retrieving some values from a database table,and display the values in required field,my prob is that the ajax function i m using is working f9 once,but if i change something in php file using in ajax function.it not refreshed,means its shows the previous result it not get updated.i can't understand whats the prob.this is the code i m using: <? include("config.inc.php"); //error_reporting(0); ...
3
2162
by: pingsheng | last post by:
Dear all, I have a form with dynamically created input fields. These fields go to next page for submitting into SQL database. The thing is all fields are the same but 4 fields. So each record must be submitted with a unique key, while everything is the same, these 4 fields must be different.... Idealy, these are the codes. please teach me how to do it. objConn.Open(sConnection) sRowNum = request.querystring("row_num")
0
9731
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10393
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10136
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5697
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4342
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3871
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.