473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1379
Your header information should also be available to your web controls ie
request.querystring("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**************@TK2MSFTNGP11.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*****@claytonutz.com.dontspamme> schreef in bericht
news:%2******************@TK2MSFTNGP09.phx.gbl...
Your header information should also be available to your web controls ie
request.querystring("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**************@TK2MSFTNGP11.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
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...
1
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:...
3
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...
7
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....
3
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...
4
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...
2
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...
0
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...
2
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...
3
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.