I have 2 fields being displayed in a Gridview, StartTime, EndTime. I want to create a 'Time" column which shows the elapsed time in HH:MM format. (StartTime - EndTime) This was all generated with VS2008, table is pulled from an SQL Query.
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();
This works.. I can then colour my grid view cells accordingly using the substring function.. the problem is that I have been told that using GETDATE three times is not a good use of resources, is it possible to use the Datediff function to get the same result?
I have a web service in ASP.NET being called by a time-sensitive process. If the web service takes longer than N seconds to run I want to return from the call so the time sensitive operation can continue. Is this possible and if so what is the code for this?
i have simple form which consists of 2 labels and 2 buttons, the first label will display the current time and second label will display the cached time for 2 mins which is absolute..
no w when i click on first button only current time have to get update,, and when i click on second button both current time cached time have to be updated even though the cached time of 2 mins not elapsed also.
We have an ASP.NET web app talking to WCF for data. After resolving a number of service and db level performance issues, we turned to look at the web app itself.
After running a profile while hitting a few common pages, ProcessRequest is at the top of the list as far as elapsed exclusive time (which means time just in that method and any kernel code if I'm not mistaken)
Function Name Elapsed Inclusive Time Elapsed Exclusive Time System.Web.UI.Page.ProcessRequest(class System.Web.HttpContext) 31,573.64 17,915.56
Viewstate sizes are not severe, prob 60k at most for fattest page.
I wanted to send and receive SMS from my application, as of the need i bought a Wavecom GSM Modem. I also downloaded ActiveXperts Toolkit for communicating with GSM Modem, i can be able to send SMS through the GSM Modem. have problem with receiving SMS.
I'm completely blanking here. I've got 2 servers that cannot talk to each other via normal network traffic (like just copying a file). I can't get FTP setup on either server due to artificial company security constraints.Server1 basically just has an exe on it that I have written, and it needs to send a file to Server2.Server2 has a full blown asp.net website on it so I'm writing a .ashx page to handle receiving the file.So...Server1 needs to make a call to server2 and send a file to it over http. Server2 needs to accept the file and save it to disk.Where should I start? I know I can make server1 create a WebRequest object, and set the methodto POST, and then stream the content.But on server2, what am I supposed to write? A generic handler? Will my file that I send be part of the context.Request object? How do I get it out?
I have create a website and i need to send/receive email from website . I am able to send email through system.net.mail namespace . But it needs an gmail id and password . I want to send email from my website like Username@mywebsite.com and also receive email from another domain like gmail.com . I didn't know how i can perform this task . I don't have a logic .
My problem is that I have a grid view that show the data from database.In my gridview i add a column name date .like eg You knw that when we send a scrap to anyone then show time how much time to send a scrap.
I need to send a cookie to the my web site's visitors and receive them back for information. For example when machine1 visits my site if not set I set a cookie with "user1", for machine2 I set "user2" etc.
Actually I need to retrieve the cookie back from my log file, so I thought if I do this it will be saved to my log file.
How can i get wcf service to send larger packets of data at a time?
So, apparently the default BytesPerRead is 4096, however I've changed that value on both the client and the server. here is the config file
Moreover, I've found an unanswered post dealing with the same issue WCF maxBytesPerRead limit to 4096
(Note that i have two endpoints, one is for downloading content in basicHttpBinding and one is for communication using ws2007HttpBinding, I am referring to the basicHttpBinding endpoint in my question)