|
For your information, I got the iis work on my workstation, test iis7 and deployed into production on Monday. I am using application pools. My problem was the .net did not know what the startup page was. I just reset it.
|
|
|
|
|
You posted your question on cinco de mayo, the 5th, yesterday was the 7th.
You should still buy the book, it will explain what .net is.
dcof wrote: My problem was the .net did not know what the startup page was
.net is a programming language, in which you can write in visual basic or c sharp. It allows you to make dynamic web pages, in which you can change the output on the fly.
html is a static web page, in which the content never changes, and is always the same.
A web server is required to host the web page. For .net, you need a web server that is .net compatible.
The more correct nomenclature is
dcof wrote: My problem was the web server did not know what the startup page was
|
|
|
|
|
I am designing a site that will use ajax panel to load it's controls from an xmlDocument. On the ajax panel I will have several asp:Label, asp:textbox, asp:Listbox, and radgrid controls. Now, my data will consist of the content of nodes from an xmlDocument. How do I populate the ajax panel's controls (bind the data) from the xml tree contained in the xmlDocument?
Thanks,
Steve Holdorf
|
|
|
|
|
Also, I was wondering if there was a way to do this in the code behind one setting the value of one control at a time? See what I am doing is filling an xmlDocument onLoad then using it for display through out the whole application.
|
|
|
|
|
What I am doing is in the OnLoad page event for the main page I want to load an XMLDocument from a wcf service pulling the data from a list of SharePoint items, then not have to hit the web service again. Next, I want to fill the top level navigation control with the top level nodes of the xmlDocument. Now, once the user selects a menu option I want to populate and display/hide child controls with the detail data and so forth going into more detail with each selection.
|
|
|
|
|
I read all 3 of your post, the first one is simplistic in thought, and the others add quite a bit more work to the first.
You should probably start simple and make a listbox, and practice binging your xml data to it until it works properly, then figure out the textbox, and then the radgrid.
Just use the toolbox and drag a Listbox onto the webform, then press F4 on your keyboard, and bind the listbox to your xml source.
If your going to do post 3, then throw everything out the window and start again from scratch. You can't bind to a file downloaded from a web service, because the file would have to have the same name for the bind, presenting the same data to every different user at the same time, defeating the purpose of writing it in the first place.
|
|
|
|
|
Thanks for your input. I have now found that SharePoint does have web services that will bring a xmlDocument list data tree to your application code. I guess I was not clear in my post. The data I am pulling into my xmlDocument is static and the same for all application clients. It represents catalog text data for presentation purposes only. I guess what I need to know is the best way to pull node data dynamically from the xmlDocument and use the top level root data for the menu button fields, then use each root's inner nodes to fill the asp textbox controls of the page with inner node data that show specific detailed information about the select root node.
Hope this makes more since.
Thanks,
Steve Holdorf
modified 6-May-12 21:26pm.
|
|
|
|
|
It makes sense to me. And that's what I gathered from reading the 3 posts.
I don't know how to bind the XML nodes to each asp object as you described. I only know how to write it in pure code, using XMLTextWriter or XMLTextReader.
In pure code, I would create 3 arrays, open up the XML Document, read it into memory, quickly close it, and loop through the nodes, and as I loop, if an element name matches, then add the elements data to the proper array, then take each array, and populate the proper control.
I have no clue how to do that with binding, I stopped using that over 8 years ago. Found it to be really slow for high volume web sites.
Once you write code for let's say loading a listbox, it's easy to resuse the code, and faster than binding.
|
|
|
|
|
Thanks again for your post. Looping through the xmlDocument was what I was thinking as well. Also, I did not plan to directly bind the xml data directly to the asp/rad controls but what I was going to do was as each root node menu item was selected hide/show the details panel and populate it dynamically at that time. I was hoping someone would have a few code samples.
Thanks,
Steve Holdorf
|
|
|
|
|
There might be menu code out there. I remember in the past, people wanted to load a home page menu bar from an XML file, and I remember seeing tons of code for that out there, "ASP.NET xml menu" You can swap out the menu object for the ones you need.
My observations reflect that most people use XML linq to open a xml file to access the elements and values with ease and more performance. I took the hard road and learned XSD, and XMLTextReader, which is lighting fast, but difficult to understand at first.
I would have to see the format of your XML first, before making any recommendations. It depends on how well formed your XML is.
|
|
|
|
|
Read your reply and thank you very much! What I am doing is going to have a master page with a rad menu and use your AJAX tool kit to load and unload custom controls, like in your demos. I guess my biggest problem is, with only a single XMLDocument with all of the data contained, iterating through it and pulling out the top root level nodes for the menu. Then once a root level node menu item is selected getting that node's second level child node data to fill the 1st level custom control (i.e. text fields and drop down fields). Then once a second level child node's data dropdown is selected then filling the 2nd custom control with that main root's third level child node data, etc. I don't think I can bind directly anywhere as I feel that some sore of iteration methods must be used. I think the xml will be 3 - 4 levels deep and will be the only data source for my catalog application. Have you had any dealings with such a seniro and if so any good links. The links you sent me before were mostly binding to an xmldatasource, and not using xmlDocument iteration and dynamically loading controls which I must do in my case. In my case binding directly to xml is not an option unless I can pull child node sections in to an xml source that will allow for binding. Any help would be great and as always thanks for your help!
Steve Holdorf
|
|
|
|
|
That sounds like a car part web site
1. You pick the make - FORD - XML with brands, element contains model.xml
2. You pick the model - F150 - XML with years, elements contains year.xml
3. You pick the year - 2012 - and so forth
4. You pick the engine - Triton V10
I would have several XML files for that scenario
I could not see putting that into a single xml file, but if your data is small, then yes.
Well, you have to write the XML file first. Then you have to write the code to read the file, or figure out how to bind the file.
You would have to write code to change bindings on the fly.
Your not really going to find any per-fabricated code for your needs, most of the code samples out there are for a small specific function or need that is common. Most programmers don't give up code, unless you give something back in return, or are getting paid to give away code like at Microsoft.
|
|
|
|
|
Hi All,
I have some required field and custom validation controls, they are firing on submit but I want those to be firing onblur events also.
Is there any way that we can display the same error messages to the users at onblur event of that particular control using the same required field or custom validation controls.
Its little urgent, please help me, I have been googling for this.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
As per my understanding, implement onblur event on javascript and then validate all required fields in that event.
Is there any issue with onblur event on js side?
Parwej Ahamad
|
|
|
|
|
I am not certain how to specify the startup page. The url that displays when I am running the application is the following:
https:
How do I know what the startup page is from here?
Is the startup page hom.aspx?
|
|
|
|
|
|
|
|
My application is built using C and VB. Can i use Runtime Callable Wrappers to call that dll in asp.net?
Is it possible to call this dll in asp.net?
|
|
|
|
|
Yes,you can call com components developed using VB or C from .net using the wrapper.
Note: your com components should also be registered on the hosting server.
Help people,so poeple can help you.
|
|
|
|
|
|
Hi,
I'm creating a secure area in an application, so a login page is needed. I've been working with the LoginView, together with the SQLMembershipProvider and created the aspnetdb database for storage of the login ID, roles etc.
My question is, is this an acceapable approch to include in a clients application? Maybe it's the lack of programming on my part that makes me ask this.
Also, is it recomended that you use the aspnetdb DB, keeping the membership in a seperate DB to all other data storage?
Thank you
|
|
|
|
|
Just and update - I've been working and reading up more on Forms Authentication since asking the question above.
I've came to the conclusion that using the login controls, together with the role and membership providers that are provided by ASP.NET 2.0, is a suitable approach for supplying clients a secure login area. I have however, decided to include the aspnet (membership) tables in with the applications main DB tables. This keeps the tables all in one location for each application. The aspnet login tables are easy to distinguish from the rest also, as they have the prefix "aspnet_".
I found the following source useful:
http://odetocode.com/Articles/427.aspx[^]
If you know of any other good sources or have a different option from that above, it would be great to hear from you
Melanie
|
|
|
|
|
I am new to testing a 2010 web application using visual studio.net 2010. I want to test the C# web form application using IIS.
I found the following link that says what to use:
http://ukchill.com/technology/setting-up-a-web-project-environment-in-visual-studio-2010-to-allow-debugging-using-both-iis7-and-the-development-web-server/
I am still having problems.
My boss wanted me to setup my test visual studio environment that it is in production on an iis 7 server. Due to that fact,
I did the following since this occurs in production:
1. I removed the default web site and application pools in iis7.
2. I created a new application pool and website in IIS7.
3. I removed the C:\inetpub\wwwroot\directory since they were are part of the stock install.
Now when I am in the visual studio project folder and I want to specify the 'Use local IIS Web server, I get getting the message that it can not create the virtual directory.
I want to point to the physical file that looks like C:\Support, however I do not know how to translate this to a url. Thus can you tell me how to translate this to a url address?
Also what I removed caused visual studio not to recognize how to sworkup with IIS, can you tell me how to restore the values back to the way the default visual studio was setup?
|
|
|
|
|
I have the following question to ask about debugging a web forms 2010 app using iis while using the visual studio.net ide:
The following 2 links shows how to attach to an web forms app while visual studio is running:
http://www.google.com/search?sourceid=navclient&aq=0h&oq=C%23&ie=UTF-8&rlz=1T4ADRA_en___US432&q=c%23.net+corner
http://blogs.msdn.com/b/rickandy/archive/2011/04/22/test-you-asp-net-mvc-or-webforms-application-on-iis-7-in-30-seconds.aspx
Does that mean I would attach to an application that is already deployed to iis on my local computer? If not would that mean my visual studio is setup to use iis as the local web server? Can you explain your answer?
|
|
|
|