Create API In C# To Push Or Receive Data?

Mar 23, 2011

I would like to create an API for my website to send and receive data.
For example I need my customers to upload products, single or multiple items. Product feeds can be send daily, weekly or monthly.

Product Name:
Product Color:
Product Weight:
Product Images:

Also I need functionality to send this data to another server. And it should be user friendly.

where to start, what technology to use to make it simple and sufficient.

I have background in Asp.Net, C#. It would be great to see an example how to approach it.

View 4 Replies


Similar Messages:

Push - Sending Data Between Client With 4.0?

Feb 21, 2011

I'm transforming lotus note application to ASP.NET.In lotus note, we can pass the application(data) from staff to his/her manager for approval.The staff can also check status of his/her data whether the manager is opening it, approved it or not.This process can be done in real time. I mean on the staff screen he/she will see status is changing from data sent --> manager is opening --> manager accepted or manager rejected it.In the same time, if other staffs try to track this application(data) they will see the same screen with the first staff.ow, in asp.net, i'm thinking of sending data from staff to manager directly. I don't want manager's web browser need to do polling for every xx millisecond. I'm not quite too sure it can be done or not in asp.net because i'm not the WEB guy.After doing a research for a while, i found that comet may help me on that but it seems pretty hard. And I don't know it is suitable for my problem or not or someone may guide me a better idea on this.

View 1 Replies

How To Push Data To Flash/silverlight Client

Nov 18, 2010

I'm developing chat application. I use flash as front end and asp.net back-end. My question is: can my asp.net web app send data to flash app in browser without post back ?actually it mean asp.net push data to flash client. I don't know much about flash or siverlight, dose flash support to do that ? or other way help me connect direct from server to browser without using post back or Jabber ?

View 4 Replies

Web Forms :: User Can Receive The Mail Form My Site But I Cannot Receive Any User Details Mail

Jul 22, 2010

I have developed simple user registeration application form in that after press submit button i am sending mail to user for welcome template as well as i am also get on mail for user details like name email id, and ip address.my problem is the user can receive the mail form my site but i am receive the any user details mail it doesnot shows any exception what is the problem i donno please

View 4 Replies

How To Call And Receive URL Data

Jan 28, 2011

In asp.net (or vb) I must to call a page that only autenticates a user, returning the user data if the logon succed. This way, I would like to implement the sequence:

A blank page (mine) request the autenticator page (3rd part) automatically on load; The user logs in the autenticator page; My page reads the autenticator page results and do the actions.

I'm a very begginer in asp.net, and I'm using vb.net in the environment for coding the page "onload" event. I'm trying to use the "redirect('url')" method to call the autenticator's page, but in this way, obviously, I can't receive the result. How can I implement this sequence?

View 1 Replies

How To Receive Data From Database And In A While Loop

Oct 15, 2010

i want to receive some data from my database and in a while loop. i use this code in the while loop

Code:
Dim sqlda As New SqlDataAdapter()
sqlda.SelectCommand = New SqlCommand()
sqlda.SelectCommand.Connection = con
sqlda.SelectCommand.Parameters.Add(paramar(0))
sqlda.SelectCommand.CommandText = "select images,creationdate,dimosieyseis from t_accounts where UserName=@un"
Dim ds As New DataSet()
sqlda.Fill(ds)

if i open and close the connection it becomes slow. if i use a general con and not open and close it then i receive an error

"There is already an open DataReader associated with this Command which must be closed first. "

then i tried to resolve this error with

MultipleActiveResultSets=True that resolves the problem but it is not faster because i think it does the open and close of the connection automatically

View 4 Replies

How To Send And Receive Data Using Web Service And JQuery

May 24, 2010

I want to run a web service method with parameters and get method return value back using JQuery.

ie.

client :

var result = dosomething(var p1, var p2, var p3 ....);

when do something accesses WebService with

dosomewebservice(int p1,int p2, string p3) { return "something" };
result == "something";

View 2 Replies

MVC :: Cannot Receive / Process POST Data Successfully

Jun 5, 2010

I have the following ViewModel:

[Code]....

This goes into a view like this:

[Code]....

Which as a result generates this:

[Code]....

Now, I'm trying to receive this data in a method so I can update stuff, like this:

[Code]....

But the above is not working. I've tried using [Bind(Prefix="user")] with no success. Before using this setup, I had all the user's properties directly in the ViewModel and the above method worked like charm.

What can I do to be able to process my POST request? I do not want to change my ViewData structure. I presume the answer to the question is not to difficult and lies only in adding something or changing some properties.

View 2 Replies

Programmatically Send And Receive Data Using Post Method?

Sep 16, 2010

I wish to make a script which programatically send the POST data to one server and then the other server receive the POST message and retrieve the information. How should make this work? I already successfully write the sender site, the code as follow:

string postData = "id=0&co=5";
ASCIIEncoding encode = new ASCIIEncoding();

View 4 Replies

C# - How To Find The Elapsed Time Between Send And Receive Data

Feb 28, 2010

I am using the System.Timers.Timer class. And I enable when I send a message and disable when I receive the message. How do I calculate how much time has elapsed. I have set the interval as 1 sec

Basically I retransmit data after 1000 sec again if I do not recive an ACK. I retransmit 5 times max until I get a Ack. If I receive and something before 150ms then I stop retrnsmission.

Here's the code:

timer1.interval = 1000;
port.Write(data)
timer1.enabled = true;

event handler for the received data.

timer1.enabled=false;

View 3 Replies

How To Create An Email Application That Support Sending And Receive Email Application

Jan 29, 2010

I need to create an email application that support sending and receive email application.

View 1 Replies

AJAX :: Send Receive Data Between Server And Client Without Postback

Mar 7, 2012

as per my flow on every click i have a postbackĀ  without which i cannot store data to client or server.i have 2 ways of data storing one is client side in javascript variables in form of array(which can be lost on postback) the data to be stored are of differnt types some are numeric , some single characters some sepearted with comma other way is on each post back save the data in a session varibale on server & then access currently i have second way considering both the ways and in accrodance with the current flow which is best for maintenance & access speed reasking as i am notyet cleared abt the things.

View 1 Replies

Forms Data Controls :: How To Push Down Outer ListView From Nested ListView Control

Mar 13, 2011

I have anested ListView control. I also implemented a jQuery to automatically expand the TextBox control inside of the nested ListView Insert Template. The problem is, when the Textbox expand, the outer ListView control is not; therefore, the Textbox control expands underneath the buttons of the outer listView control. How do I expand the outer ListView control as the nested ListView textbox is automatically expand? One great example is in Facebook where if I add a response comment, it'll automatically push any comments below mine down. If nested Listview control is not the best way to do this, what are my options?

View 8 Replies

C# - Is Normal To Push Data Into The Stream Before Click "Save"

Apr 2, 2010

I'm making tests with ASP.NET HttpHandler for download a file writting directly on the response stream, and I'm not pretty sure about the way I'm doing it. This is a example method, in the future the file could be stored in a BLOB in the database:

public void GetFile(HttpResponse response)
{
String fileName = "example.iso";
response.ClearHeaders();
response.ClearContent();
response.ContentType = "application/octet-stream";
response.AppendHeader("Content-Disposition", "attachment; filename=" + fileName);
using (FileStream fs = new FileStream(Path.Combine(HttpContext.Current.Server.MapPath("~/App_Data"), fileName), FileMode.Open))
{
Byte[] buffer = new Byte[4096];
Int32 readed = 0;
while ((readed = fs.Read(buffer, 0, buffer.Length)) > 0)
{
response.OutputStream.Write(buffer, 0, readed);
response.Flush();
}
}
}

When I open the url with the browser, appears the "Save File" dialog... but it seems like the server has started already to push data into the stream before I click "Save", is that normal? If I remove the line"response.Flush()", when I open the url with the browser, ... I see how the web server is pushing data but the "Save File" dialog doesn't come up, (or at least not in a reasonable time fashion) why?

When I open the url with a WebRequest object, I see that the HttpResponse.ContentLength is "-1", although I can read the stream and get the file. What is the meaning of -1? When is HttpResponse.ContentLength going to show the length of the response? For example, I have a method that retrieves a big xml compresed with deflate as a binary stream, but in that case... when I access it with a WebRequest, in the HttpResponse I can actually see the ContentLength with the length of the stream, why? What is the optimal length for the Byte[] array that I use as buffer for optimal performance in a web server? I've read that is between 4K and 8K... but which factors should I consider to make the correct decision. Does this method bloat the IIS or client memory usage? or is it actually buffering the transference correctly?

View 4 Replies

Forms Data Controls :: Radio Button List Inside Gridview - Push A Button To Submit The QuestionID

Jul 24, 2010

I have a databound Gridview (with a LINQ datasource). The gridview displays questions from the SQL DB to the user. I've inserted a radio button list into the gridview with 3 horizontal radio buttons with fixed values of 1,2,3 for the user to select. I have a question ID, a tempuserID, and AnswerValue columns set up in the database. It all works nicely.

After the user selects radio buttons, I would like for them to push a button to submit the QuestionID, the associated Radio Button Value (AnswerValue) and their tempUserID into the DB. How do I do this? I'm not sure what to do next and what VB/LINQ code to put in the code behind file in the button click event handler. I'm also not sure on what to use for the tempUserID, can I use the sessionID? I'm using VB and here's my code:

[Code]....

View 15 Replies

Web Forms :: Push Data To Page Instead Of Page Pulling Data?

Jun 24, 2010

I have a page that displays updated data every few seconds but instead of pulling data from database, I would like DB to push data only if the data has been changed. Is that possible?

View 10 Replies

Push Out JSON In Mvc 2?

Dec 27, 2010

I have a response object which I want to convert to Json, but somehow I can't, propably beacuse of I cannot the framework too well. I'm trying to convert a anonymous object to json but somehow it doesn't go so well. I would preferably do it in JSON than just make a text/plain result. In my controller: ViewData["json"] = new { Ok = false }; In my view: <%: ViewData["json"] %>

In my js-code (ajax-callback) I get back the following: { Ok = False } Which ain't what I am excepting. I want the { ok : false } or else js doesn't recognize the property in the object as a boolean. Or are there some better way to push out json-data? EDIT I did a method in my controller with a JsonResult instead of Actionresult.

var obj = new
{
Ok = false,
Message = ""
};
return Json(obj);

And that's the object I'm pushing out. And like this in js: {"Ok":true,"Message":""} C# 4.0 and Javascript goes along so well

View 1 Replies

Web Forms :: How To Implement Push Notification For Wp7

Jun 11, 2010

I want to implement push notification for wp7 so

View 2 Replies

.Net MVC And Comet (ajax Push) Implementation

Jun 8, 2010

I'm trying to implement an auction website and I search in web the Ajax Push is the best way where I can use! So, I'm finding some samples in web to learn how to implement Ajax Push (comet) in client and server. By the way, I find some samples in ASP.Net Webforms, but no in MVC version. I'd like to find a demo, sample, anything ... that use MVC

View 3 Replies

Web Forms :: How To Implement Push Technology

May 7, 2015

How to implement push technology in asp.net ...

View 1 Replies

NLB And Using MS Web Deploy To Push A New Version Of The Application To One Server

Apr 26, 2010

I have two webservers in a cluster serving a web application. Using MS Web Deploy to push a new version of the application to one server, and then again to synchronize the files to the other server in the cluster. It seems to be the most ordinary thing to do. But wouldn't there be a problemm, when one server is deployed with the new version, and the other is not yet finished. Will it not cause troubles, when a page loaded with the new version makes a webservice request and the balancer sends the request to the server with the old version?

What's the best way to avoid this? I thought about scripting a drainstop of the server, that we deploy to, and make sure only one server is running at a time. But I can't find anyone else, who seems to have written about such a solution. And guess that it doesn't scale very well too. Another solution could be to shut down all servers when updating. But that doesn't seems very clever.

View 2 Replies

How POKEIN Identifies Clients For Doing SERVER PUSH

Mar 22, 2011

I have a web application, where users will see notifications for their new messages, I want to push the notifications to the users who are already logged in.I have seen that I can do it using Server Push of PokeIn, I have tried and understood the simple application using it, but I am not getting the ClientID thing.The ClientId it saves in "OnClientConnected" is a simple integer, so how does it recognizes clients and calls functions on them ?

View 1 Replies

Configuration :: Push Message From IIS Server Automatically?

Jul 14, 2010

I am doing R & D in Generate multiple Pdf files in SSRS. Yes I have done this but i have some drawback in them. If user can trigger this process and they can continue their work in application. Acutally I need to do it when generating Pdf process is compleleted, I have to intimate to the user to this process is getting completed. I heard, there is a way in IIS Server to get the Message automatically from the IIS server. When my Process is getting finiched , i need to show the message to user.even though user who can stay in some other page.

View 2 Replies

Web Forms :: Implement Push Notification To Android App

May 7, 2015

I am using asp.net c# as server in my project and i want to use push notification in my mobile app...

View 1 Replies

Web Forms :: How To Send Push Notifications To IPhone Using C#

Dec 26, 2012

I want to send a push notification from a .net client to iphone and ipad devices,how to do this.I have googled to implement this but i could'nt get a proper solution.But I have followed a method in one blog everything went fine while running the code without errors but the message which i have sent from .NET CLIENT are not being delivered to the iphone. URL.....I have followed the steps accordingly in this blog but I couldnt make it work.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved