I'm thinking about building my own web server, from scratch, to host websites on the interweb. What recomendations could you consider before starting? Or, is it a dumba$$ thing to do, and not worth it? The reason I am even considering it, is because I have seen ALOT of .NET jobs that require Windows Server/MSSQL Server (DBA) experience. Hey, why hire 2 people, when one can do it all. Just trying to kill all birds with a bazooka, before making a profit with a corporation.
I have a question regarding a situation that occurs with GridView, ObjectDataSource in ASP .NET application. The GridView is linked to the ObjectDataSource and both are included within an UpdatePanel letting the GridView to fill in an asynchronous way from a form in the same page so it gets more rows as the user enters the data:
I start the project with Visual Studio 2008, fill the form and it works correctly. Then I stop the execution: rerun again and the data I entered in the previous run is in the GridView. Is like some sort of cache saved the data from the session before. I checked that EnableCaching property is set to false for the ObjectDataSource. If I Rebuild Web Site in Visual Studio (not just Build) then it works corretly leaving the GridView empty. Is this caused just becuase of Visual Studio? Can it be turned off? And will it happen in the final IIS it will run on?
I want to build a survey system where you can build a form with questions and some answers to these questions and then members who will log in will be able to take the test.
Then i want to present the different results from the test in some diagram or something like that.
I have a TFS build set up to deploy an ASP.net project to a test server.The build works great, and deploys to the test server fine, but instead of putting it into the Website directory that my IIS webserver is configured for, it puts the build into Website_20100511.6
Why is the date suffixed to the directory name? Is there a way to turn that off so I can publish directly to the Website?
I have an application that loads user controls into .NET web application. When I compile and test the application locally on my dev machine it works on my machine. The project builds successfully using MSBuild on our build server. However when I deploy the dll generated by MSBuild on the build server I get the following error when the application loads the control:BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.usercontrols_somecontrol_ascx'.I took a look and compared the dll generated on my machine and compared it(looked at the file size) with the one created by the build server and noticeda difference in the file size. This is confusing considering the code being built locally and on the build server is IDENTICAL. I manually compared each file by hand. So my question is: What is causing this error? What would be different between MSBuild's compilation of the code and what is going on in Visual Studio when compiling the code?
i m trying to browse a folder using folderbrowserdialoge and got this errorĀ
Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process. Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.Source Error:
Line 64: ' If the user clicks theFolderBrowser's OK button.. Line 65: Line 66: If theFolderBrowser.ShowDialog = System.Windows.Forms.DialogResult.OK Then Line 67: Line 68: ' Set the FolderChoiceTextBox's Text to theFolderBrowserDialog's
If i split the statements up they work fine individually.But what im trying to accomplish is to pass in the column name that i want to select from my table.. ill pass it from the page as well as 1 other parameter.
I was looking and found some queries that will return the column name from the table but figured this may work.when i execute this,it returns the actual value in my SET @column line.so in the below code if i run it, it will just return the value "VideoLevel"
BUT if i change it to the example below that,it works..
I am trying to develop a very simple templated custom server control that resembles GridView. Basically, I want the control to be added in the .aspx page like this:
[Code]....
I know that what I want to achieve is pointless and that I can use DataGrid to achieve it, but I am giving this very simple example because if I know how to do this I would be able to develop the control that I need.
I was searching server software to build a Multiplayer Online Game. All of the servers I found up to now use Java in the server side (ie smartfoxserver)
Today I found this one, Photon, that seems interesting because it uses .NET, you can see it here: www.exitgames.com
I'm relatively new to actually publishing sites on my own..Anyway, right now I am using VS2008 to build / compile my web application and then publish it to the server. Simple enough, until I want to change several of the code behinds, and don't want to spend 30 minutes re-publishing several thousand documents.
I have been reading that publishing via VS is not the best approach, so I guess I have two questions:
1. Using VS2008, is there a way to build the project and publish only certain parts of the project such as the pre-compiled code or better yet have VS only update the code that has been changed on the server? I suppose I could simply publish it to my local drive and pick apart the files from there / is there a better way?
2. In your opinion what is the best deployment strategy?
Basically it's in the title. There's a bug in a VS2003 website that needs to be fixed but it is not letting us rebuild the entire project and the bug needs to be fixed immediately. Is it possible to only rebuild the dll that has the bug in it, transfer it to the server that's hosting the website and have it work?
When I upgraded my Web Deployment Project from VS2008 to the VS2010 beta version, I was able to execute the build locally on my development box. However, when I tried to execute the build on our TeamCity build server, I began getting the following exception:
I need to build web application that will do:1 - build web pages. 1a - build template for page. 2 - add module(by module I mean ContacUs form, Search, Billing System...). Each module can be constructed by submodules or diveded to submodules 2a - build module(add form, textbox, button...) and that all entered data by user could be saved in dbCan you advise me a DB structure that will contain it allI looked some cms db, but it's NOT this. Please, don't ask why I mess with it. I just need to build it.
I know that it is basic questions, but I am stuck here.
I have TableOne have fields: USERNAME, PID, GID, TID, SID, NEWSID. I need to write query string to check if those value is already in the table. If not, insert those value to the table.
I have an ASP.NET 3.5 website application using C# and SQL 2005 running on a web server. Now the application has the ability to create new aspx pages with content and the relative aspx.cs and design.cs pages needed on the fly and store them in the base directory on the server. Think of it as a crued Visual Studio website on the server for admin to click a few options on a page then the new pages are created for them without the need of a web developer. This all works fine and the code is working 100% (for the moment).
My problem now is the following: When i now navigate to this newly created page i get the following error - Parse Error : Could not load type 'Namespace.PageName'
I've looked into the reasoning and microsoft say "These errors occur if the .aspx page contains a reference to a code-behind module and if the application has not been built." Which now makes sense the application does not realise that these new pages are part of its system even though i can navigate to them.How do i get the system to recognise these new pages and rebuild itself accordingly?Now i cannot rebuild the system localy then reupload to the server, this needs to be accomplished on the server by the system, because the site cannot afford to have down time everytime admin decide to add new pages.
I have a dialogue window that contains an Accordion Control that is dynamically built. The only thing that appears on my source page is the opening and closing tags for the control. The panes and the controls that appear on the panes are all added dynamically based on records in a database.
Now here is my situation, if a certian action is performed on one of the controls then I want to save that controls data and make it no longer available for use, this was easily accomplished by having the control hide itself. An issue arises though when I have hidden all of the controls on a certain pane, the header for the pane still exists and this is not the desired result.
What I would like is to be able to dynamically remove the entire contents of the control and then re-build it. Due to the timing of the events in the page post back sequence, a simple call to the method that builds the control will not work and if an explanation is required I will provide one. Also, looping through all of the panes and the controls on each pane will not work since after the first pass through the loop the panes collection is mutated, the enum table for the control is no longer correct since the initial pane has been removed, as a result the for loop throws an error.
Can any one come up with a way that I can clear out the control, keeping only the basic empty structure, and re-build it all in a single post to the server?
Is there an easy way to generate a log file that will trace at runtime the path through the code? I would like to see every controller, action, and view that was executed as my program runs. Can this be done without having to add logging code to every controller, action, and view?
1 - build web pages. 1a - build template for page. 2 - add module(by module I mean ContacUs form, Search, Billing System...). Each module can be constructed by submodules or diveded to submodules 2a - build module(add form, textbox, button...) and that all entered data by user could be saved in dbDB structure that will contain it allI looked some cms db, but it's NOT this.lease, don't ask why I mess with it. I just need to build it.
I have project using MVC and I have created a menu bar using the <div> tag just below my header.
These items would be ones like; Contact, Home, FAQ, Search, Clients, About Us, Our Services
I have a single homecontroller displaying the main content in its view and I have a .master file displaying the header, menu bar, and footer. I have created a navigation controller which will call the code below in Site.Master
comment: if u answer , please split your answer into numbers (like the questions) in order to avoid misunderstanding, thx :)
Hey. I'm going to finish read the book "Beginning ASP.NET 3.5 in C# 2008".
And I'm going rebuild my html gaming website (flash games website) www.gamesff.com
In the future site, There are 3 main pages:
Homepage (Present all the New games etc...) Category Page (There are 9 games categories , it's present the games of each category)Game Page - in this page people can play the game, and see description of the game like description, date added, rating, etc... They can vote for this game too
Before I'm starting build it I have some questions.
1. I want the same Header, Footer and Menu in all the pages of my website.
How to do it: With Master Page?
2. In the Homepage I have:
Links + Pictures + Description of The 12 newest games of all the categories. Links + Pictures + Description or of The Most Popular games of the Last week. Links + Pictures + Description of the Last (newest) 6 Games of each category (there are 9 categories: action, shooting, sports etc...). But not games that existing in the (Newest Games section (the first section in this list).
How to do it? : With DataSet using TOP sql property??? What is the best way (for Optimum Performance)
And how to do the third section in the list, how can I insert the top games of all the categories, but not Games that presented in the first section? (I can't use normal sql SELECT because it will present the games that in the first section.
3. In the Category Page people can see the games of each category (there are 9 categories pages - for each category)... and people can order the games (date added, ratings, and popular games) by using "DropDownList".
And people can see only 30 games per page. So there are buttons of: next, 1, 2, 3 etc... (Of each order)
How to do it?? For example if I want the Action Category page order by poplar: using sql: SELECT top (30) ..... where Category='Actoin' ORDERBY Visitor_Count ??
How to do the paging?
What to use DataSet? DataReader? DataBinding?
4. And how to make the game page?
Using Query String? And select details from the database By the Game_ID of the Query String??
What to do if I want nice game's Url address? (from example the game Batman)
Address Like this http://www.gamesff.com/action/Batman
5. in the game page, the code of the flash is like this:
How can I embed the address of the game from the database to this code?
Using Data binding of <%# GameAddress %> for example.. ?
6. I want count the number of the visitor per page. I know How to do it. But how Can I avoid from double counting of each user per day?
What to do? use database table for list of ip address and this list will clear once a day ? (But if I have thousand of visitor per day can it reduce the performance of the server if the server connect to the database for using ip address for each time that someone visits any game?