Link to home
Start Free TrialLog in
Avatar of DxtrLws
DxtrLwsFlag 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
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

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
Avatar of 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
Avatar of DxtrLws

ASKER

Oh, and yes, I modified it using SharePoint Designer.
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
Avatar of DxtrLws

ASKER

Sorry it took so long to get back with you.