|
steven3311 wrote: I am new to asp.net and C#
The most important tool you have for learning new languages is google.
There are other servers, but I'm not sure which ones work with ASP.NET. IIS is built into higher versions of Vista and XP. I don't believe it's possible to buy it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
Yes Google has been a big help for me throughout the years.
So IIS is an application server that is built into XP, Vista, and Win Server? I was just wondering if there was a price because i am trying to add up my production costs.
|
|
|
|
|
Correct. Not in XP Home and not in some of the lower end Vistas, but it's built in the XP Pro and the higher Vista's. It's with Windows Server, for sure.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
I'm working on a website project, and running it inside VS2005. When I try to do the following:
System.Configuration.Configuration rootWebConfig =
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/MySite");
I get an exception that reads
(paraphrased)Problem loading config file: Failed to access IIS metabase.
It seems to work for everyone else here. How do I fix it?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Looks like a installation issue. Check this[^] discussion, check the last message, there is a workaround for this issue
|
|
|
|
|
This will of course give you the error as you are using the OpenWebConfiguration incorrectly. OpenWebConfiguration is a general purpose function that tries to open the web configuration of a specified virtual path. The Virtual path may not be same as the path of you application. If you specify a path other than null or empty OpenWebConfiguration tries to read the IIS metabase to figure out whether the particular site (/MySite) exists. Since you don not have IIS installed this fails.
From VS 2005 web development server you can only issue the following call (if you don't have IIS installed):
System.Configuration.Configuration rootWebConfig = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(null);
This is probably what you want anyway. The configuration for the current web site.
|
|
|
|
|
I'm trying to write an automated testing harness for a large web application ( ASP .NET 2.0 ).
I want to create a page within this application that will let the user choose from a list of all the web pages of the application ( listed by their page class names ) and then run the testing harness on the selected page class.
What I want the test harness to do, is basically loop through all the controls of the page and run pre-determined checks and tests on each control based on its control type (I.E. check if maxlength of textbox is set, etc. ).
I'm encountering two major problems. First, I cannot figure out a way to get at a list of all the page classes of my web application. Second, once I can actually create an object of a page class, I cannot initialize the object with all of the usual controls, thus, I can't run any tests on it.
Does anyone know how I can solve either of these two issues?
Any help would be greatly appreciated.
-Peter
|
|
|
|
|
I keep getting the error:
Could not load file or assembly 'Validators, Version=1.0.0.0' or one of its dependencies. The system cannot find the file specified.
I incorperated a dll as suggested by http://blogs.msdn.com/mattgi/archive/2007/01/23/asp-net-ajax-validators.aspx[^]
It works locally, but on the server it can't find the DLL. I've triple checked, and it's on the server in the bin directory. Everything is set up exactly as it is locally. *shrug*
|
|
|
|
|
|
AJAX is installed. It's a problem with the validators dll specifically.
|
|
|
|
|
Let's be clear here, you're not installing AJAX, you're installing a library that uses AJAX.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Both. I'm using (or trying to use) a library that solved an issue I was having with the AJAX validator controls. I'm also using other AJAX controls.
|
|
|
|
|
|
nemo wrote: Or is there a better way to do this?
Whell, there is.
Use VS2005, and look in menu and find Publish Site or something.
Dont know where exactly, because i am not on my computer now.
|
|
|
|
|
Hi,
I am trying to create a setup program to deploy a .net 2 web app. When I right-click on the setup project and then go Add -> Project Output, I only see "Content Files" in the Add Project Output Group dialog box. Why do I not see the other options like "Primary output".
Any help would be greatly appreciated. Thanks in advance.
Regards,
|
|
|
|
|
How can I know if the form view is displaying the empty data template? or How can I display the insertdatatemplate anyway.
BiG RaLpH
|
|
|
|
|
i can create session objects that will end when the user logs out. those pages will not be accessible anymore unless the user logs back in. but if the user clicks the 'Back' button at the toolbar, the last page will display even though the user has logged out. how i can prevvent the user from accessing the pages by clicking the 'Back' button after he has logged out.
only4pato
|
|
|
|
|
You have to set the cache to no-cache and expire the page, e.g. use the following code for every page:
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1)
Response.Expires = -500
Response.CacheControl = "no-cache"
-----
|
|
|
|
|
MSDN Library:
"The Expires, ExpiresAbsolute and CacheControl properties have been deprecated in favor of the methods of the HttpCachePolicy class available through the Cache intrinsic object to control the IIS output cache and client caches."
Use this instead:
Response.Cache.SetExpires(DateTime.Now.AddDays(-1))<br />
Response.Cache.SetCacheability(HttpCacheability.NoCache)
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi,
I am generating barcodes in the web application.I save this as an image.
how can i print this through the Web Application, with appropriate paper settings.
Also i wanted to know if any one has worked on Avery Dennison Printers.
Thanks
Renu
Renu.K
|
|
|
|
|
You can specify css has to be used for print in the link tag. Also, css can specify units maybe that can help.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Hi All,
I have one stored procedure which returns 2 tables.I m using Sqldatasource to bind gridview but sqldatasource binds only first table's data. but i want to access second table also, so give some advise.
Thanks in advace,
Rana k.j.
|
|
|
|
|
Well, datasource property take only 1 table. It seems that you have some kind of parent child grid. In that case you have to add a relation between two tables. And on rowdatabound you will have to get the child control from the grid and bind the child control by getting the child records by createchildview command. If you don't have parent child grid then you need to have all data in one table. You can merge tables before biding the grid or you can get one table from the stored procedure using the union command.
-----
|
|
|
|
|
Hello Mr. SABhatti,
Thank u very much for reply.
well as i write in my previous post that i write one stored procedure which returns two tables. First table binds to gridview and second table's fields values assign to different different labels in my page. There is no relation between this two table.
Rana k.j.
|
|
|
|
|
if you just want to access the second table in dataset you can do that like dataset.Tables[1].Rows...
-----
|
|
|
|