Sometimes it's the easiest thing!!
Thanks
Main Topics
Browse All TopicsI'm getting were I really hate Visual Studio .NET. I only switched recently from Visual Studio because I need it for SQL Server 2000 Reporting Services.
We have an ASP only site ... no .NET ... just ASP pages. I inherited it frmo another developer and am struggling through figuring out how and why he did stuff the way he did.
I now need to change the captions in a couple DesignControl buttons. I'm used to just doing things by hand and not using all these "helpful" controls. When I open the page from my server I get stuff that looks like this
<!--METADATA TYPE="DesignerControl" startspan
<OBJECT id=btnDetails style="LEFT: 0px; WIDTH: 65px; TOP: 0px; HEIGHT: 27px" classid="clsid:B6FC3A14-F8
width=65 height=27>
<PARAM NAME="_ExtentX" VALUE="1720">
<PARAM NAME="_ExtentY" VALUE="714">
<PARAM NAME="id" VALUE="btnDetails">
<PARAM NAME="Caption" VALUE="Details">
<PARAM NAME="Image" VALUE="">
<PARAM NAME="AltText" VALUE="">
<PARAM NAME="Visible" VALUE="-1">
<PARAM NAME="Platform" VALUE="256">
<PARAM NAME="LocalPath" VALUE="../">
</OBJECT>
-->
<SCRIPT LANGUAGE=JavaScript RUNAT=Server>
function _initbtnDetails()
{
btnDetails.value = 'Details';
btnDetails.setStyle(0);
}
function _btnDetails_ctor()
{
CreateButton('btnDetails',
}
</script>
<% btnDetails.display %>
<!--METADATA TYPE="DesignerControl" endspan-->
I need to change the caption for the button but when I do that, the change never shows up on the page on the server. If I colse and reopen the page from the server, I see my changes but the button text is not shown.
What am I missing? Is it a problem with the way I have the project or solution set up?
Thanks
David
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: puranik_pPosted on 2005-03-31 at 02:41:31ID: 13670195
Your javascript has functions to change caption of button. But I suspect they are never called. _initbtnDetails, null);
If yes, add a call to the function....
<SCRIPT LANGUAGE=JavaScript RUNAT=Server>
function _initbtnDetails()
{
btnDetails.value = 'Details';
btnDetails.setStyle(0);
}
function _btnDetails_ctor()
{
CreateButton('btnDetails',
}
function _btnDetails_ctor();
function _initbtnDetails();
</script>