16,011,949 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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
Lovely Bhatia
19-Sep-13 2:43am
View
I HAVE ALREADY USE USE REWRITING BUT IN THIS I DON'T UNDERSTAND HOW DID HIDE QUERY STRING FORM URL WHICH IS SHOW WITH (_) IN MY URL AS U SEE IN ABOVE
Lovely Bhatia
15-Feb-13 6:21am
View
But I don't want to insert the image in DB .I am only save name of the image in DB & image save in folder on one server & get it into in another server. if i fetch the image on another server then it gives an error
virtual path not valid)not valid)
Show More