Weird MVC Links With (A(anythingworkshere))

Jun 28, 2010

Google's webmaster tools has started showing some very strange internal links for my site. It appears "normal", but I'm not sure what to make of it. If you use parentheses and put in a single letter, then put literally anything in parentheses after that, the link works. I did a search for any other MVC sites so I could see if they had the same behavior. Microsoft's site came up at the top of the list with an odd link as well. The search terms were "asp.net mvc site" and the first link I got was for: [URL]

I don't like this at all. You can change the S to an A or any other letter, and then put any text you want in the next section. Anyone know how to stop it? For the life of me I can't see anything wrong with my routes. I used MVC so I wouldn't have strange url's floating around in search engines so this is pretty disappointing. Nearest I can guess from the Google "internal links" list is that it may be a cookie. But I can't find any circumstance when I view the source on my site where I see anything but the proper relative links.

View 2 Replies


Similar Messages:

Weird Characters Embedded In The URL?

May 13, 2010

Every few days when my webpage is accessed strange characters are embedded in the URL like this:[URL] I did some searches on the internet and found that if the characters begin with the letter 'S', it is the session id used when cookieless is set to true. In my case the beginning letter is 'A', and i couldn't find anything about that. This is bad because once these strange characters appear, all the submenus in my page will disappear (I had another post about his menu problem in here:[URL]

Once I restart the webpage in IIS the URL will become normal again, but it will appear again in a few days.
Does anyone know what these strange characters (that begin with 'A') are? How to avoid them?

[Code]....

View 9 Replies

C# - Weird Exception In Linkbutton In A Datalist

Apr 17, 2010

I have written this datalist :

<asp:DataList ID="DataList2" runat="server" Height="16px" Width="412px">
<SeparatorTemplate>
<hr />
</SeparatorTemplate>
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat ="server" Text='<%# Eval("Name") %>' PostBackUrl='<%#Eval("Url")%>' />
<br />
Description:
<asp:Label ID="new" Text='<%#Eval("Description") %>' runat="server" /> </ItemTemplate>
</asp:DataList>
</div>

It raises an exception saying that the linkbutton has to be placed in a tag that contains runat="server" although it exists. Here is the trace

[HttpException (0x80004005): Le contrôle 'DataList2_ctl00_LinkButton1' de type 'LinkButton' doit être placé dans une balise form avec runat=server.]
System.Web.UI.Page.VerifyRenderingInServerForm(Control control) +8689747
System.Web.UI.WebControls.LinkButton.AddAttributesToRender(HtmlTextWriter writer) +39
System.Web.UI.WebControls.WebControl.RenderBeginTag(HtmlTextWriter writer) +20
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +20
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
System.Web.UI.WebControls.DataListItem.RenderItemInternal(HtmlTextWriter writer, Boolean extractRows, Boolean tableLayout) +51
System.Web.UI.WebControls.DataListItem.RenderItem(HtmlTextWriter writer, Boolean extractRows, Boolean tableLayout) +57
System.Web.UI.WebControls.DataList.System.Web.UI.WebControls.IRepeatInfoUser.RenderItem(ListItemType itemType, Int32 repeatIndex, RepeatInfo repeatInfo, HtmlTextWriter writer) +64
System.Web.UI.WebControls.RepeatInfo.RenderVerticalRepeater(HtmlTextWriter writer, IRepeatInfoUser user, Style controlStyle, WebControl baseControl) +262
System.Web.UI.WebControls.RepeatInfo.RenderRepeater(HtmlTextWriter writer, IRepeatInfoUser user, Style controlStyle, WebControl baseControl) +27
System.Web.UI.WebControls.DataList.RenderContents(HtmlTextWriter writer) +208
System.Web.UI.WebControls.BaseDataList.Render(HtmlTextWriter writer) +30
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
<div class="story" runat="server">

View 1 Replies

Iis - Very Weird IIS6 .net Website Behaviour

Feb 19, 2010

Recently I got a strange behavior, the website hangs and just doesn't reply unless I go to iis and restart either app pool or whole IIS - BUT what is the most strange thing is that in case I go to remote desktop of the server and try to access it locally it DOES work just fine. I read couple threads about deadlocking and hanging because of memory leaks and non closed sql connections BUT why it still does work from the local?In case there is something wrong with the code - why does it still work from locally?

View 2 Replies

Weird Behavior With ModalPopupExtender And/or UpdatePanel?

Jan 21, 2010

try to figure out what is wrong with my code but I'm lost. I've a ModalPopupExtender, triggered in code behind by the onClick event link button. The FIRST time I display my popup, it works well and if I close my popup using javascript, it works and I can get my popup back by clicking on my linkbutton again. But, if I click the "Save" button of my popup (which save data and close the popup), I can't get my popup to display again. Even if I close my popup first using javascript and then calling my server side code to save my data, the result is the same, I can't display my popup again. Seems like the postback "break" it.This popup is in an conditinal UpdatePanel and event trying to manually update the panel after the popup.show() method change nothing.Finally, I checked what server sent back to the browser using firebug and I can confirm that I received only view state information (no UpdatePanel to update), even after calling panel.Update().

View 2 Replies

.net 3.5 - Weird Textbox Tab In Page Using 3.5 Framework?

May 27, 2010

I have a crazy issue when tabbing from one textbox to another.

This happens on a webpage which contains about 20+ textboxes, and this happens on the same textboxes, and I have no idea what is the cause.

When the cursor is in a textfield, I type in a value, hit tab, the focus goes to the next textbox, I hit tab, the focus stays in the same textbox, I have to hit tab again to go to the 3rd textbox.

This is annoying because the user is types their values, hits tab, starts typing values for the next txtbox, only for the cursor to stay in the pervious txtbox.

We use IE8.0

View 1 Replies

Localization :: Weird Spanish Characters On Websites

Dec 29, 2010

I have one web page that has some spanish contents , in design view it shows fine , but when I view it in browser, it shows gibberish character, for instance: i have following character in desing view Unión and it gets dispalyed Unión in browser what am I doing wrong, or is there any reference I am missing.

View 3 Replies

VS 2010 MasterPage Weird Behaviour With Session?

Mar 23, 2011

I have a web site coded with VB + MS Access database (VS2010). I'm using one MasterPage to manage both public and users area. I'm facing loss of session variables when a user is logged in. I can't figure out what is wrong and I need your help, tips and tricks.

When a user is authenticated (thru the Login.aspx), I create a SessionID, store his credential in session and load user's page by Response.Redirect(~/users.aspx). Here is what I did:Code:

Dim MyLink As String = Session.SessionID & "other variables"
Session("MyLink") = MyLink
FormsAuthentication.RedirectFromLoginPage(TextBoxEmail.Text, False)
Response.Redirect(~/users.aspx)

My logic is this: when the web site is launched, MasterPage + Default.aspx load. So Session("MyLink") is empty. If the user's credentials are correct, I create the session so that it can be available for MasterPage.

In the code behind of the MasterPage, I try to check (everytime a link is clicked/page requested) whether the user session (SessionID, credential in session) is available. If so, the user is still logged and get access to all the menu. If no session is available, it means the user is logged out or not logged in yet and few menu are shown. Here is the code

Dim MyLink As String = Session("MyLink")

If MyLink Is Nothing Then
'Only show MenuPublic
[code]....

My default menu is:MenuPublic1, MenuPublic2, MenuPublic3

When a user is logged in, I add to the MenuPublic some reserved Users' menu like below.
MenuPublic1, MenuPublic2, MenuPublic3, Menu_Users1, Menu_Users2, Menu_Users3

In local, everything works perfectly fine. Now after hosting my website, from time to time the MasterPage loss the Session variables. When it happens, the page still shows that the user is logged in by displaying Logout and Welcome Username beside it.

View 7 Replies

Weird XML Exception When Sending SOAP Request?

Mar 9, 2011

Have an application which publishes XML data across webservice using SOAP.

The data is pulled directly from an Oracle database and parsed into XML but for some reason the data being pulled out of the DB is throwing the following invalid XML exception.

Have done a bit of research and it looks like it may be a NULL character somewhere in the data which XML parser doesn't like.

Just wondering if anyone had seen this before and if so were they able to fix it at application or database layer?

Here's stack trace...

[code]....

UPDATE: Here is a selection of data being published.Just plain text basically, this is how it exists in database columns, have included as comma separated.

614494, 2003, 33, 327, 15961, 59652, 2, 2, 3, 2, 1, 10-Dec-08, MY2003 AERO SEDAN, Manual 2.0

View 1 Replies

Weird Project Specification - Web Service - AJAX?

Mar 25, 2010

I have a project spec to build an online card game, and on a point it mentions:

"...the page should not post back to the server at any point; neither should the ASP.NET UpdatePanel control be used. Server communication should occur through webservice calls or similar."

I just asked a developer if it's possible to use AJAX without UpdatePanel, or/and use just a web service to prevent a page postback, and he said "the spec sounds a bit out of context".

Basically the application should provide a user interface and use Async postbacks (i.e. AJAX)...

View 7 Replies

Web Forms :: Weird Characters Inserted In The URL Of The MenuItem Tab?

Jun 3, 2010

In my website I use a <asp:menu> control in the master page. And I use Web.sitemap file to define the menu items. And everything works fine.But every few days when I click on the menu item tabs to change to another page, strange characters are embedded in the URL like this:

- http://www.mydomain.com/(A(5wNJHLUjywEkAAAAZDhkNW....))/nextPage.aspx

(supposed to be just http://www.mydomain.com/nextPage.aspx)

By checking the following MSDN link I realize that these strange characters stands for anonymous user:
http://msdn.microsoft.com/en-us/library/aa479315.aspx

However, I already set the following in web.config:

- <forms cookieless="UseCookies" .... />
- <anonymousIdentification cookieless="UseCookies" enabled="false" />
- <sessionState cookieless="UseCookies"/>

but these strange characters are still inserted into the URL every few days.Once it happens, I need to restart the website, or restart or recycle the Application Pools in IIS, then it will become normal again.

View 6 Replies

Access :: Database Connection Gives Weird Errors?

May 11, 2010

I am trying to do a login page which checks username and password from access database. I think my code is almost done but i am getting some weird error which i just can't decipher where it exactly comes from, as i think i already have every return value it needs. Can anyone check this function and tell me if there is something i am missing or doing wrong? And the error i get isDBConnection(string, string)': not all code paths return a value

[Code]....

View 3 Replies

.net - Get Weird Characters When Removing Line Breaks In Aspx Files?

Jul 7, 2010

I wrote a small .NET applications that removes all line breaks in aspx/html/css code to make it harder to read for people trying to steal my design. And surprisingly I get weird characters that appear out of nowhere such as Â, » and others. They all stay at the same places, but I have no clue why they appear.

View 2 Replies

Forms Data Controls :: Viewstate MAC Failed Error -- With A Weird Twist?

Mar 8, 2011

I'm getting the old "Validation of viewstate MAC failed" error when I click the submit button on my form. (Seehttp://blogs.msdn.com/b/tom/archive/2008/03/14/validation-of-viewstate-mac-failed-error.aspx) The thing is I'm getting the error even when the page is completely loaded (it can be sitting there for five minutes before I hit submit but I still get the error). This isn't even a particularly lengthy page (which is one of the preconditions). It uses a DetailsView (which I understand is another precondition for this error), but it's the only databound control on the page. Also, whenever users get this error (which is 100% of the time when they click Submit), they lose their login authentication and have to log back in. This page/site has been in use for about six months but the error suddenly started a few weeks ago without any changes being made to the code.

View 2 Replies

Web Forms :: Getting Some Weird Results When Nesting Login Control Inside Absolutely Positioned Element?

Jan 7, 2010

Login control is nested inside the div element.

aspx file:

[Code]....

a) As far as I know, the width of a nested element (Login) should by default be constrained by the width of a parent element. But that isn't the case, since Login is always expanded to its full width, no matter how small is the width of a #parentE element. why Login
doesn't have its width constrained?

b) I'm also getting some inconsistent results: if I change the value of "right" property to 200px, then element should be closer to the right edge by one third, but is in fact closer to the edge by 50%. If I then change the value of "right" property to 100px, then the element is only few pixels removed from the right edge of the browser ( while it should be 100px removed from the right edge )

View 1 Replies

Weird Stack Trace In Exception "The Incoming Request Does Not Match Any Route"?

Jun 11, 2010

i have published asp.net mvc application on iis 6 on the server(windows server 2003) from local machine. On server i have set the default page to default.aspx. but when i try to browse the site on server, it gives me exception "The incoming request does not match any route" One thing i noticed is that. Stack trace on line 5 is shown below. it has one weird thing that exception is still pointing to my local machine path

[code]....

View 2 Replies

MVC :: Are All The MVC 2.0 CDN Links Broken?

Feb 9, 2011

Is it just me or are all the ASP.NET MVC 2.0 links listed on the ASP.NET CDN broken?

[URL]

ASP.NET MVC 2.0

[URL]

View 7 Replies

Relative Links In PDF?

Jun 9, 2010

Have written an ASP.Net application. Part of the application deals with being able to view PDFs. The initial PDF viewed acts as an index to access other PDF documents. You click a link in the Index PDF and it jumps to another PDF file. Legal documents, agreements, etc.

This scenario works on some computers and on others it doesn't. I managed to figure out what the problem was. On some of the computers the initial Index PDF was being hosted within the browser and on some other computers it was actually jumping out of the browser and directly into Adobe Acrobat. As soon as the PDF jumps out of the browser and into Acrobat the relative links in the Index PDF stop working because it is hosted client side via Acrobat but the additional PDFs it is trying to access are on the server.

I figured out why some computers stay in browser and why some jump out. There is an option within Acrobat itself that determines this behavior. It is under Edit--> Preferences ----> Display PDF in Browser.

I am in a jam because I am not in control of the PDF documents themselves and how they are written, and I obviously have no control over the options selected in Acrobat on each and every computer. My problem is also compounded by the fact that our firm has just recently purchased a new PDF reader called Nuance that will be pushed out firm wide soon and I don't think it even has the option to have PDFs hosted in browser.

I can get what I need to work if I create the index in HTML, but the problem is I don't write the Indexes and the people who do are not trained in HTML. I can get the people who write the indexes to change from relative links to absolute links, but then I run into the problem of what if we change where we are hosting the PDF files? All the links will break again? I think we are stuck with relative URLs, but how can I make it work?

I am thinking about maybe hosting the PDFs within Silverlight?

View 2 Replies

Why Are The Links Changing Automatically

Oct 19, 2010

Server.HtmlDecode(wp.Body.ToString());
this.litBody.Text = body.ToString();

I'm using the above code to display database content on my website. The actual text on database is as follows.

<p>Forbury Investment Network (FIN) is a platform established to facilitate investment in early- and growth-stage companies in the technology sectors.</p>
<p>FIN was established by <a title="Clarkslegal" href="http://www.clarkslegal.com/" target="_blank">Clarkslegal</a> and its subsidiary <a title="Forbury Environmental" href="http://www.forburyenvironmental.com/" target="_blank">Forbury Environmental</a>, after 3 years of managing The EIC Environmental Investment Network.</p>

I have a test site and live site on the same server. Links work fine on test server. But when i look at the page on live server it the links are al wrong. www. is missin from both links and [URL] has become [URL]

View 2 Replies

How To Use A BulletedList To Output Some Links

May 11, 2010

I'm trying to use a BulletedList to output some links. When the list renders, all the link tags are encoded, so they are displayed to the user instead of being rendered as links.

Is there a way to make the BulletedList not do this? I'm doing a foreach over a custom object collection where each object has a string representing a link as a property. I just want to build a list of links and I thought a BulletedList was a good way to do it. Is there a better way or a way that doesn't encode the output?

View 4 Replies

Chart Control Links In 3.5 SP1?

Jun 16, 2010

Anybody have any good links on the Chart Control they introduced in 3.5 SP1? Company wants me to do some charting on a dashboard for a new project.

View 6 Replies

AdRotator Does Not Display The Links

May 11, 2010

NavigateUrlField does not work as expected! Althrough it is assigned properly MyAdRotator.NavigateUrlField = "AdvertURL" the rendered code is missing href attribute of the link e.g. <a id="blahblah" target="_blank">etc. I tried with absolute paths/urls and relative as well but, it still shows up only the images properly while link is missing.

View 5 Replies

MVC :: Adding Links In TextArea

Apr 10, 2010

How to add links in a TextArea using MVC? This one doesn't look good. [:(]

<%=Html.TextArea("textarea_name", "<a href=""/link_1/"">Text 1</a>", "<a href=""/link_2/"">Text 2</a>")%>

View 8 Replies

Web Forms :: Can't Click On Links

Sep 11, 2010

I've created an application (created with VS 2008) to access my oracle database(10g). I have Abyss Web Server. Once I got the server setup, I tested using a simple html page and it worked. I then tried to use my application. It did not work. At first I assumed it had to do with oracle. I ruled out that assumption when I created another page with a linkbutton and a hyperlink. These show up but I can't click on them. At one if I viewed it in IE, it would just show the source code for the page; for firefox, a download dialog came up. Does this have something to do with the application or server?

View 7 Replies

C# - Download All The Links From Any Page?

Jan 21, 2010

I want to develop an asp.net page through which I can specify the URL of any page which contains links of many files & directories. I want to download them all. Similar to DownThemAll plugin of FireFox.

i.e.

"MyPage.htm" file contains many links to files/directories located on the same server.

now I want to write a function which can download all these file if I provide

"www.mycustomdomain.comMypage.htm" as input.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved