I am supposed to create an data transfer utility that is to take data from an external source. in this case it's another database, and import/update data into an asp.net website database.
Now, the database and the site were created by another party and they already have an API/framework to access the database.
I've tried to write code on the site that imports the data but it sometimes times out and the app pool recycles....
User Profile
Collapse
-
Tips on asp.net data updates and third party framework
-
Class Design Tips
When I design a class, I'm thinking that the rules below apply. Am I correct in thinking this way?
A variable should be local to the method unless it needs to exist in more than one method and live longer than the life of one method. Otherwise it should be a global variable or field.
If a group of variables and methods work together in a class that has other methods that work with a different subset of fields, look to... -
I'm sending you a mental image of my code right now. Let me know if you get it.
I'll try to get something up in the next couple of days.
Thanks -
Code
Unfortunately, I can't really paste code. My boss wouldn't be happy about that.
Is there another way to show you bits off code?Leave a comment:
-
Class Design
Hello,
Maybe someone can help me. I am having trouble with designing this system I decided to it just stuck all the code into one class.
The system takes products out of one database and moves them to another database.
The clients pick settings on how they want the data from the outgoing database formatted to go into the incoming database. So, for example the outgoing database can have a product SKU(a... -
Updating Browser with Status on Long Running Process
I think I've commented on this before, and if I have I apologize but I've been having a difficult time with this. I have an asp.net page. The user hits the "Run" button and I have code IN AN ASSEMBLY, not in the APP_CODE folder that is called and runs a long process that moves product info from a file into the database. While the user waits, I would like them to see status updates like what product the import process in on and status info.... -
I was talking about the App_Pool but we just made the recycling longerLeave a comment:
-
Programmtically Changing Recycling Time in ASP.NET
Hello,
I want to run a process in asp.net and while it's running, I want to pro grammatically change the ASP.NET Recycling time to 1600, then back again to 60 after it's over.
Has anyone done this and have any code to share? -
Binding Expressions
Hello,
If I wanted to use a method and return a value to use as a property value to a control like this.
Code:<asp:Label ID="test" runat="server" Visible='<%#IsVisible()%'></asp:Label>
Code:<asp:Label ID="test" runat="server" Visible='<%=IsVisible()%'></asp:Label>
-
Here, let me try a different approach. When using Cold Fusion, we have a cold fusion administrator that contains a section for logging and debugging. In this section, there is a place to schedule automated tasks that basically just "hit" a web page and in my case, on page load, starts a batch process. I'm looking for the same functionality for asp.net. Isn't there a way to schedule a task that just "hits" a web page. This should...Leave a comment:
-
Trouble with VB script
I have a .bat file that I run every night to "hit" a webpage. The batch file has one argument, the URL
> webrun.vbs http://111.111......
Here is the webrun.vbs script below. Anyway, I'm running this script on two servers. One has DNS set up and is accessed like http://www.domainname. com
The other server doesn't have DNS set up yet and is accessed by ip like http://209.xxx.xxx
... -
Starting a Schedule task in ASP.NET
I want to call a method in a web page that I want to call every hour on my web application and run the code. I have now Idea of how to do this. Any help would be appreciated. Thanks -
C# Classes
I would like some advice on how I should, or if I should break up this class. Right now the class is about 4000 lines of code but it seems hard for me to break up the class. The only downfall I see right now is that it can be a little difficult to read.
Anyway, application takes product information from one database and imports it, after doing some conversion, into another database.
I have some classes to interact with... -
Timer
Thanks for the reply. I actually tried setting up the Timer control this way (disabling it and enabling it on button click) Didn't really work. I was trying to do something like this.
Code:<asp:Timer ID="Timer1" runat="server" Interval="3000" Enabled="false" OnTick="Timer1_Tick"> </asp:Timer> <asp:UpdatePanel ID="upProgress"
Leave a comment:
-
This sounds like it would work but I'm trying to add the Timer control in code behind after the button is clicked and it isn't really working
Code:protected void btnRunUpdateNow_Click(object sender, EventArgs e) { Timer timerControl = new Timer(); timerControl.Tick += new EventHandler<EventArgs>(timerControl_Tick); timerControl.Interval = 3000;
Leave a comment:
-
Status would mean, as the import process is running, the user would see information on the web page like number of records processed, the time elapsed...etc.
I will let you know about the static variables, thank you.Leave a comment:
-
So, it sounds like the static class might work. So you have a bunch of static variables and methods that are shared among all the pages? The only problem is that these classes need to talk back to the aspx page so there can be some user feedback on the progress of the import but I don't seeing that being much of a problem.Leave a comment:
-
Well, in the original program it was an import process that had a web interface. The variables were "global" but they weren't really defined as global but the scope was global only because that when you use server side includes the file that is injected into the page has access to all the variables from the parent page. I did find something on Page Inheritence and it sounded like it used to work on ASP.NET 1.1 where if you had a control...Leave a comment:
-
Access to variables in an asp.net user control vs an include file
I've asked this question before but couldn't get the answer I was looking for so I'm going to try it again.
I'm translating pages from old asp to asp.net and I don't want to do this any other way so I really just want to know if this can be done.
In asp, I'd assign a variable on one page
Code:<% myVar = "something" %>
-
Downloading all files in directory using FTP
Hello,
I am trying to download not one, but all files within a remote directory using FTP and C# and then save them to a local folder on my hard drive. How can I do this?
thanks
No activity results to display
Show More
Leave a comment: