|
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
|
|
|
|
|
thx alot for the reply ... both of you.
One problem for me is that the website is in a hosted enviroment so i don't have the possibility of altering the ISS. I do know that changing the web.config will restart the application, and that is a sideeffect that i can live with. Then its up to the end-user to make the change at a suitable time.
But i am still very much interested in a solution?
-- Christian
|
|
|
|
|
Hi Friends,
I had a problem I want to share may be I was wrong.
I created a XML file myfile.xml and put that file in App_Data folder.
I tried to read out this file using JAVA Script
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
But I was unable to read this file being in App_Data folder then I moved filt to myxmlfiles folder and I was on my way.
This shows that I can't read a xml file using Javascript from App_data folder of ASp.net
Am I right ?
|
|
|
|
|
NO javascript is scripting language which runs at client side if the server and client are at same machine you will be able to read that file but
If another machine/client can't read the file using javascript which is stored at the server.
By the way why you want to read that file using javascript
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi to all,
i display a list of images using asp datalist control.
in that i want to set the page size.how i can set the page size.
In datagrid we can set the page size by giving page size="5",
like that how i want to set the page size in datalist.
please help me.
jai prakash
|
|
|
|
|
which asp.net version u r using ??
Ramana
|
|
|
|
|
asp.net 1.1 version
jai prakash
|
|
|
|
|
u have provide 4 link bottom of the datalist. Write a class, For each link u have call repecitve methods of that class.
just go through this link[^]
Ramana
|
|
|
|
|
DataList Control Doesn't support Paging. You have to programatically implement. Here is a link to an article which will help you to Implement paging in DataList Control
Implementing Paging in a DataList Control...[^]
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|