Search Control causes ASPX page to Postback twice

When I add the Windows Live Search Control to my ASPX (2.0) version of my page, the Page causes as second postback. Once I remove the control the page does not postback twice.

Please help,
Joseph Guadagno

http://www.josephguadagno.net

[330 byte] By [jguadagno] at [2008-1-9]
# 1
we took a look at your site it doesn't seem to be doing double postback? it was an issue for live search box v1.0 but should have been fixed in v1.1 (and there is auto update so you should be running v1.1 now). let me know if this is not what you see. thanks.
Yu-TingKuo-MSFT at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Search: Development...
# 2
This has only been occuring on my development machine. I did not notice / catch this behavior while developing what at http://www.josephguadagno.net. I have since removed it from my development, I will test it out later when I get home.
jguadagno at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Search: Development...
# 3
I have tested it out on my development machine and the second postback happens once the "Loading" message of the Search Control disappears.
jguadagno at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Search: Development...
# 4
do you have a link that we can connect to and test/see?
Yu-TingKuo-MSFT at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Search: Development...
# 5
As of now, no. I am in the process of rebuilding the site.

I will post some of the code....

SearchBox code

Code Block

<div id="WLSearchBoxDiv">
<table cellpadding="0" cellspacing="0"><tr id="WLSearchBoxPlaceholder">
<td id="WLSearchBoxPrefixTD"><asp:Label ID="WLSearchBoxPrefix" runat="server" /></td>
<td style="width: 100%; border:solid 2px #4B7B9F;border-right-style: none;"><input id="WLSearchBoxInput" type="text" value="&#x4c;&#x6f;&#x61;&#x64;&#x69;&#x6e;&#x67;&#x2e;&#x2e;&#x2e;" disabled="disabled" style="padding:0;background-image: url(http://search.live.com/s/siteowner/searchbox_background.png);background-position: right;background-repeat: no-repeat;height: 16px; width: 100%; border:none 0 Transparent" /></td><td style="border:solid 2px #4B7B9F;"><input id="WLSearchBoxButton" type="image" src="http://search.live.com/s/siteowner/searchbutton_normal.png" align="absBottom" style="padding:0;border-style: none" /></td></tr></table>
<script type="text/javascript" charset="utf-8">
var WLSearchBoxConfiguration=
{
"global":{
"serverDNS":"search.live.com",
"market":"en-US"
},
"appearance":{
"autoHideTopControl":false,
"width":800,
"height":550,
"theme":"Blue"
},
"scopes":[
{
"type":"web",
"caption":"&#x54;&#x68;&#x69;&#x73;&#x20;&#x73;&#x69;&#x74;&#x65;",
"searchParam":"site:www.josephguadagno.net"
}
,
{
"type":"web",
"caption":"&#x53;&#x65;&#x61;&#x72;&#x63;&#x68;&#x20;&#x43;&#x6f;&#x64;&#x65;&#x20;&#x53;&#x69;&#x74;&#x65;&#x73;",
"searchParam":"macro:guadagno.Code_Search"
}
,
{
"type":"web",
"caption":"&#x57;&#x65;&#x62;",
"searchParam":""
}
]
}
</script>
<script type="text/javascript" charset="utf-8" src="http://search.live.com/bootstrap.js?market=en-US&ServId=SearchBox&ServId=SearchBoxWeb&Callback=WLSearchBoxScriptReady"></script>
</div>


Css File....
Code Block

/* Windows Live Search Box - START */
#WLSearchBoxDiv
{
display: block;
text-align: right;
padding-left: 5px;
padding-right: 5px;

}
#WLSearchBoxPlaceholder
{
background-color:Aqua;
text-align: right;
width: 100%;
}


The div itself sits inside of a TABLE's TD cell.
jguadagno at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Search: Development...

Windows Live Developer Forums

Site Classified