|
Right click on the project name in Solution Explorer and then select publish website option from the menu. Select the location in your hard drive and click OK. It will compile your files and store them in the above specified location.
Then you can direcly upload these compiled files on the web server.
Hope this will help.
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
Helo Sir,
Right click on the project name in Solution Explorer not leading or displaying the publish website option.............
I'm using ASP.NET1.1. The way you suggest me would work in ASP.NET1.1
Thnx
.........
|
|
|
|
|
Sorry! I wrote it for .net2.0
In ASP.Net1.1 you need to make a build of your site. Just follow these steps...
1. Open the project for which you want to publish.
2. Goto File menu-> Add Project-> New Project-> Select "Setup & Deployment" from left pane and then select "Web Setup Project" from right.
3. Specify the name(for eg. MySetup) and location(say d:\setups) where ever you want and click OK.
4. Now, look into the solution explorer. Another node named "MySetup" shd get added in the bottom of your solution explorer tree.
5. Now right click on "MySetup" and click on Add and then "Project Output".
6. Select "Primary Output" and "Content Files" from the menu and click Ok.
7. Now click on Build from menu bar of visual studio and select "Configuration Manager".
8. You can see an entry for "MySetup" along with your actual project.
9. Set configuration to "release" for "MySetup" and click OK.
10. Now rebuild your solution.
11. After successful rebuild, goto "d:\setups" you can find a folder named "MySetups" out there.
12. Go inside that folder. There should be a folder named "Setup". You can find one .exe and one .msi files inside setup folder.
13. Now you just need to run that .exe file and install your project in wwwroot folder of your system.
14. Now you have installed your project and compiled files can be found in wwwroot folder.
15. you just need to upload these compiled files.
-----------------------------------------------
Best of Luck
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
After point No.- 10
Sir i created my project Setup in "C:\ManojSetup"....
and in tht folder there are two sub-folders say Debug and Release
Further there is also a "Setup.exe" and i've run that .exe
----------
13.) Now you just need to run that .exe file and install your project in wwwroot folder of your system.
but which project is to be uploaded. Which is in Inetpub\wwwroot or ........
Plz don't mind actually i don't know how to do it and it's my first turn as well.........
|
|
|
|
|
1. You need to install the setup from Release folder.
2. You need to upload from Inetpub\wwwroot folder.
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
I converted a table to DataView and sorted it .
Then i located the row containing the desired student ID in that view and stored it
I converted the view to table (which is now sorted) and tried locating the row in this table but it returns -1 . Why ?
DataView dv = new DataView(ds.Tables[0], "", strSort, DataViewRowState.CurrentRows);
DataColumn[] dc = new DataColumn[1];
dc[0] = ds.Tables[0].Columns["StudentID"];
dv.Table.PrimaryKey = dc;
DataRow dr = dv.Table.Rows.Find(txtStudentID.Text);
DataTable dt=dv.ToTable();
int pos=dt.Rows.IndexOf(dr);
|
|
|
|
|
My first question would be:
Is there some reason you don't use ds.Tables[0].DefaultView?
Second you said you converted the dataview back to a datatable.
Why?
Anyway, when sorting a dataview you can do:
RowSort = "StudentID"
This will sort the dataview.
I don't understand why you want to sort the data anyway. It looks like you just want to find some data.
You can do dv.RowFilter = "StudentID = "+txtStudentID.Text
This will limit your dataview to only the rows that match the search.
If all you want to do is display the rows that meet the search then you can bind to that dataview and you are done.
Ben
|
|
|
|
|
What i want is that i need to find the index of a row in a dataview .
The view is sorted on the field other than primary key and i need to find the rowindex by using the primary key .
What i have done is :
Converted the table to view , sorted it on the required field convereted the sorted view to table and then used the Row.Indexof() to find a rowindex with the row having the desired ID .
Why i have done all this is because i am not able to find a way to find the index of the row containing the given ID in the sorted view .
As need the index i cant use row filter .
|
|
|
|
|
Once you apply the rowfilter to the dataview the only row in the dataview will be the one that matches your filter. So you can pull the desired id from the only row left in the dataview is there is one.
Ben
|
|
|
|
|
I have the id with me before hand ..... what i need to find out is the index of the row containing that ID once the view has been sorted ....
eg :
Student ID:1 is in the first row of dataview initially
Now i sort the dataview on Name field as a result the position of the row having ID=1 changes .....
Lets say it becomes 20th row , now i need a way to find that its the 20th row which has the ID .
I am interested in the row number containg the ID in the dataview once it has been sorted .
|
|
|
|
|
I don't know why the row index would ever be important, but if you want the index, why are you switching to a dataview? Just add the primary key to the datatable. Although I don't think that will actually sort the table. Then you can do you find index on the datatable to get the index.
Assuming that doesn't work. Try taking the dataview and using the sort property setting it like I suggested before, because I know that sorts the data. Then doing a find from there. You don't need to switch it back to a datatable to get the row index.
Ben
|
|
|
|
|
I have a web site published 3 years ago and it was developed (using visual studio 2003 C#) as home page which includes an iframe (lastly I knew that iframe and SEO is bad idea) and Banner and dhtml menue which opens all the web pages in that iframe as relative links. the problem is that all the pages has the same Title and Meta tags (Content keywords, Description,....) which i just knew that will exclude my web from search engines
(now if I searched for the site name I found it but with any of its key words I found nothing)
Also in our site codeproject.com i found that article "http://www.codeproject.com/useritems/preMasterPages.asp" about using masterpage in .NET 1.x but I dont know if it helps in my case
I need to finish that situation at all with the best solution'
Thanks for your time
|
|
|
|
|
Having the same title and meta tags will not exclude your site from search engines. It's not the best SEO tactic, but it certainly won't exclude the site. Is your site listed at all? Try searching google for "site:www.yoursite.com" and see if there are any results.
Register the site with Google's WebMaster Tools[^]. Once it is in there you can get all sorts of information about your site's relationship with Google.
Definately get rid of any iframes that are framing in important content and use Master Pages instead. Also, include a Site Map page of your site with plain old HTML anchor links to each of your pages. Also, make a Google SiteMap[^].
|
|
|
|
|
Thanks for your fast response
First:
When I searched for www.mydomain.com I have my site in the results
but if I searched for any number of the keywords or mu site description and review all the results I did not find my site although I registered the site with Google's WebMaster Tools and on other search engines(I found only my competitors)
Second:
When I did some research on google about the effect of having the same keywords and discription and Title (especially description and Title ) in webpages, I found results that will affect the credibility of the website(especially for description and Title),
As
- http://www.seoeffect.com/seo-secrets/optimize-facts/get_ranked/text_component/meta_tags.php
-http://forums.digitalpoint.com/showthread.php?t=197911
Third:
As I noted before my web has an iframe on its homepage and all the web pages opens on it
could that make the search engine consider it as that site has a sigle page only?
also all tags was written in a text file (with both languages arabic and english) named meta.inc and
included in the home page in head section as
could that affect my case?
Take into consideration that I did some coding so that if you write any link of the web site it will open the home page and open the needed link in its iframe
|
|
|
|
|
g_f_r wrote: When I searched for www.mydomain.com I have my site in the results
Good, that means your site is not "banned" from the index, it just isn't considered a relevant site for the keywords you are targeting, or you may have some sort of penalty.
g_f_r wrote: I registered the site with Google's WebMaster Tools
Do you have any messages in your Webmaster tools inbox? If Google has something to tell you about your site, you can find it there.
g_f_r wrote: results that will affect the credibility of the website
Yes, indeed Title and meta desciption will have an impact on your sites overall ranking, but having the same thing on everypage will not "exclude" your site from any index, it's just that it's not a good idea.
g_f_r wrote: As I noted before my web has an iframe on its homepage and all the web pages opens on it
could that make the search engine consider it as that site has a sigle page only?
Most definately and that is something you need to fix immediately. you should be able to fix this fairly quickly by implementing ASP.NET MasterPages. If your menu is using javascript, remove that too, and replace it with HTML and CSS.
g_f_r wrote: also all tags was written in a text file (with both languages arabic and english) named meta.inc and
included in the home page in head section as
could that affect my case?
It might hurt your site and it most definately will NOT help it at all. META tags are pretty much useless for SEO, except to use the META description tag to display a message in the SERP's. META tags are dead.
The biggest thing you need to do is remove the iFRAME and then work on getting relevant inbound links, and building good unique content. I don't know what keyword(s) you are targetting, but some are VERY competive, and it can take a lot of work to rank on page 1. Welcome to the SEO game!
|
|
|
|
|
You need to take a look at Search Engine Optimisation (SEO). How you structure your pages and how you manage your site will play an important part in how the site is viewed. For instance, you need to review the text on your site, and move the key phrases higher in the page. Each search engine has a set of rules for how a page makes it onto the list, but one of the biggies is the use of inbound links. This means that your pages get a higher ranking if you get links from higher ranked sites.
Anyway - have a search on google for SEO. There are lots of articles that will help you.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
i was trying to add the strong names for adding the dll in gac.but not being able to add it. can somebody please explain how to add the strong names in visual studio commmand prompt ?
-- modified at 8:24 Monday 24th September, 2007
Soniagupta1@yahoo.co.in
|
|
|
|
|
You can generate a key file by using the sn.exe utility from the Visual Studio Command Prompt. Alternatively, if you are using VS 2005 you can generate your key file from the Visual Studio IDE. Right-click your project file, select the 'Signing' tab click 'Sign the Assembly'. Create a new key file. When you build your project your output assembly will be strongly-named.
Regards
Paul
|
|
|
|
|
hi guys
im facing this peculiar problem in my VB.NET application, if i open a form in design view, this below error is generated ,,, the design view shows the below error instead of the controls
any suggestions welcomed
ErrorImage One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
The path is not of a legal form.
Hide
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.GetFullPathInternal(String path)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly()
at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String description)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetType(String name, Boolean throwOnError)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.HandlesClauseManager.GetReferencedComponentType(String componentName, CodeTypeDeclaration codeTypeDecl, ITypeResolutionService loader, IDictionary& cache)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.HandlesClauseManager.ParseHandlesClauses(CodeTypeDeclaration codeTypeDecl, Boolean updateCache)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Object sender, EventArgs e)
at System.CodeDom.CodeMemberMethod.get_Statements()
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
winnie
|
|
|
|
|
Hi all.
I was wondering how to dynamicly change the web.config file to allow or deny users of a website.
Here i'm thinking of the:
<br />
<authorization><br />
<[allow|deny] users roles verbs /><br />
</authorization><br />
The reason for wanting to do this, is that i have coded a CMS System, and i want to give the administrator the possibility of making the website private while constructing content.
Does anyone know how to do this?
Regards
Christian
|
|
|
|
|
Here is the basic web.config settings:
<location path="subFolder">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
Where path is pointing to a subfolder in your website. Or you can point to "." for the whole web site.
Hope that helps.
Ben
|
|
|
|
|
Hi Ben
First off, i'd like to thank you for trying to help me out with my problem.
I am not sure if i made it clear enough what i want to do.
I know how to create an entry in the web.config, as you showed in your reply. What i want to do is to edit it "on-the-fly" from a web administration.
e.g., ticking a checkbox should make it say
<location path="subFolder">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
and ticking it again, make it:
<location path="subFolder">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
i hope that i have maded myself more clear now, and hope that yout can help?
-- Christian
|
|
|
|
|
Use the IIS manager?
only two letters away from being an asset
|
|
|
|
|
If your web site is .net 2.0 there are some things that you can do with a web.config. The downside is the work it takes to get the web.config to reload and see your changes and the fact that re-loading the web.config will re-start the site which will affect everyone currently logged in. I would say your time is probably better spent elsewhere and either manually change the config file or use iis manager.
Ben
|
|
|
|