473,385 Members | 1,983 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,385 software developers and data experts.

How to pass Id no to another aspx page?

I have created one gridview on Que.aspx

ID name Que Details answer

in answer i have kept link which redirect to page(answer.aspx) where use can give answer to the que

Actually i want to create forum kind of thing,

So for that particular que on which user click how can I show on the next page that particular ans and all previous answer related to that que...

How can i pass id of that que from Que.aspx to answer.aspx???

give suggestion and guide line I want to create my own forum...
Jun 30 '12 #1
2 3213
kadghar
1,295 Expert 1GB
you can create session variables, or you can do it by yourself with cookies or via url:

Check RESPONSE.COOKIES in your .net code.
Jul 3 '12 #2
Mudassir
85 64KB
you can use session variable like Session["Id"]=id or you can use query string like Response.Redirect("SomePage.aspx?Id=" + Id)
and on SomePage.aspx you can get the value from Session["Id"] or Int32.Parse[Request.QueryString(Id)]
Regards:
Mudassir
Jul 5 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Peter | last post by:
Hi I am very new to ASP development and I have a problem that I have spent days on and cannot find a solution. Any help would be gratefully accepted. I am using VB.NET to develop a ASP.NET...
2
by: Matthew Louden | last post by:
I want to provide date selection in a page. Basically I want to have similar effect as DTPicker in Visual Basic. My idea is to create a calendar control in mycalendar.aspx. Then I create a...
3
by: Irfan Akram | last post by:
Hi People, Wondering whether there is a way of being transferred to another aspx page, after waiting for a couple or more seconds, rather than being transferred immediately. For example...
1
by: RML | last post by:
Hi All, I have a web application who's index.htm page is a frameset containing 2 frames (Frame1 & Frame2). I have each frames SRC property set to an aspx page. I would like to re-load the aspx...
4
by: ~john | last post by:
If I have a label on the Master Page that I would like to change its text with a button on one of the content pages, Default.aspx... It's giving me an error saying "Label1" is not found. Can you...
3
by: Oscar | last post by:
What code do I need within VB to load another aspx page within the browser ?
3
by: jenp | last post by:
Hello I've got a rather tricky problem here - i'm looking to insert a graph into a web page - which is represented as a jpeg image. Due to the restrictions of the framework i'm developing...
6
by: fperri | last post by:
Hi, I'm very new to ASP, and I have been thrown into updating a website that was already written in ASP and pushing it to the web for the first time. So far, with my old knowledge of html and...
1
by: sweetpotatop | last post by:
Hi, Recently, I came across a very strange issue. I was trying to open an aspx page called "test.aspx" by using Response.Write(WindowOpen( "<script>window.open('" & "test.aspx" & "','" &...
0
by: charithstudy | last post by:
Hi All, In ASP.NET , I am using window.showModalDialog method to open a modal window. But when I try to do some processing in the modal window, it opens up another window. Like i have to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.