Click here to Skip to main content
16,011,949 members

Comments by Lovely Bhatia (Top 7 by date)

Lovely Bhatia 16-Jan-14 2:48am View    
We want this?
When we drag the child node & drop it into drop area its became a drop down list
Lovely Bhatia 16-Jan-14 1:48am View    
All values in tree view get from data base then how can be use jquery
Lovely Bhatia 19-Sep-13 3:03am View    
& ALSO WRITE SOME CODE ON WEBCONFIG FILE
Lovely Bhatia 19-Sep-13 3:03am View    
FROM PAGE HTTP://THETRAVELPRICE.COM/SINGAPORE-TOUR-PACKAGES.ASPX.CS
WE SEND LIKE
public static string GenerateURL(object strname, object Title, object strId)
{
string strTitle = Title.ToString();

#region Generate SEO Friendly URL based on Title
//Trim Start and End Spaces.
strTitle = strTitle.Trim();

//Trim "-" Hyphen
strTitle = strTitle.Trim('-');

strTitle = strTitle.ToLower();
char[] chars = @"$%#@!*?;:~`+=()[]{}|\'<>,/^&"".".ToCharArray();
strTitle = strTitle.Replace("c#", "C-Sharp");
strTitle = strTitle.Replace("vb.net", "VB-Net");
strTitle = strTitle.Replace("asp.net", "Asp-Net");

//Replace . with - hyphen
strTitle = strTitle.Replace(".", "-");

//Replace Special-Characters
for (int i = 0; i < chars.Length; i++)
{
string strChar = chars.GetValue(i).ToString();
if (strTitle.Contains(strChar))
{
strTitle = strTitle.Replace(strChar, string.Empty);
}
}

//Replace all spaces with one "-" hyphen
strTitle = strTitle.Replace(" ", "-");

//Replace multiple "-" hyphen with single "-" hyphen.
strTitle = strTitle.Replace("--", "-");
strTitle = strTitle.Replace("---", "-");
strTitle = strTitle.Replace("----", "-");
strTitle = strTitle.Replace("-----", "-");
strTitle = strTitle.Replace("----", "-");
strTitle = strTitle.Replace("---", "-");
strTitle = strTitle.Replace("--", "-");

//Run the code again...
//Trim Start and End Spaces.
strTitle = strTitle.Trim();

//Trim "-" Hyphen
strTitle = strTitle.Trim('-');
#endregion

//Append ID at the end of SEO Friendly URL
strTitle = "-" + strname + "/" + strTitle + "-" + strId;

return strTitle;
}


& FROM HTTP://THETRAVELPRICE.COM/SINGAPORE-TOUR-PACKAGES.ASPX (SOURCE PAGE)

NavigateUrl='<%#GenerateURL(DataBinder.Eval(Container.DataItem,"LinkName"),DataBinder.Eval(Container.DataItem,"PackageName"),DataBinder.Eval(Container.DataItem,"PackageId"))%>'
Lovely Bhatia 19-Sep-13 2:55am View    
ITS SEEMS PERFACT.... NOW PLEASE ONE THING ALSO EXPLAIN ME ...HOW CAN WE REPLACE IT FROM URL BAR