Click here to Skip to main content
15,910,603 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
C#
public string getHREF(object sURL)
{
    DataRowView dRView = (DataRowView)sURL;
    string Id = dRView["Id"].ToString();
    return ResolveUrl("~/UserDetails.aspx?Id=" + Id);
}



i want to know the explainantion of above code is it function or class?
Posted
Updated 1-May-11 1:06am
v2
Comments
Smithers-Jones 1-May-11 8:41am    
impolite and demandin ("I want"), no descripitve subject line.

Hi om56,

For sure this is a function not a class but why are you asking such a question !!!!!!!!!!
 
Share this answer
 
Indeed it is a function and a very bad practice and code design for this implementation.

The goal of that function is get the id from the DatarowView and append it to a page to be used as link.
 
Share this answer
 
The code is a function...

A) You already knew that.
B) You are trolling.

:thumbsdown:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900