|
There are a couple of things that you may want to do:
+ Attach more RAMs
+ Check the IIS configuration.
+ Investigate your code that may eat much of the memory.
|
|
|
|
|
...
Hossein
modified 15-Jul-20 21:01pm.
|
|
|
|
|
You can't use it in .NET 1.1 or 1.0, but you can use a regular expression validator to validate your input.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Like Christian said, you can use the RegularExpression validator to validate the input textbox control, another option is that you can use a third party component that is available out there. You do it yourself and you need know javascript well enough.
|
|
|
|
|
One of my co-workers wants to name C# functions in the presentation layer the same name as the stored procedures these functions call in the data layer. He says it's easier to debug issues this way. Any thoughts on whether it's a good or bad idea?
|
|
|
|
|
Why would you have functions mapped to stored procs in the presentation layer at all ?
It's a bad idea that you map directly to functions at all, there's no seperation if your presentation layer assumes that the data layer is implimented a certain way. For example, if I have an entity called a Car, then my presentation layer should make calls like
Car car = new Car(myCarID);
and
car.Make = Cars.Honda;
car.Year = 1996;
car.Save();
The car class encapsulates the details of how it stores and loads it's data.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Name the methods after what they do, not after what stored procedure they use at the moment. If you decide later that a method should use a different stored procedure, you would have to rename the method and change every call to it to match.
Some methods will correspond directly to a stored procedure, if they are named well you should easily be able to see the similarities in the names.
The fundamental idea of layering applications is that the presentation layer should be independent of the data layer. If your team isn't prepared to separate them, you shouldn't be building a layered application at all.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I have developed an asp.net website using vstudio 2005. But in order for the website to run properly, I have to run it from visual studio itself.
When I typed the webaddress directly into the web browser's address bar (http://localhost/User.aspx), the website is unable to work correctly.
What should I do to enable the user to access the asp.net website directly via a browser without the need for visual studio?
|
|
|
|
|
VS 2005 creates the website when you are debugging. You need to publish the website to IIS or Copy the files to a website in IIS.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
That is an unusual problem, in my experience anything that works in visual studio should also be accessible *on the same computer* from the browser.
If you mean from a *different* computer then that is a whole other possible set of issues not really related to asp.net development itself, but more related to standard security and firewall and networking issues for IIS in general.
|
|
|
|
|
Basically, you'll have two web servers to choose to run your web site: IIS or ASP.NET development server. If you are using the ASP.NET built-in server from VS, then you need to publish the web site to run it under IIS like Todd said. However, you are still able to run your web site with the built-in server without opening VS, to know more how you need to look at the ASP.NET development server in the .Net framework directory.
|
|
|
|
|
hi,
there is any folder name for your application like (http://localhost/foldername/user.aspx).
-- modified at 1:10 Tuesday 1st August, 2006
hi to all
with regards,
susa
|
|
|
|
|
Hi all,
I have tried the walkthrough given in msdn. I followed the steps given.
First I used the publishing tool from vstudio. I published the files onto a folder at C:\CompiledSite. Then I created a virtual folder in IIS which points to the CompiledSite folder. File sharing is enabled. I also changed the ASP.Net version in IIS to version 2.0
So far, all is ok. But when I typed the address into the address bar ([url]http://localhost/CompiledSite/Login.aspx)[/url], an error message appeared.
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
What causes this error message to appear? For the address, I used the format given in the msdn walkthrough which is "http://localhost/CompiledSite/filename.aspx"
|
|
|
|
|
Hi,
I'm new to asp.net, but i've worked with windows forms(c#).I have a few questions:
1. how do I import the database on my web site?
2.if I have a login page, how do I redirect the user if he tries to directly access one of the other pages?
Thx
|
|
|
|
|
|
Hi dears,
I want to read an image from SQL Server and show in a Image WebControl . Now I can read it from SQL Server in a stream , but Imag WebControl has no method to get a stream .... ! I dont want to save stream on disk and get its path . How can I directly assign a stream to Image WebCotrol. kindly help me!
thx...
www.behzadi.net
|
|
|
|
|
Try searching code project articles for image and database
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
where i can send sms to my web application hosted in localhost?
thanks
|
|
|
|
|
Please rephrase your question, as it stands it doesn't make sense?
Are you asking, how you can send sms messages to a website or where to send sms messages from the app so they get delivered?
|
|
|
|
|
sorry for bad english.
i want to send a sms message to a website.
|
|
|
|
|
I have two arraylists, each record in each arraylist has the same 2 fields
Any ideas what I could code to see if the value of a field in a given row in one arraylist is the same as the value of a field in a row in the the other arraylist?
|
|
|
|
|
if (((objectType)firstArr(0)).fieldName == ((objectType)secondArr(0)).fieldName)
{
}
|
|
|
|
|
I'm not understanding whats needed for object type
my arrays have two fields in each record; ID number and name, both are strings.
Also the only extention that the system lets me put after my arraylist name is .GetType
(objectType)firstArr(0)).GetType
|
|
|
|
|
Replace objectType with the type of object you have stored in the ArrayList, or better yet if you use .NET 2.0 use List<objectType> rather than ArrayList. So for example, if you have a DataRow stored in the ArrayList, do this:
ArrayList arrList1, arrList2;
//stuff to instantiate your arraylists
if (((DataRow)arrList1[0])[0].ToString() == ((DataRow)arrList2[0])[0].ToString())
{
// do stuff
}
But with Lists do like this:
List<DataRow> list1, list2;
//stuff to instantiate your lists
if (list1[0][0].ToString() == list2[0][0].ToString())
//do stuff
|
|
|
|
|
Hi,
What is the difference between updating data in dataset using Adapter.update()
and using CommandBuilder.UpdateCommand()?
Thanks in advance
|
|
|
|