Client (Javascript) Processing Rather Than C# Processing HTML?
Mar 18, 2010
We are in the process of building a huge site. We are contemplating on whether to do the processing of HTML at server side (ASP .Net) or at the client side. For example we have HTML files which acts like templates for the generation of tabs. Is it better for the server side to get hold of content section (div) of HTML load the appropriate values and send the updated HTML to the browser or is it better that a chunk of data is passed onto client and make Javascript do the work?
Which processing is fast Client-side or Server-side? for client side processing browser need to download every JavaScript first and in server side programming everything happens on server without downloading anything to user PC? if for a particular functionality we have solution in both javascript and php/asp then what should be chosen and why?
My scenario is that when a user clicks a link to download a file, a large file will be downloaded. But many files are zipped and to become a requested large file, files are needed to be unzipped at the server side and download it. Meanwhile unzipping the files, I wanna show to the user how many percent of files have been unzipped.
So, I save the current condition of % into the session () and it has been updated accordingly and in the other page session is called using the iframe to be seem as they are in the same page. But the problem is that,
while updating the iframe with update pannel and timmer tick event doent work and only when unzipping process has done, it works.
I'm trying to extend the functionality of an ASP.net application that I'm working with. For its logon page, it uses an html form to post to a dll to handle it's login logic. I'm wondering if there is any way to redirect that html POST to my C# code so that I can do some processing and then (and this is the part that I haven't figured out yet) POST it to the dll so that the regular logon logic can continue. I can make changes to the logon page, but the final step must be to do an HTML POST to the dll. I can't change that.
I have a webpage that reads data from an external source. It can take awhile to retrieve the data.I was wondering if someone could give me an idea on the best way to have this happen in the background. I would like the page to come up and display 'Processing' (or somthing like that) in the panel where the data will eventually be displayed.I thought of the BackgroundWorker component, or maybe an AsyncPostBackTrigger... not sure if these will even solve the problem to my satisfaction.
i'm new to asp.net, but familiar with c#, .net. i want to write a cms for asp.net, which has the pages of the website in a database. these pages contain asp controls, like asp:Repeater which have to be processed after loading the page from the database, and before sending it to the client like a normal aspx page.
Am looking for examples specific to .net/mvc and servers native WinServer08 where problem being addressed is processing a bounced smtp msg so as to bind to an estore transaction and updating account/profile properties.
Reading the related questions i find an interesting reference to [VERP]2. Under the heading 'Software that supports VERP i find that IIS is not on the list. Does that mean i need to find a library to integrate into my store's assembly?
What resources do I have to pull together to make sure that the webapp is informed when mail bounces? fwiw - i'm working with a very low volume site.
I would like to create a subscription based website with users getting charged every month. I know I have to create an account with paypal or authorize.net. Do these payment providers automatically bill the user every month? How would I take care of offering the service free for 30 days and start billing after that?
Also, I've heard of middle men services like spreedly, chargify. Where do they fit into the equation? Can someone help me wrap my head around these concepts?
Considering, I am based in the U.S but would like to have the payment provider accept any kind of currency.
i have treeview filled from database. I want specific information after selection of treeview node, I have used sql query on selectedindex changing event as well as used Datarow rowfilter property to filter specific data from datatable(filled on page load event once), but the processing is very slow. Is this is technical issue. I used ajax 3.5. I have read articles regarding Update Panel that processing is slow inside it.
I would like all actions of a controller to read some master page level values from the querystring and write those values to ViewState. How do I do this in ASP.NET MVC?
I am building a ASP.NET page which is an Sales Order Processing Form I have two Last issues that due to my lack of experience in the language I am struggling with hopefully you can help.Issue 1 - I have a field <asp:DropDownList runat="server" ID="txtProduct"></asp:DropDownList> that is pulling from a database table Called Products to populate its options list. I need to automatically pull the SalesPrice value and insert it into the txtUnitAmount field based on the selection of the Product.Issue 2 - Once the form has been filled and there are records in the DataTable I then need to insert all of the rows into the Database table SalesOrders when a user clicks a button.
I want to be able to upload file from my .aspx page to my web server so that it can be preocessed into a different format.e.g. user will upload a doc and in few seconds it would see a pdf version of the doc on the web page.I have web service available which can convert doc to pdf.now1- how do i automate upload + conversion process.2- how do i handle big files here.3- how not to make user wait for all this thing to happen.
I need to know a way to process images in asp.net web pages. I need to be able to highlight a certain area of the image and put an image on top of the other, then save the image with those changes. So far everything I have seen requieres buy 3rd parties components which I can not afford, I need to develop this functionality using objects inside the .net framework, or a free component.
I have an aspx page with a long running method.When the button is clicked I want to show a waiting image and continue to process that method.How can do this?
It seems that by default, ASP.NET 3.5 running on IIS 6.0 does not do any parallel processing whatsoever. With a quad-core system and a test webforms application that runs an infinite while loop on the server, CPU usage never goes higher than 30% regardless of how many clients are connected and independently running the while loop.What are my options for enabling parallel processing?
Can anyone provide examples or links on how to use the TreeView control. I'm just curious what some of the industry standards are. Which Events to use, how reference childnodes, etc.
I'm putting together a web app that will process time consuming jobs in the background.so for example 100 users are on the site 20 of them submit jobs to the server. these 20 jobs get added to a list and the background worker pickes them up one by one. I want to be able to have up to 10 background workers doing the tasks.
for scaleability the job list is likely to be a database table, however at the proof of concept stage I will probably use an application variable (stack of some sort) with a GUID to identify each job.
So I *think* what I need is ....
a single background worker process that starts when the web app starts.This process monitors the stack / job list. It dynamically creates a worker process for the first item, removes the job from the stack and increments the thread count.If there is a second job it creates another thread (up to 10) and increments the thread counter.When each thread finishes it closes itself and decrements the thread count. If I move to the database table job list would it be better to have ASP.Net add jobs and a windows service do the processing?