Quantcast
Channel: User Lalit - Stack Overflow
Browsing all 34 articles
Browse latest View live
↧

Answer 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 Article


Answer 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 Article


MVC3: 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 Article

Mark 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 Article

Answer 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 Article


Answer 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 Article

Change 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 Article

Authorize 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 Article


CA2000 : 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 Article


Provide 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 Article

TFS 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 Article

Add 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 Article

Difference 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 Article


How 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
Browsing all 34 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>