0

So I have an ASP.NET website using C#. When I open the same page on two different browser tabs the input boxes (ASP.NET TextBox Controls) are synced in that when I type something in one it also appears in the other input box on the other tab.

Short of programmatically changing the ID individually or the content place holder ID at page load and setting ClientIDMode to static, how can I break the link? I've tried using different sessions via this question with no luck.

The pages will typically be differentiated by query strings but the controls have to be unique across browser tabs.

Sample Textbox Control:

<asp:TextBox ID="BoxTitle" runat="server" onkeyup="CharCount(this.id, 50);"></asp:TextBox>

Thanks!

Community
  • 1
  • 1
MuffinMan
  • 65
  • 1
  • 10
  • Can you post the code you have used for this control? Typically text boxes are not linked unless you have used some specific library/tool to keep them in sync. – PM. Mar 23 '17 at 21:47
  • Updated, it's like this all across the site, every input/textbox. – MuffinMan Mar 23 '17 at 21:52
  • Are you saying the text appears immediately on the other tab? Or does it appear when you refresh the page? – John Wu Mar 23 '17 at 23:09
  • Immediately, as in they are in sync. I just tried creating a brand new website to test with and it does the same thing, tried multiple browsers too. – MuffinMan Mar 24 '17 at 18:18
  • It also syncs across separate browser windows. – MuffinMan Mar 24 '17 at 18:22

1 Answers1

0

I'm an idiot, the solution was browser link in visual studio had "Enable Browser Sync" turned on which was the issue.

See more here: https://marketplace.visualstudio.com/items?itemName=MadsKristensen.BrowserSync

MuffinMan
  • 65
  • 1
  • 10