Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 52426 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > How to work with Query String? ...
Shameer.Ali87

How to work with Query String?

Replies: 3 | Posted by: Shameer.Ali87 on 8/25/2012 | Category: ASP.NET Forums | Views: 322 | Status: [Member] | Points: 10  


I am supposed to create multiple pages to pass the value and titles for the corresponding values...
so Instead of create multiple pages, I can hold the value and its title, and in turn I can make the value and its title sit in the same place of only one page...

can any one explain me the above using a query string..

shameer ali shaik


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Johnbhatt
Johnbhatt  
Posted on: 8/26/2012 10:21:51 AM
Level: Starter | Status: [Member] | Points: 25

I am little confused or can't get your question clearly.

However, if you want to Keep the Title Same for Multiple Pages, just make use of Masterpage and keep title blank in Content Pages. But I think this is not the situation.

Please make it clear with an illustrating example. Will try to help.

John Bhatt
Glad to Know, Free to Share.....
http://www.johnbhatt.com

Shameer.Ali87, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Shameer.Ali87
Shameer.Ali87  
Posted on: 8/27/2012 12:19:41 AM
Level: Starter | Status: [Member] | Points: 25

hi john,

I am designing a website similar to you tube, so in that i have 5 videos,
so for each video i have given different pages as(page1, page2...,page5), so that each video plays in separate page..

I have given the links for all the videos from the main page(default.aspx)..
here, with the above scenario, everything is fine its working well...

but now Iam trying to do the same concept using query string. So that I have only one page and I can just change the
video ID and title of that Video using Query String...

that's it.. any help regarding Query String will be thankfull...



shameer ali shaik

Shameer.Ali87, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Johnbhatt
Johnbhatt  
Posted on: 8/27/2012 4:00:16 AM
Level: Starter | Status: [Member] | Points: 25

OK, this is the exactly what I wanted to understand.

You can pass the Query from any page to Video Player Page and want to Embed file from Query String inside Player.

Do following tasks on Page Load event.

Query Details of Mentioned VideoID from Database. Like URL, Video Title for Page Title etc.

ex.
int VidID="";
if(Request.QueryString!=null)
{
VidID = Convert.ToInt(Request.QueryString.ToString());

//sqlconnection and get details according to VidID;

//then Pass the URL of Video to Player.

//Change the Title of Browser : this.Title = ds.table[0].Rows[0][2].ToString() + " - My Video Community";
}

This code is not coded at VS, so change some basis if some mistakes.

John Bhatt
Glad to Know, Free to Share.....
http://www.johnbhatt.com

Shameer.Ali87, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/19/2013 11:17:02 AM