Creative Website Starter: Search Field & Submit Button written differently on Results Page
Hi,
I am having an issue using the CWS_Search whereby the search field & submit button are being written with DIFFERENT ID's on the results page. For example, when I'm on any other page of the site, the search field is ID'd:
As you can see, there is an extra "ctl00_" in front of it. Why is this? I shouldn't have to duplicate my CSS selectors just to style/position this. Since these fields are dynamically named, I don't know how I can affect this. Can I?? Where/how?
Creative Website Starter: Search Field & Submit Button written differently on Results Page
Hi,
I am having an issue using the CWS_Search whereby the search field & submit button are being written with DIFFERENT ID's on the results page. For example, when I'm on any other page of the site, the search field is ID'd:
Then on the results page, after the form is submitted, I get:
As you can see, there is an extra "ctl00_" in front of it. Why is this? I shouldn't have to duplicate my CSS selectors just to style/position this. Since these fields are dynamically named, I don't know how I can affect this. Can I?? Where/how?
Thanks,
Garrett
Could you not just specify a CssClass for the text Box, which shouldn't change and then you can reference it from that such as:
<asp:TextBox CssClass="searchBox3" runat="server" id="SearchBox_3_searchText" />
Then in your stylesheet:
.searchBox3
{
/*styles*/
}
I can ABSOLUTELY do that, yes! Thanks-- I just didn't know the "CssClass" attribute ;) Brilliant. Much appreciated.
//Garrett
is working on a reply...