MVC :: Build Web App Using MVC 2 And For Database ?
Aug 12, 2010
I want to build web App using MVC 2 and for database i will be using webservices which is hosted on other server.What will be the best way to build this web APP. Can anybody point me to right direction?
con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);da = new SqlDataAdapter("Select URL from Table1 where ID =" + Session["USERID"], con);cb = new SqlCommandBuilder(da);ds = new DataSet();da.Fill(ds, "Table1");string pageUrl = ds.Tables["Table1"].Rows[0]["URL"].ToString(); Response.Redirect(pageUrl);
This code working fine..I want to this code working on Hyperlink click Like below
I'm using ASP.Net and NHibernate to build a website. Now, I need to add some sort of administration functionality, and came to think of an old django tutorial I once ran through. Here the admin page was build for me, and I could customize it as I liked. I see no reason that I couldn't accomplish the same, somehow, in ASP.Net, when I got my NHibernate schemas, thus reducing all the boilerplate admin-code I need to do. Are there any libs out there, that you think will fill my needs somehow?
i am currently working on a small project in which i have to build a web form and link that to a database...thing is, i don't even know where to begin!Once i build my database, how do i link that to my website? directing me to an appropriate tutorial on how i can do this?
one of the main things i'd like to do is to connect to a database, get info, and with that info, build a list for a drop down menu for the user to select. is that at all possible?
I was asked to build a couple of small and basic websites, without the use of database connections, just plain forms with information and a couple of images and forms. So my question is, if I only use those "html" controls of the toolbox, the performance of the site will increase against those with lots of .net controls?
Some one told me to use php or any script language to do that kind of stuff, but I only know to code in .net.
i want to build dynamic sitemap from database..even my menu items are also dynamic...and i want do display sitemap having categories and related menu items from database..
so i dont know how to build dynamic site and create dymanic links of that menus and categories..
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.
ParentID points to the ID field so that ID 2 is the child of ID 1.
Unfortunately, the order of the db elements is not guaranteed but what I'd like to do is have the information displayed sort of like in windows explorer with the children directly underneath the parents.
I've done something similar in the past with nested gridviews (ugh!), but it didn't point to itself and I knew how many children (additional db tables) there would be in advance. I'm basically trying to re-create that setup but make it much more flexible by making it point to itself.
Pseudo Coding I'd do something like:
Setup the html table and table headers Go through the DB from the top and search for the row with ParentID = 0 Add that row to the table Go through the db and find the row where ParentID = ID of Step 2)Add that row to the table Recursive magic go back to 4 Keep going deeper inception style ^^ Recursive magic go back to 2
I just have no idea how to even begin doing something like this!
This has nothing to do with my problem, but so you know where I'm going with this: after I get the table/gridview setup in the correct order, I plan on using jquery to hide all the non 0 parentID rows and make the rows clickable so that the child rows expand out underneath the parent row.
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 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'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.
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?
I am new to ASP.NET MVC, and the ASP.NET technology in general, so, please, excuse the stupidity of my questions. I have a lot of experience with php development and CMS customization (Drupal and Wordpress mainly), and I wanted to know whether some techniques could be applied in asp.net mvc. I want to know what exactly could be modified without recompiling an already built application
Can I edit the views without recompiling the app. Can I create custom themes ?Can I add plugins compiled as dlls and use them at runtime. Can I "mark" the assembly in such a way that the web application will check on the next request and will reference it, without me manually adding it to the project and recompiling. I've heard that this is possible.
I will make sure to add more when something comes up. The reason I am asking is because I'd like to try and develop a Drupal-like CMS (custom types, views, etc) in asp.net mvc. The dynamism of php will be quite a challenge to replicate in a compiled technology, yet I am ready to try.
I have come up with a business idea that I would like to follow, which involves me creating a subscription website with multiple levels (I'm thinking probably around the 10 mark). While I'm pretty good with VB.Net and ASP.Net, I unfortunately have no idea how I might be able to go about creating a website that would require the user to pay a monthly/yearly subscription (which would be different depending on which level they wished to choose).
How to build and publish the ASP.NET web site(Microsoft Vishul Studio->File->New->Website) using Cruise Control.net. Actually, ASP.NET Web site doesnot contain .csproj and .sln file.