|
I installed VS .Net and I, while the installation occured, remember reading that it was updating IIS and FrontPage. Now, I tried to test ASP.Net by creating a small project and when I try to run the .aspx file (localhost/somefile.aspx) it won't recognize the code and the page will be blank! A view source shows me that the code is actually there. ASP does work however.
Is there something that went wrong with the installation or I just need to set something up to enable ASP.Net???
Thanks!
---------------
http://www.edovia.com
|
|
|
|
|
|
LukeV wrote:
Come on! Somebody knows this!!!
Get back to me on the following:
- Open IIS
- Go to the default web site
- Right click on it
- Click properties
- Click the Home Directory tab
- Click the Configuration button
- Check in the list for .aspx
If it is there then I do not know why your system is not working. If it is not there, then you need to re-install ASP.NET onto your system (or alternatively you can re-map all the configurations but there is about 50 and they are a pain to do.)
|
|
|
|
|
running C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_regiis.exe -i fixed my problem...
But thanks for your reply!
---------------
http://www.edovia.com
|
|
|
|
|
LukeV wrote:
running C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_regiis.exe -i fixed my problem
forgot about that little utility, very handy (and I only found out about it AFTER having re-configged my IIS box, which was very annoying lol.)
|
|
|
|
|
Sure Paul, you just wanted me to enter all 50 entries manually!
What I don't understand is why this isn't automatically done during VS.Net's installation!?
---------------
http://www.edovia.com
|
|
|
|
|
LukeV wrote:
What I don't understand is why this isn't automatically done during VS.Net's installation!?
It should do, and in most cases does. However we have experienced IIS "loosing" all ASP.NET mappings without much of a reason (it did this after 2 months of perfect ASP.NET running.)
I still have not figured out why it did it.
LukeV wrote:
Sure Paul, you just wanted me to enter all 50 entries manually
Yes, yes, it is true. I wanted you to experience my pain...
|
|
|
|
|
Hi,
how can I display an alert box from the code behind when an event failed ; like an insert in a Database ?
Thx.
|
|
|
|
|
sybux2000 wrote:
how can I display an alert box from the code behind when an event failed ; like an insert in a Database ?
Not to be too critical but you really need to go back to learning the difference between server side and client side.
You cannot ask for a messagebox in your server side code because it is being run on a server far away from the client. So your client will never see it.
You need to use JavaScript/ECMAScript (or even VBScript if you are so inclined) to create an alert box that the client can see.
You will need a function on your client side page which checks for a certain state (probably best to pass it by the querystring which JavaScript can access) and displays a normal JavaScript alert box if the state is true.
Though I would ultimately adivse not using an alert box to notify people of that kind of error. Rather use some text on the actual HTML page.
|
|
|
|
|
If I use an Access database on my page, can clients access that at the same time then?
I don't need an SQL Server or something similar?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Yeah, course they can. The only problem comes if the database is locked for an update and someone else tries to update but if your updates are nice and efficient, this shouldn't happen often (unless you're expecting heavy traffic which is a good reason to use SQL Server).
Paul
|
|
|
|
|
Access sucks as a DB server. On the client it's nice because that's what it's intended for. I wouldn't use it for a DB server unless you don't expect more than like four people using the web page. If price is an issue go with MySQL or something instead of Access. You'll be grateful you did in the long run.
Jeremy Falcon
Imputek
<nobr>"In fact it is quite simple, men and women both only want one thing - what they can't have!" - phykell
|
|
|
|
|
Thank you Paul and Jeremy!
I think I skip that in my project for now, I need more DB knowledge before I use MySQL or something like that I think!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I need to create a threaded message board for a website. Can someone provide more information on how I could do this ?
|
|
|
|
|
|
Hi all,
I'm trying to develope a printer friendly page, the problem is that the content of the page is the search results of another one, and I'm triying pass this content to the print page without having to perform the searching proccess again, in other words ... how can I pass a huge amount of data between these two pages using Client-Side only. By the way this contant should be in HTML format.
Mohammed Derbashi
Web Developer
|
|
|
|
|
You can hide the values of the page in hidden tags:
and then you can request through client side code the value
function WriteMe()
{
document.write("You searched criteria was " + window.opener.document.test.search.value);
}
You might need to double check the Javascript, but it looks something like this. Otherwise just repost back to the server.
Nick Parker
|
|
|
|
|
Mohammed Derbashi wrote:
I'm trying to develope a printer friendly page
<Paul puts on his Preacher hat>
You should not be trying to develop a seperate page for printing, it is conceptually unsound. First off as you have pointed out it can lead to uneeded server load.
This is how you do it. You create two CSS files, one for the screen media, and the other for the print media. In the print media CSS file you basically use the display:none attribute to hide all the elements on the page you do not want to print. You also specify how you want the elments you want to print to look. In this way you can totally re-style a page for printing (e.g. getting rid of navigation, upping the font size, putting in page-breaks etc.) without two seperate ASP/HTML files. Also it requires no round trip to the server. The browser handles it for you.
To reference your two CSS files you do this:
<link rel="stylesheet" href="res/css/printable.css" type="text/css" media="print" /> for the print stylesheet and <link rel="stylesheet" href="res/css/default.css" type="text/css" media="screen" />
As an added bonus you can specify both media="screen, print" to say the default.css file applies to both media. Then when printing any duplicate classes in the printable.css file will override the default.css classes.
Now lets say you have an input element on your page that you do not want to be printed. You assign it a class like so <input type="text" class="inputelement" id="txtFirstName" /> and then in the printable.css file you create a new class like so input.inputelement{ display:none }
Here is a good article on it.
One great benefit of doing this is that should you make a change to the page it will show in the screen and print versions without you having to modify two seperate ASP files. So maintenance is greatly improved.
If you have any problems, just ask
</Paul puts on his Preacher hat>
|
|
|
|
|
What about cross brwoser support? I've found that display:none doesn't work in Netcrape.
|
|
|
|
|
Mark Nischalke wrote:
What about cross brwoser support? I've found that display:none doesn't work in Netcrape
It works in Netscape 6 and as of yesterday Netscape 4 should no longer be supported.
So talking about cross browser it will work in IE5+, Opera 6+, Netscape 6+ and Mozilla 1+. Works on the Mac in those browsers too.
|
|
|
|
|
do you know of any good sites with information of how to create ASP surveys?
thank you!
|
|
|
|
|
Hi Everybody,
I have a ASP program that displays a combobox with nearly 50000 records. I have used MS-Access database. It takes nearly 4 minutes to 7 minutes to display the page over the net. Binding all the records to the combobox takes this much time. In order to solve this problem, I have used rsfast library of learnasp.com. That also takes very long time. Can any help me to solve this problem?
Thanks in advance.
ramesh subbiah
E-Commerce India,
Coimbatore
|
|
|
|
|
How about encapsulating the generation code in a COM object that contains compiled code(C++ or VB), which is faster than the scripting code.
Mohammed Derbashi
Web Developer
|
|
|
|
|
Mohammed Derbashi wrote:
How about encapsulating the generation code in a COM object that contains compiled code(C++ or VB), which is faster than the scripting code.
There is a design flaw in the application, even if you were to create a COM component in VB or C++ to allow early binding to objects which does increase speed he is still going to see a lot of time degradation in the load process. 50,000 entries into a Select box is way too many, even if the file were to be loaded directly on the LAN. I would deeply suggest refactoring the application and look at ways in which you can isolate or group specific numbers, then post back to the server to get another subcategory of numbers. There is not a lot that you can do to see any dramatic decreases in load time for an application loading 50,000 entries into one page.
HTH
Nick Parker
|
|
|
|
|
Nick Parker wrote:
There is not a lot that you can do to see any dramatic decreases in load time for an application loading 50,000 entries into one page.
Especially in Access. I once worked for a company who was trying to use 1,000,000+ record tables in Access (the whole table, not just a few indexed records), that took HOURS to process.
Paul
|
|
|
|