C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




what purpose used ? = {0} in link?


Posted Date: 07 Sep 2008      Total Responses: 2

Posted By: gandhi       Member Level: Silver     Points: 1



Dear all

cMain.aspx?LeftCtrl=CLink&ctrl=AddNewLoan&CompanyId={0}

this is one link of my project in this link '?' '=' '{0}' this single quotaiton marks what purposes used?

what is it meaning





Responses

Author: Satya    07 Sep 2008Member Level: GoldRating:     Points: 2

You are passing the parameters from this page to cMain.aspx.
The parameters are LeftCtrl, ctrl and the CompanyId.

For more information look:
http://aspnet.4guysfromrolla.com/articles/020205-1.aspx
http://www.codeproject.com/KB/aspnet/IFrameParams.aspx



Author: Karthikeyan S    08 Sep 2008Member Level: GoldRating:     Points: 3

Hi,

I hope you are using Hyperlink field in gridview.

Inside gridview for the Hyperlink field we can set the list of databound fields, which is used to pass those values as a query string to the target url of this Hyperlink field.

By passing dynamic values of the row to another page through url, you are sending some information to another page using query stirng.


Ex:
<asp:HyperLinkField DataNavigateUrlFields="CategoryID"
DataNavigateUrlFormatString="SmallWindow.aspx?id={0}"
DataTextField="CategoryName" NavigateUrl="SmallWindow.aspx" />

in above example in the place of {0}, dynamically CategoryID value of current row will be passed in the url.



Post Reply
You must Sign In to post a response.
Next : what is it meaning? what purpose use?
Previous : How to run ascx page?
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use