C# - Optimize Large Array Of User Reminders

Jul 12, 2010

i have a trigger that executes asp.net page with method that first retrieves from DB users with needed details and then emails them with information they need like ie. users that does not have an image in their profile. Once i get data from DB i build large string with encoded HTML and assign it to MailMessage.Body tag. There are about 20000 users per action/night who get the mail. Stored procedures just get users based on criteria i need nothing to optimize there (after proper indexes been made). How do i optimize it? Can i create sort of queue in ASP.NET that it will be executed all day long without one time action? Maybe i can use async actions to send few emails per time.

protected void Page_Load(object sender, EventArgs e)
{
string type = Request.QueryString["type"];
string spName = "";
string message = "";
switch (type)
{
//getUsersWithoutPictures
case "uwp":
spName = "getUsersWithoutPictures";
message = getUsersWithoutPicturesTemplate();
break;
//getUsersWithoutText
case "uwt":
spName = "getUsersWithoutText";
message = getUsersWithoutTextTemplate();
break;
//getUsersWithoutEnteringWebsiteForTwoWeeks
case "uwewftw":......................................

View 1 Replies


Similar Messages:

.net Membership Not Sending Login Reminders?

Jul 6, 2010

I'm using asp.net's built-in membership provider with security question-and-answer enabled for password recovery against a SQL Server 2005 db. For some users, this works fine and they're able to receive their passwords. For others, and it's not clear what separates the two groups, the security answer is never properly processed. It doesn't matter if the answer is correct or incorrect, the page merely reloads without confirming or denying the request.

As for events, VerifyingAnswer is being triggered, but not AnswerLookupError (if answer is incorrect) or SendingMail (if answer is correct). I ran a SQL trace during one instance, and the aspnet_Membership_GetUserByName stored procedure is being called, but nothing else gets called after. I would expect that aspnet_Membership_GetPassword would be called, which passes the security answer as a parameter, but it isn't.

View 1 Replies

Web Forms :: How To Send Email Reminders To Members On Scheduled Date From Database

Mar 30, 2013

i wnat to sechdule message on asp.net. Like if i create a messge reminder to registerd members so they recive messge on paricular date time.

View 1 Replies

Add Values To Array and Replace Preexisting Array Items With New Values without The Array Changing Size?

Aug 19, 2010

I need to know what would be the best choice of array to use given the following specifications. This array's size will be predermined upon the loading of the appication. All I want to do is be able to add values to this array and replace preexisting array items with new values without the array changing size. Someone suggested that I use a Dictionary Array Object? I would appreciate any suggestions.

View 3 Replies

VS 2010 - Presenting Large Number Of Records To User For Selection

Jul 24, 2014

I have an ASP.net VB Web app I'm working on that has a requirement to provide a list of all our component part numbers to our engineers for selection into a custom Bill of Materials for reworking of an assembly. The list of part numbers is currently generated from a stored proc in our MRP systems/SQL database. The number of records being generated is slightly over 39K part numbers.

Although the SP only takes a few seconds to generate the data the web page is taking a couple of minutes to load, primarily because of the time to fill the control presenting the records to the engineers. I've bound the data to a combobox control to the engineer. They want to be able to type the first few characters of the part number if they know it and have the list filtered or be able to just scroll the data to find the part they are looking for.

I've read elsewhere that they may be a way to only populate a certain quantity of records rather than all 39K then filter based on the users actions. Unfortunately the discussions about doing this didn't provide any examples, references, etc.

My questions are these...

Is there a better way to handle this quantity of records than a stored proc and combobox? A

ny examples of a method to populate a certain number of records then filter based on user action?

View 2 Replies

State Management :: How To Store A Large Amount Of Data In User's Session

Sep 29, 2010

I need to store a large amount of data in user's session but I guess using Session Object is not the best way of doing that. Is there any other way around??? Remember I don't have small variables to store, I have large collections.

View 5 Replies

Web Forms :: Do A Large Number Of User Controls (also Inside Repeaters) Impact To Performance

Nov 5, 2010

I tried to find out about subject but with no success. The point is that in the beginning I've made many user controls. My site is too slow. I have not idea yet if it is because of user controls.

View 7 Replies

How To Read The Numbers Entered By User For An Array

Mar 29, 2010

In Console App what is the correct syntax to read n numbers from the User for a int Single dimension Array?

View 4 Replies

C# - Passing Reportparameter Array To Web User Control?

Jan 20, 2010

I have a user control that contains a reportviewer control.And I want to send an array of reportparameter to my user control.But I can't figure out how to do.I'm getting "Object reference not set to an instance of an object. ".My param_reportParam variable is null in usercontrol.My user control's parameter is like that ;

[Browsable(false)]
public ReportParameter[] param_reportParam [code]....

And a simple page that uses user control to show server reports is like that ;

ReportParameter[] parameters = new ReportParameter[4];//parameter number can be different
parameters[0] = new ReportParameter("imza", imzalayacaklar);
parameters[1] = new ReportParameter("Sayi_Son_Eki", "984");
parameters[2] = new ReportParameter("PersonelTip", "2");
parameters[3] = new ReportParameter("parafli", "1");
wuc_rapor_genel1.param_reportParam = parameters;//this is my usercontrol

View 1 Replies

.NET User Control List/collection/array Property

Jun 10, 2010

I created user control. It has string[] public property (it may be List<string> or whatever). I want to support defining this property in aspx code, when declaring the instance of this usercontrol. Something like this:

<uc1:MyControl ID="MyControl1" runat="server">
<MyStringCollectionProperty>
<string>My String 1</string>
<string>My String 2</string>
[code]...

View 3 Replies

Custom Server Controls :: Passing Reportparameter Array To Web User Control?

Jan 20, 2010

I have a user control that contains a reportviewer control.And I want to send an array of reportparameter to my user control.But I can't figure out how to do.I'm getting "Object reference not set to an instance of an object. ".My param_reportParam variable is null in usercontrol.My user control's parameter is like that ;

[Browsable(false)]public ReportParameter[] param_reportParam{ get { return _param_reportParam; } set { _param_reportParam = value; }}private ReportParameter[] _param_reportParam;

And a simple page that uses user control to show server reports is like that ;

ReportParameter[] parameters = new ReportParameter[4];//parameter number can be different parameters[0] = new ReportParameter("imza", imzalayacaklar); parameters[1] = new ReportParameter("Sayi_Son_Eki", "984"); parameters[2] = new ReportParameter("PersonelTip", "2"); parameters[3] = new ReportParameter("parafli", "1"); wuc_rapor_genel1.param_reportParam = parameters;//this is my usercontrol

View 3 Replies

Web Forms :: Want To compare A User-entered value On a Web Form against An Array Of Existing Values From The Database

Apr 7, 2010

I want to compare a user-entered value on a Web form against an array of existing values from the database, and do so on blur. If match, then show error. Scenario is to stop user from needlessly filling out other fields if this record has already been entered.

how to trigger this? What parts are client-side, what parts are server-side? Can I do it without Javascript?

View 2 Replies

Web Forms :: Getting An Array Of List From Database To Client Side(javascript Array)?

May 12, 2010

Iam getting an array of list from database to client side(javascript array). Now my aim to place those values in a div one by one and that div should attach to the textbox similar to Autocomplete extender.

View 4 Replies

C# - How To Optimize AJAX

Jan 4, 2010

I have the following situation: excel-like application, that is accessible from internet.
2 users access it and I want the moment one user clicks on a cell, the other user to see that. (like in google documents).

My questions are:

Can I do this using standard UpdatePanel, while I keep the bandwidth usage to its minimum (in other words, only information for the current cell is passed, not the whole huge table), or should I implement my own ajax scripts on the page in order to get it optimized.How to do the updating : one way is to have a timer on the page and update it periodacally, the other way is to make a request and keep the connection opened till a change is made (using some heavy timeout, let's say 1 minute). Can you give me clues (like ajax libraries I can use, can I do this with the standard ajax controls in asp.net, ways to implement the live connection)?

View 1 Replies

Security :: How To Optimize The SqlRoleProvider

Nov 17, 2010

In my application

[code]....

is called on every page post back ,which fire query in db and bring 270 roles.

That can be optimized?

is it possible it called once at the time of login only.

View 3 Replies

How To Optimize The Tab Loading In JavaScript

Sep 8, 2010

My colleagues have create a website and there is a webpage which contains a Tab.

He Implement the tab with the following method:

1.Load all content of the page
2.Use javascript to display those group content as block and organize them into tabs.
3.when user click one tab, then acitve it, and hide all other tabs.

And these functions works very well, but the performance is bad:

1.Load all contents cost lots of time
2.It will show all content at first, and then shrink to a tab control. When the user see this, it might think this is a bug of our system.

View 1 Replies

How To Optimize Class For Viewstate

May 6, 2010

If I have an object I need to store in viewstate, what kinds of things can I do to optimize the size it takes to store the object? Obviously storing the least amount of data will take less space, but aside from that, are there ways to architect the class, properties, attrbutes etc, that will effect how large the serialized output is?

View 3 Replies

100% CPU Usage In Xml/xslt Driven Web App - How To Optimize

Feb 25, 2010

The web app uses XML from a web service, which is then transformed to HTML using XSLT. The app uses a HttpModule to get the XML using AddOnPreRequestHandlerExecuteAsync.

Classes Used:

XmlDocument - stores the xml.
XslCompiledTransform - stores the transform, is cached in Application.
Asynchronous HttpWebRequest using BeginGetResponse/EndGetResponse
HttpModule with hooked AddOnPreRequestHandlerExecuteAsync events.

I do not want to use the XPathDocument unless there are no other possible optimizations. It would take some complicated code to get all the XML together without the ability to write to the XmlDocument. There is additional XML that does not come from the web service that must also be added to the document.

View 4 Replies

Optimize C# Code For Repeaters Using A Table?

Jan 6, 2010

on the aspx:

[code]....

The problem here is that instead of using Two repeaters, can we use only one?

We actually need the header to be separated from the contents using a different table row...

Edit: changed rptHeader's ItemTemplate's html element from <td> to <th> to be a little clearer.

View 4 Replies

C# - How To Optimize The Records Coming In Gridview

Jan 8, 2010

I wanna bind atleast 30,000 records in a gridview from a sqlserver table. I want to bind only 50 records at a time with grid view. The grid has also paging and when I click next page then next 50 records should be shown and another next page's click another 50 records.

How can I optimize this thing. I want that If 30,000 records are binding then grid should be work as binded 50 records.

View 4 Replies

Is It Possible To Optimize WebForms To Perform As Fast As MVC?

Jul 13, 2010

There's so much hype about ASP.NET MVC these days, but the truth is that ASP.NET webforms is not going anywhere for some time. Is there any way for current developers to optimize ASP.NET webforms to perform as fast as ASP.NET MVC?

I have noticed a significant difference in speed between ASP.NET MVC and ASP.NET webforms. MVC is a lot snappier and loads pages faster than webforms. Can I achieve the same with ASP.NET webforms by optimizing it? If yes, what would you recommend?

View 6 Replies

C# - How To Optimize Spawning A New Process For Each Request

Mar 9, 2011

I have an asp.net mvc application that spawns a Process as follows:

Process p = new Process();
p.EnableRaisingEvents = true;
p.Exited += new EventHandler(p_Exited);
p.StartInfo.Arguments = "-interaction=nonstopmode " + inputpath;
p.StartInfo.WorkingDirectory = dir;
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "pdflatex.exe";
p.StartInfo.LoadUserProfile = true;
p.Start();
p.WaitForExit();


Before going further, I need to know whether, e.g., pdflatex.exe is a managed code or a native code? Edit 1 I need to consider this because: (Hopely I am not wrong...) Each Asp.net application runs in an separate/isolated AppDomain as opposed to a separate/isolated process. A native executable cannot live in an AppDomain.to be continued.. Shortly speaking, I hope my site does not spawn a new process for each request. Because a process is more expensive than an application domain. Edit 2 My asp.net mvc application allows users to submit LaTeX input commands such as $ax^2+bx+c=0$ to be converted to a pdf file rendering an quadratic equation. Behind the scene, this web app will spawn a process executing pdflatex.exe. The job of pdflatex.exe is converting the LaTeX input commands to pdf document.

View 2 Replies

Web Application Startup Time - How To Optimize

Jul 7, 2010

we have this problem but can't find a solution. We have an application that references something like 24 dlls. When you invoke the application the very first time (after the application is for any reason reset) it takes 25-40 seconds to start loading contents.

This is what we tried:

1. precompile and publish everything in release mode
2. removing pdbs from bin folder
3. put strong named assemblies into GAC
4. set application to debug = false

consider that the whole bin folder is composed by 24 dlls for a total size of 28MB. Just 4 of these dlls are strong named and they are more and less 25MB. Nothing seems changed. What happens EXACTLY when the application is started is something I couldn't find in any book nor forum/blog/post... What can we monitor more to find where the problem is?

View 1 Replies

AJAX :: Loading AutoCompleteExtender Is Too Late / How To Optimize

Oct 21, 2010

I posted a question about using AutoCompleteExtender. It simply shows users all available email addresses when they type in a letter(prefix).

It works, but the problem is it loads to late :( takes around 5 seconds to pull out the list.

So I would like to optimize this

The part I would like to optimize speed is:

[Code]....

View 11 Replies

Silverlight - Optimize Loading An XAP File With A Website?

Jun 10, 2010

I've been developing a game using Silverlight 4 and silversprite (http://silversprite.codeplex.com/)

This game is HEAVILY content dependent, using a lot of audio and images. My content folder is around 90 mbs worth of stuff. And because of that, my XAP file is around 60 MB, and takes 5 minutes to download from the website before any user can start playing.

I am using Visual Web Developer 2010 to create my site and load the XAP. Is there a way where I can take content out of my XAP and put it in my ASP.net site project? Or perhaps upload my content files to the site's storage?

This would make my XAP file much quicker to download.

View 2 Replies







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