JQuery :: Sending Data To The Client ( Advice )?

Nov 2, 2010

Currently, I am exploring options for sending data to the client. What I am hoping for is suggestions, or a pros and cons feedback.

What I am wanting to do is query the database then send this data to a web service ( or maybe wcf ). Once there, jquery ( or another JS library ) will utilize this data to fill a grid/tree/form depending. This all seems very very basic, but what concerns me is the amount of data that can be sent. I have seen some grids that have 16K records...and what worries me is that would be WAY too much data to send.

I was just wondering how these things are handled. My current thoughts are to do a 'onDemand' loading, but my inexperience has me second guessing. Also, I know this isn't directly related to jquery, but I notice there are a lot more examples with wcf rather than webmethod/web services.Is wcf better for these types of things?

View 5 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

Web Forms :: Sending Data From Client To Server Via Internet?

Jul 15, 2010

i have a website in our office which is a School. the website is an enrollment website which is available view internet, where the users (students) access the website to enroll almost simultaneously, select their subjects and schedules, etc.

this website is developed by someone who is no longger employed here. regular problem of the website is in times of enrollment, the students is experiencing slow processing when ever thay try to view/edit their information, subjects, etc. which are all in the database. a proposal was made and we have agreed to develop a new system that should run faster than the old system. access sql database to do Select/Update/Insert in the fastest way possible.

View 6 Replies

HttpHandlers / Modules :: Sending Binary Data From Server To Client?

Oct 29, 2010

I want to send a file by converting it into binary file to the client end and then it should be read by javascript which again I am passing to the OCX method.(like my OCX method accept only the binary data so i have to transmit binary data from server side to client).

View 1 Replies

JQuery :: Sending Large Data From Json Based Webservice?

Mar 11, 2011

i am using combination of jquery and JSON based webservice in most of projets. Lately i am facing this problem. if the data returned from webservice is huge ajax call from jquery fails. yup i know i can implement paging etc etc but is there a way i can increase the limit to get more data from webservice with jquery ajax call?

View 2 Replies

Sending Sensitive Data From Server To Server Via Client

Feb 18, 2010

I have situation where I need to authenticate a client across multiple web services. Basically each service needs to identify the client and know a few other small pieces of information about the client.

The way I have it working now is that the needed identifying information is stored in a session table in a database by the authenticating web server. The web server hands the client an string, which IDs the database entry and gets passed to the other web services. The web services then use this string to pull the needed information about the client from the database entry.

It has occurred to me that it might be possible to give the client an encrypted blob that contains the user ID and other needed information, which is rather small, and avoid using the database for this completely. The client would just pass around the blob (like the string in the previous paragraph) without needing to know what it contains, and only the web services would know how to decrypt it.

This should eliminate the need for the database to store the session information and would make the whole process a good bit simpler. With the database you have to worry about cleaning up old sessions and timeouts and so on.

So my question: is passing around sensitive data from service to service via client considered safe and acceptable? Is it possible to do this in a way that would eliminate worry about the client tampering with the data? What encryption algorithms would be good to use?

View 1 Replies

Sending Zip File To Client Via Response?

Oct 26, 2010

I've been pulling my hair out about this for ages. I have a WebService which sends a zip file to the browser. This works; when I test the WebService and 'invoke' the method through it directly, the zip file is downloaded to the browser correctly.

The problem arises when I use jQuery to send an AJAX request to the WebService - the zip file is downloaded to the response, but it stays in the response and doesn't download as a file.

Here is my code:

[Code]....

Now this works since the file downloads when I use the 'invoke' function when navigating directly to the service.

Here is my jQuery AJAX request...

[Code]....

I added the code in 'beforeSend' so that the request states explicitly what type of response the browser should expect.

I've been using Firebug to monitor the request/response headers and can't see anything wrong with them (except when I look at the content of the response, it's full of binary data AND its the same size as the file I'm sending.

I just attempted to upload screen-dumps of the request/response headers and the content of the reponse but I don't have enough reputation points to do this yet :-(

The Response is the same size of the Zip file so I'm assuming its being sent back to the browser, but the browser doesn't know what to do with it.

Tested in IE, FF & Chrome and the results are consistent.

View 2 Replies

C# - Page Not Rendered When Sending Statuscode 500 To The Client

Jul 20, 2010

I have a page (generic handler) on which I want to return the status code 500 to the client to indicate that something is wrong. I do it like this:

Response.StatusCode = 500;
Response.StatusDescription = "Internal Server Error";

And at the same time I render a friendly message telling the user that something went wrong. But instead of seing my message, I get the default IIS message saying something like this:

Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

And if I go in to IIS and remove the error page for 500, I get this message:

The page cannot be displayed because an internal server error has occurred.

It works as intended in IIS6, but not in IIS7. What should I do to get it working in IIS7?

View 1 Replies

Sending CSV Created On The Fly Back To Client For Download?

Mar 11, 2011

I'm converting a bunch of FOXPRO / FOXWEB apps to ASP.NET.

The underlying DB is still foxpro (for the moment).

I am passing a table to some VB.NET code that I want to have converted to a CSV file and sent back to the client for download. And it works! Sort of ... It works sometimes, but at other times, instead of asking me if I want to download the CSV file, it just spews the file to the browser window.

On the asp side, I am passing the response object, the table and the csv file name.

[Code]....

View 3 Replies

Web Forms :: Smtp Client Is Not Sending Some Emails?

Feb 1, 2011

I use a Smtp Client to email submitted information from an asp.net form. 3 users sent in their information and the user on the other end did not recieve either one of the emails. On the 2nd time around, she did recieve the emails. What could it be?

[Code]....

View 27 Replies

Looking For Authentication Advice For .NET MVC 3 Application

Nov 2, 2010

I have a web application that will be used by the public. This application has a login credentials requirement.

I don't want to create yet another site that you have to create a custom username/password combination unless you really want too. I would like to support 3rd party logins like Facebook, Twitter, etc...

In the end this website could run in the Azure cloud as well so I am open to anything special to that.

One thing to note is the Microsoft Membership Provider that is part of ASP.NET is a great way to have custom login/passwords with a nice integration into MVC code. What I would love is that Provider opened up to allow 3rd party logins.

View 1 Replies

C# - Sending Client Certificate Though HttpWebRequest, Intermittenly Working?

Oct 7, 2010

I have created a web application that calls a web service that requires a Client Certificate for authentication. Here is a snippet of how I am building the request:

// Grab Certificate
X509Certificate2 cert2 = new X509Certificate2(AppDomain.CurrentDomain.BaseDirectory + GiftCardConfig.A2A_CertificateLocation, GiftCardConfig.A2A_CertificatePassword, X509KeyStorageFlags.MachineKeySet);[code]....

This all works, but only intermittenly. About every 24 hours the Server hosting the web service returns a 403:Forbidden error. The only way to fix it is to do a iisreset of the server running the web application. We are completely stumped about this issue and would like to know if this issue has something to do with the web application or the configuration of the server it is being hosted on.

View 1 Replies

Web Forms :: Sending Email To Client On Button Click

Mar 30, 2012

I am sending the email to client on button click.

I am sending link with code

mm.Body =

To activate your account Please visit the link [URL]

View 1 Replies

C# - Best Way To Store Data On The Client Side - JQuery

Nov 29, 2010

Clicking 'Edit' for a row expands it (using JQuery) to reveal the full horror of all the associated editable objects. One of these is a list of documents associated with each row and needs to be JQuery-editable so the user could click 'edit' to open up the full row gui, then un/select checkboxes to de/associate documents and then hit 'Save' to persist everything.

Currently I'm using nested repeaters to store the initially-hidden fields - the repeater generates a hidden formfield containing a comma-separated list of IDs for the assoc documents. When it comes to populating the Edit gui I do a split operation on the delimited string and set/unset the checkboxes as required.

This is proving a nightmare from a maintainability perspective and in my frustrated wanderings of the web in search of a solution i noticed JQuery has some functionality to act as a client-side database. Does any one have any experience of this, and if so, would you recommend it? My custom JS to parse csv-strings and dynamically build the gui is starting to grind me down a bit.

View 1 Replies

SQL Server :: Database With Pics Advice?

Jan 22, 2011

Am building an app in VB.NET | ASP.NET 4 | SQL 2008 R2I am building an site that will potentially have upto 15, 000 pics for now. More added each weekWould it be best to insert those pics (from a few kb to 2.5 Mb per pic) into the database or have them in a directory with links to those pics in the database?The site will have pages of pics which the user can browse or click on taking them to another page with info. Basically like a photo album

View 6 Replies

Save Pdf File In Client's Computer For Sending Email Attachment

Sep 22, 2010

The subject of this thread is my question and I am really very sorry, I cannot brief it. I have generated the pdf file which contains text taken as input by various web-form and have saved it in my local drive then sended it to some email addresses. Now I want to know that how can I save it in client computer and send it to some email addresses provided by Client on demand? I am failed to solve this problem as I don't know how to get INFORMATION OF CLIENT'S LOCAL DRIVE AS CLIENT MAY USES DIFFERENT OPERATING SYSTEM.

View 25 Replies

Create Email Message And Send To Client For Review Before Sending?

Sep 23, 2010

I am looking for a means by which ASP.NET can create an Outlook MailItem and stream it to the client machine for the user to review prior to sending. I know that its possible to create files such as Word docs and Excel spreadsheets an then stream them, but I don't know how to do it with ASP.NET.

View 6 Replies

AJAX :: Sending Complex Objects From JavaScript (client) To C# (server)?

Mar 26, 2010

I have this object in my server side:

[Code]....

Now I do this on the client side, to send a typed object to the server:

[Code]....

and actually it works. The problem is that I cannot find the way to stablish this property: "public ThingDetails[] details;"

View 7 Replies

Msword - Sending A Dotx(word Template) To Client Side?

Nov 11, 2010

In my program, I need to send a dotx to client side. Now I process it as:

generate the temp dotx in server side which contains some data from database.
send it to client side. The code is:

Response.Clear();
Response.Buffer = true;
Response.Charset = "unicode";
Response.ContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.template";
Response.AddHeader("content-disposition", "attachment; filename=**.dotx");
Response.AddHeader("Content-Length", dataWord.Length.ToString());
Response.ContentEncoding = System.Text.Encoding.Unicode;
Response.BinaryWrite(dataWord);
Response.Flush();
Response.Close();

dataWord is the dotx. delete the temp dotx.

This process should be correct. But sometimes I only get a blank document in client side. I am sure the dotx generated in server side is not blank. What may cause that problem? Does error happen during sending data to client-side with Response, or is my code not good?

View 2 Replies

C# - Sending ICalendar Event To Client While Still Continue Running Code?

Oct 26, 2010

I have built a basic calendar event using DDay.iCal, when I click "Add to calendar" link I produce an event and then sends this to the client.Basically, my application works like this.

A User logs in.
Selects a specific date.
Books a specific timeslot
Clicks the "Add to calendar" link

Sending the event is done by using Response.Write() which sends the following to the client:

Response.ContentType = "text/calendar";
Response.AddHeader("Content-disposition", "attachment; filename=appointment.ics");
Response.Write(iCalString);

The above works fins but it requires me to first book the event then manually and then click the "Add to calendar" link.I want to merge the steps 3 and 4. But when trying to do so the event booking gets saved to the database but the screen does not get refreshed.Is there a "simple" way to get around this?

View 2 Replies

Configuration :: SMTP Client Fails When Sending Email With GoDaddy?

Jul 31, 2010

I've written a simple webservice and am running it locally to test it out. Right now, my settings are as follows:

From [URL]

Settings When Hosted Externally

<system.net>
<mailSettings>
<smtp from="noreply@domain.net">
<network host="smtpout.secureserver.net" password="<password>" port="25" userName="noreply@domain.net"/>
</smtp>
</mailSettings>
</system.net>

I've tried these settings, and also tried explicitly setting the properties of my SmtpClient object @ run-time. On send, I receive the following exception

"Failure sending mail. Unable to connect to the remote server - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.202.165.58:25"

View 2 Replies

Data Controls :: Populate Repeater By Binding Data Set Client Side Using JQuery AJAX

Aug 18, 2015

I have a repester like this that bind it with asp.net :

<ul class="menu">
<asp:Repeater ID="rpt_website" runat="server">
<ItemTemplate>
<li tabindex="1">
<img src='<%#Eval("Pic","Images/Portfolio/{0}") %>' alt='<%#Eval("Title")%>' width="200" height="120" class="AbsolPos" />

[code]...

now i want to bind this repeater with jquery ajax , and I use this linkĀ for bind my repeater with jquery ajax , but it does not work.

View 1 Replies

JQuery :: Get Data In Json Format Client Side

Mar 10, 2011

i Declare in.cs file

TextBox tb=new TextBox();

and how to get aspx when page is load

<input type="Text" runat="server"/>

using jquery json

View 2 Replies

Web Forms :: Sending Email To The Users Using Smtp Client And MailMessage Class?

Apr 16, 2010

am sending email to the users using smtp client and MailMessage class.i have been adding the addresses of multiple receivers in the to property of the object of MailMessage class. the problem is that the receiver can see the email addresses of other receipents. is there any way to hide the email addresses of other receipents.i mean setting some property or something like that.otherwise i will be left with only option to send individual email to the users.

View 4 Replies

Security :: Access Control List - Best Practice / Advice

Jan 14, 2010

I have been investigating the best way that I can secure my MVC application and restrict specific functionality from users. My first approach was using role management. I thought of expanding the membership database by writing an interface that would allow me to create groups of functionality i.e. 'manage customer' and then another table would hold 'activity' information for that group i.e. 'create', 'edit', 'transfer', etc. I would then create another table to link groups of functionality to specific roles and then assign my users to the roles. At first this seemed ok but I soon realised that I was a level of granularity missing. Not every user who is assigned to a specific role should have access to all of the functionality for a given group attached to a role, damn! I then thought that I could create another linking table that would hold 'access exceptions' i.e. this table would contain entries of a userid and activity id that a specific user was excluded from.

Does this approach make any sense? Is the creation of databases tables and an interface the best approach to this?

View 1 Replies







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