visual-studio-2008

simple web parts in asp.net show as blank page

时间秒杀一切 提交于 2019-12-20 07:47:54
问题 I am trying to develop web parts in VS 2008/WinXP I created a Web Site project, and added a couple of web parts within the default form in default.aspx <form id="form1" runat="server"> <div> <asp:WebPartManager ID="WebPartManager1" runat="server"> </asp:WebPartManager> <asp:WebPartZone ID="WebPartZone1" runat="server"> </asp:WebPartZone> </div> </form> When I first ran it (in the debugger), a popup told to me enable Windows authentication in IIS (so something is working!). I enabled the

Visual Studio adds .dll and .pdb to project after compiling

大兔子大兔子 提交于 2019-12-20 07:27:13
问题 In my Visual Studio 2008 web vbproj, I have included only certain files in the bin folder. I am using browserhawk and it needs to have some browser definition files (maindefs.bdd, etc...). I now always have them when I deploy the web app. When I compile my application, VS automatically adds the newly compiled .dlls to the project. I have tried to use "Exclude from Project" on the files that were added, but after I clean the solution, it re-adds them again. How can I disable this action? 回答1:

Help with structure for “single-page” Ajax website

ぐ巨炮叔叔 提交于 2019-12-20 07:21:53
问题 I know about the rules and this is not really a question that can be answered, but I really need help with this. I'm making a website that have a javascript music player that cannot be interrupted every time the user changes between pages. So, the site must be a sort of single page, loading the ASPX files with AJAX. What structure should I use for this? If I use a Masterpage with the player and separated aspx files, will I be able to load these files with ajax? Any help with structure or an

Opening a Visual Studio 2010 Project in Visual Studio 2008

帅比萌擦擦* 提交于 2019-12-20 07:14:38
问题 I have an application on c# and sql client, visual studio 2010, I want to open the project on visual stdio 2008, I open new solution and add the project to him. but on run time I accept this error: cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported. 回答1: The MDF database in your project is version 655, which indicates it was created on SQL Server 2008. The server you connect to only accepts version 612, which indicates

Find values under one node in XML

那年仲夏 提交于 2019-12-20 06:47:17
问题 Below is xml file format from which words to be searched. <Book> <Page id="1"> <Head>Preface</Head> <Body> <Paragraph> <Line> <Word> <Char>T</Char> <Char>h</Char> <Char>i</Char> <Char>s</Char> </Word> <Word> <Char>-</Char> </Word> <Word> <Char>i</Char> <Char>s</Char> </Word> <Word> <Char>-</Char> </Word> <Word> <Char>s</Char> <Char>a</Char> <Char>m</Char> <Char>p</Char> <Char>l</Char> <Char>e</Char> </Word> <Word> <Char>-</Char> </Word> <Word> <Char>t</Char> <Char>e</Char> <Char>x</Char>

How to enable more debugging info for DirectX variables in VS 2008?

佐手、 提交于 2019-12-20 05:52:47
问题 I was able to enable debugging info for directX variables like LPD3DXMESH etc. Normally it just shows IUnknown and a some pointer value, but if additional debugging is enabled its possible to see more detailed info about the structure. Problem is that I lost the project and now I can't remember how to enable this type of debugging again. Please help me find it again. Thank you! 回答1: First of all, have you enabled DirectX debug mode? If not, go to the DirectX Control Panel under "Microsoft

The key 'UserID' does not exist in the appSettings configuration section

孤街浪徒 提交于 2019-12-20 05:41:09
问题 All of a sudden I start getting this error while trying to open 2 of some 10+ forms in my Window Forms application in designer. To prevent possible data loss before loading the designer, the following errors must be resolved: The key 'UserID' does not exist in the appSettings configuration section. It used to work fine and I dont' remember doing significant changes to it. The key, of course, is in the appSettings alright, and always was, and the application builds and executes as expected.

ASP.NET What causes: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application…?

江枫思渺然 提交于 2019-12-20 05:36:13
问题 I have an ASP.NET web site. I keep getting the error below in VS 2008. The site works fine from a browser. I have made every folder using IIS manager an ASP.NET app. Why does it keep complaining? The site's folder is below a parent folder. I am not familiar with web site apps instead of web application app. Where are the options to use IIS or the internal web server like WAP has? It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

change localhost domain when running locally

老子叫甜甜 提交于 2019-12-20 05:13:44
问题 I am using Visual studio as my IDE is developing a .net web application. I use my local IIS7 web server to run the application. It runs under the url -> http://localhost/AppName/ I want the change this to -> http://localhost.appname.com/AppName/ I have added the following host file entry 127.0.0.1 localhost.appname.com This now mean I can access the site via http://localhost.appname.com/AppName/ like I wanted. I have one issue though, if I run the site via "Start Debugging" (F5), the site

How do I manipulate an XML document one parent element at a time?

荒凉一梦 提交于 2019-12-20 04:45:07
问题 I am trying to take an XML file containing multiple orders from an online shopping cart, parse it and output the values of each order as its own text file (not XML) using C# and Visual Studio 2008. I have tried a variety of methods at this point, but have had no luck. My last attempted included a foreach statement tied to XMLNodeList and trying to execute my translation for each node with the name "Order" by using XMLReader to write each elements value to a string. The foreach seems to be