Comment by Lalit on Input an array in the Rest Web service
Thanks for pointing this... unfortunately except one question none of were answered up to my satisfaction.
View ArticleComment by Lalit on Input an array in the Rest Web service
It seems that this type of operation i.e. sending list of items in the GET Method, is NOT allowed. It has to be accomplished via POST method only.
View ArticleComment by Lalit on Rest Methods that vary by query string parameters
This is the requirement that we need to use query string so cannot change it. Regarding signature, date time also worked.
View ArticleComment by Lalit on Hide Url tooltip of an anchor in IE Kiosk mode
I have to implement a solution for submit buttons as well. If I have to apply this solution to the submit buttons as well then this will be too much work for nothing. Is there any sort of tweak in IE...
View ArticleComment by Lalit on How to connect WebBrowser to IE instance?
normally I would create a web method to call server side code from JS or a web page that will accept query string parameter as input and use Response.Write to return the out and then call Response.End
View ArticleComment by Lalit on How to display a PdfPage as image in WPF form using...
You can ask from Docotic. BTW it might be released in this month.
View ArticleComment by Lalit on How to use compression while saving pdf file using...
Have you checked with the vendor if they support this?
View ArticleComment by Lalit on Change REST Method Response XML Node name in MVC 4
It will generate XML like <Contacts> <Contacts><Contact> ... </Contact></Contacts> </Contacts> which is not correct response.
View ArticleComment by Lalit on Authorize request between web services by Single Access...
I do not want to share token database between service. So now, here is what I trying to do. I assigned consumer key and secret to each web service. On Application Start web service will authenticate...
View ArticleComment by Lalit on MVC4 WebApi adding ETag in Response Header
If I add any other custom header e.g. ClientId: 1234 it is being returned but ETag and Date headers are not returned.
View ArticleComment by Lalit on Retrieve ETW Provider Manifest for a registered provider
Thanks for guiding to the exact folder and file.
View ArticleiTextSharp - Copying elements from one PDF to another
I want to copy certain elements from one PDF to another using iTextSharp.I want to read one PDF, read text elements from that and correct them and create a new PDF using the updated text elements and...
View ArticleAnswer by Lalit for get all rows of column with datatype bit
This can also be achieved like:WHERE user.active = ISNULL(@Active, user.active)using this, SQL server can use an index if one is available and can be used.
View ArticleAnswer by Lalit for C# Rearrange text in a string
It would be difficult to write single generic code for any type of format.However, you could write an interface with a method say Format(...) and create one class for each type of format then...
View ArticleAnswer by Lalit for How to create Lost found/target in sequence diagram in...
Found a solution...In my case, it worked when I created asynchronous message.
View ArticleTool for editing Project File to add Import Tag
Is there any tool within Visual Studio IDE to edit <Import Project ... /> settings?Currently we have to open project file in notepad and update the project setting manually.Thanks in Advance.
View ArticleData type restriction in REST Web service method
Is there any restriction on the data types that the input parameter that is present in URI has to be string in REST Webservice?I am creating a REST Webservice. The method has an input paramter Id and...
View ArticleAnswer by Lalit for Rest Methods that vary by query string parameters
Figured out the cause of this error.The name of parameter in the Interface was different. The name used in the URI must match with then name in interface.Moreover, there is no need to define separate...
View ArticleRest Methods that vary by query string parameters
I want to create two Rest methods that vary based on the query string parameter in the URI.like [WebGet(UriTemplate = "Guest/{guestId}?day={day}&type={type}")][OperationContract(Name =...
View ArticleHide Url tooltip of an anchor in IE Kiosk mode
I am running a web page in Internet explorer in Kiosk Mode. When the mouse comes over a Link the Url is displayed at the bottom left corner of the screen.Is there any way to hide this?
View ArticleAnswer by Lalit for Convert an HTML output into an Image
If you want to use your web page as the href of an anchor and return a dynamic image based on some query string then you could use Response object to send your image stream using Response.BinaryWrite...
View ArticleAnswer by Lalit for C# -> Detetcting Browser Width
The possible solution could be get screen size from javascript and call a method on server (using Jquery) that will save the details in the session.Can you explain, for what purpose do you want use...
View ArticleMVC3: Updated value does not reflect in text box after post
I am showing a collection of data on my page. I am showing label and Textbox for each row.Below is the sample code from my View:@using (Html.BeginForm()){<input type="submit" value="Ok" /> @for...
View ArticleMark a Field as IsRequired having attribute [XmlElement]
I have a class that I want to serialize[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://xyz.com/schema")]public class Customer{ [System.Xml.Serialization.XmlElementAttribute(Order = 0)]...
View ArticleAnswer by Lalit for issue occuring on threading in different instances by...
There should a loop that frequently check the database for new records.Your code does not seem to have this loop that will iterate and check the database for the new records. Is there any other piece...
View ArticleAnswer by Lalit for Intentional Sleep call for a user login in a web app - C#...
You could check the IP Address of the request and maintain a list of failed attempts. Based on IP address you can code so that you disallow a specific IP if too many attempts are being made.You can...
View ArticleChange REST Method Response XML Node name in MVC 4
We are building a REST Service using MVC4 and added method like: public IEnumerable<Contact> GetAllContacts() { return repository.GetAll(); }The response of this method in XML generated...
View ArticleAuthorize request between web services by Single Access Token using...
I am trying to implement authentication using oAuth and using DotNetOpenAuth for this.We have multiple REST web services to cater project requirement. There is one AuthenticationService, Customer...
View ArticleCA2000 : Microsoft.Reliability object is not disposed along all exception paths
I am getting code analysis error in the below method. public static OracleCommand CreateStoredProcedureCommand(string name, OracleConnection connection) { return new OracleCommand(name, connection) {...
View ArticleProvide access to send, receive messages to Topic in Microsoft Service Bus...
To access Microsoft Service Bus Namespace and to send and listen messages on a particular topic, I have to import certificates on the client machine. The certificate can be used by the user who has...
View ArticleTFS 2013 Build - Adding log in Activity Log
We are using TFS build in 2013 to automate build & deploy process. For this we have also added some powershell scripts that perform some tasks like copying of binaries to a central location etc.To...
View ArticleAdd Atom Link in REST Service
I am creating a REST Service using .Net 4.0 and MVC4 and I want to provide atom link for the other resources in the method response.So Response should look like:<Customers...
View ArticleDifference between Atom Service and REST Service
Can somebody explain the difference between an ATOM Service and a REST Service?ATOM Service format is an XML based data format but wondering how is it different from a REST Service.Thanks.
View ArticleHow to create Lost found/target in sequence diagram in VS2010
When we generate sequence diagram using the code in VS2010, the generated diagram normally has a found target defined.I would like to add a lost target in the diagram.How can it be achieved?
View Article