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 : 22438 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Count the no of hyeper link controls in asp.net page ...
Kondapallisrinivas

Count the no of hyeper link controls in asp.net page

Replies: 5 | Posted by: Kondapallisrinivas on 10/31/2012 | Category: ASP.NET Forums | Views: 316 | Status: [Member] | Points: 10  


Dear All
I want to count the no of hyper controls of a page. But I am not on the page which I want the count. So how can I get the count of that page.


Reply | Reply with attachment | Alert Moderator

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

 Replies

Vasanthmvp
Vasanthmvp  
Posted on: 10/31/2012 5:53:26 AM
Level: Starter | Status: [Member] | Points: 25

Hi KondapalliSrinivas,
I think a similar post was posted earlier here:
http://www.dotnetfunda.com/forums/thread11990-count-the-no-of-hyeper-link-controls-in-aspnet-page.aspx

Regards,

Awesome Coding !! :)

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

Kondapallisrinivas
Kondapallisrinivas  
Posted on: 10/31/2012 6:03:00 AM
Level: Starter | Status: [Member] | Points: 25

Dear Vasanth
Thanks for the reply
Actually it gives the count of the controls of the same page. But i want the count of controls of page which i'm not on that page.

Let us consider the below example

Page1:I need the count of controls(O\P:3) of page-2 in Page-1
Page2:Hyper link-1,Hyper Link-2,Hyper Link-3

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

Vasanthmvp
Vasanthmvp  
Posted on: 10/31/2012 6:40:27 AM
Level: Starter | Status: [Member] | Points: 25

I don't think, we can do this..
we cannot count the number of hyperlinks particularly of a page or the same page also.. unless we give them similar type of ID's (HP1, HP2, HP3, etc) ie., if ID's of hyperlinks are known. Taking all the control id's in to a list. If the list element contains HP then count increases.
Indeed,Directly we can count only the number of controls on our page. You can,if you want the count of controls on the Master Page from content page.
Can you give me a scenario where it is useful.
If i am wrong, plz correct me.
Regards,

Awesome Coding !! :)

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

Kondapallisrinivas
Kondapallisrinivas  
Posted on: 10/31/2012 7:41:35 AM  Download source file
Level: Starter | Status: [Member] | Points: 25

Dear Vasanth
Can you please refere the attchment..So that you can get what exactly i need.....
Thanks in advance

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

Kondapallisrinivas
Kondapallisrinivas  
Posted on: 11/16/2012 4:17:15 PM
Level: Starter | Status: [Member] | Points: 25

Still i'm facing the problem.If any one has solution please please share with me(kondapallisrinivas15@gmail.com)

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

Reply - Please login to reply


Click here to login & reply

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 1:48:48 AM