By default, WCF service URL runs with .svc extension. sometimes, I felt that .svc extension is not useful when we reference or share the service URL to application or public. There is a very simple way I found to remove this extension and run as very plain URL with out any major coding.
Normally, URL looks like below
http://domainname/WCFServiceName.svc/MethodName?parameter
We need to change the above URL to below one. Looks simple and neat right?
http://domainname/WCFServiceName/MethodName?parameter
Simple solution is to implement it at web.config level using URL re-writing which is very very simple. Other methods like writing custom URL Re writing module, configure at server level are little complex than compared to web.config changes.We have to apply changes under system.webserver as below
below WCFServiceName names alone we need to change according to your service name. try now with removing with .svc URL.
Share your feedback!!!
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<rewrite>
<rules>
<rule name="WCFServiceName" stopProcessing="true">
<match url="^WCFServiceName/(.*)$"/>
<action type="Rewrite" url="WCFServiceName.svc/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
b4946d81-0834-4774-9004-ab9d20494789|3|3.0|27604f05-86ad-47ef-9e05-950bb762570c
With the Windows Live Writer (WLW) you can create or open local draft version of a post. but Windows Live writer don't have a feature of editing the existing posted blogs. But I found one plugin which is very useful to edit the existing blog.
When I search for the edit an existing blog post in google, I came across with the below nice plugin.
Download the below plugin and install it on your machine.
http://aovestdipaperino.com/pages/wlw-post-download-plugin-instructions.aspx
Syntax to open an existing blog post is wlw://www.yourdomain.com/?postid=[postid]. Here http should be replaced with wlw.
when you hit above link with your domain information and post id, existing post will open in Windows Live Writer.
Edit existing post thru BlogEngine blog
Under the PostView.ascx user control, add below code where ever you would like to show the "Edit in WLW" link.
<asp:LoginView runat="server" ID="LoginView1"><LoggedInTemplate>
<a href="<%=Utils.AbsoluteWebRoot.ToString().Replace("http","wlw") + "?postid=" + Post.Id%>" rel="bookmark">Edit in WLW</a>
</LoggedInTemplate></asp:LoginView>
dbcd7cc1-f002-4678-9f40-58aace2afc9f|1|3.0|27604f05-86ad-47ef-9e05-950bb762570c
When we use the AJAX Control Toolkit ModalPopupExtender, sometimes we may get below error
Sys.Extended is undefined$create(Sys.Extended.UI.ModalPopupBehavior, {"BackgroundCssClass":...
After few hours of investigation, I realized that keyword I’m using it for scriptmanager.If you are using .net 4.0 framework, then change it from
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
To
<asp:scriptmanager ID="ToolkitScriptManager1" runat="server"></asp:scriptmanager >
And vice-versa for 3.5 and below version.
6ad9cafe-cd96-496c-b432-8baf00fdc203|1|4.0|27604f05-86ad-47ef-9e05-950bb762570c
Normally, We can easily convert text into image thru .net system.drawing namespace and their methods. but converting the HTML to Image in asp.net is bit a tricky one.
Why it is so tricky? Good question. right?
Trickiness is lying in-terms of output. The outcome of the image exactly should matches whatever you see that in your browser. I.e. WYSIWYG.
[More]
9b50447a-4763-4aae-b747-984b6427eb1c|3|4.3|27604f05-86ad-47ef-9e05-950bb762570c
While sending mails using system.net from asp.net, mail inbox always shows as username@domainname.com. This may not looks good and also not user-friendly to the users.
[More]
4113e158-963a-4959-8877-b4f79ca7ad6e|0|.0|27604f05-86ad-47ef-9e05-950bb762570c
Adding case statement in where clause sometime we may not get the exact output we required. some solution suggested to add or condition instead of using case statement which again not giving desired results. but one solution I have found using case statement in where clause in reverse way.
[More]
ab5ef5e3-9f3a-4156-8ece-1b4080d53749|0|.0|27604f05-86ad-47ef-9e05-950bb762570c
Recently, I have faced an issue while developing an application using MS SQL 2008 and ASP.NET. I have created a SP which is running fine in from SQL Server Management Studio. But, When I execute it thru the asp.net application, it is timing out. i tried debugging and doing R&D. but in vein. later on i found the reason in the web saying parameter sniffing. Parameter sniffing? Oh yes. this is new to me. what is this by the way?
[More]
54b5a444-4bde-4607-95b3-1ead4df81e9d|0|.0|27604f05-86ad-47ef-9e05-950bb762570c
I was trying to find a solution to bold an item in drop-down. I tried using <b> markup from the code itself. but nothing working. finally, after come across with the some webpages, i found this solution. but this will work only with the Firefox not IE :(
[More]
8b064210-a3fd-4f51-84a1-ead25d33e145|0|.0|27604f05-86ad-47ef-9e05-950bb762570c
Modern Java design patterns with free eBook for download
[More]
62221fcc-6ce0-4d95-b924-3e036730cca5|2|3.5|27604f05-86ad-47ef-9e05-950bb762570c
This SP delete all the SPs, Views, Functions and Tables from your database in a minute.
[More]
0d8aa664-5525-4642-96f9-6313a103897f|0|.0|27604f05-86ad-47ef-9e05-950bb762570c