Avatar of DxtrLws
DxtrLws
Flag for United States of America asked on

OOTB Workflows Not Working with Custom Master Page

I’m in the process of customizing a master page and I’m running into a problem. I’m adding a asp textbox in the ribbon tab area next to the welcome menu. It is a phone search box where employees can type in a name and bring up the employee directory. I was able to get the text box to show up and functions as it should. The problem I’m running into is that none of the out of the box workflows work when the textbox is installed. When I go to add a workflow, I choose the type that I want, click the next button and I’m greeted with:
This Page has been modified since you opened it. You must open the page again. Refresh page...
I remove the textbox and the workflows work just fine. I can only assume that the master page doesn’t like where I’m putting the asp code. Maybe there’s a better way of adding it? This is the ideal location for the textbox but if I have to put in a different place then I will. I've attached a screenshot of the ribbon with the textbox along with the error message I see when I try to add a workflow. Any help would be appreciated.
error.jpg
navbar.jpg
Microsoft SharePointASP

Avatar of undefined
Last Comment
DxtrLws

8/22/2022 - Mon
Rainer Jeschor

Hi,
could you post / attach the change to the master page and the code you have added?
How did you update the master page? Using SharePoint Designer?

In the meantime you may try this:
http://heshamsa.wordpress.com/2010/02/28/the-annoying-this-page-has-been-modified-since-you-opened-it-you-must-open-the-page-again-error-message/

HTH
Rainer
DxtrLws

ASKER
Sure thing. Here's a copy of the code I used and I attached a copy of the master page.

<script type="text/javascript">
	function changeText(txtB) {
			var textBox = document.getElementById(txtB);
			var txt = textBox.value;
			if (txt = "") {
			textBox.value = "Orbital Phone Search...";
			textBox.style.color = "grey";
			}
		}
	
	
	</script>
	<table style="float:left; text-align:center; height:40px">
		<tr>
		<td valign="middle">
	<asp:TextBox runat="server" id="TextBox1" text="Orbital Phone Search..." OnClick="this.value=''; this.style.color='black'" Onblur="this.value='Orbital Phone Search...';this.style.color='#476382'" style="font-size:8pt; font-family:verdana,tahoma,sans-serif; font-style:italic; color:#476382; padding-left:5px"></asp:TextBox>
			  <script runat="server">
                protected void Button1_Click(object sender, EventArgs e)
								{
								    Response.Redirect(
								        "http://orbnet/includes/phone/phone_results.asp?name=" +
								        Server.UrlEncode(TextBox1.Text)
								      );
								}
				</script></td>
			
		
		<td><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="/_layouts/images/gosearch15.png" OnClick="Button1_Click" BackColor="White" ImageAlign="Bottom"/></td>
		</tr>
	</table>	 

Open in new window


I'll take a look at the link you sent as well.

Thanks!
DxtrLws
Orb2010.master
DxtrLws

ASKER
Oh, and yes, I modified it using SharePoint Designer.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ASKER CERTIFIED SOLUTION
Rainer Jeschor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Guy Hengel [angelIII / a3]

I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
DxtrLws

ASKER
Sorry it took so long to get back with you.