Hello,
I have code on the page_init method of my masterpage that picks up the name of the logged in user and checks that this user is stored in the database. If the user isn't found in the database I want to display the content page "UnknownUser.aspx".
However, redirecting to this page (using...
I picked this up as an example of this sliding doors method of making a flexible width button which would adjust its width according to the text that sat within. I adjusted a few of the values to fit my specific button graphic, but I haven't made any additions. To be honest I find the whole CSS...
Wow, a great example of how explaining a problem 'out loud' helps triggers you to come up with a solution. I started comparing the HTML rendered for button with the hardcoded label
<a id="imbSearch3" class="buttonO" href="#" onclick="javascript:ClickedClient(this...
...handled server-side, are you referring to the insertion of the correct string according to the language that the user has selected? Currently this *is* being done on the server - the Text="<%$ Resources:ResourceFilename, stringKey %>" is replaced with the appropriate string during server-side...
The display:block; and Float:left appear to help position the two graphics - without these the button appears to explode! Also, I just noticed I forgot to correct the last section of the CSS - the padding for the version that works with the hardcoded label should have been: 5px 0 5px 18px
...font: bold 12px Trebuchet MS, sans-serif;
height: 20px;
margin-right: 6px;
padding-right: 18px;
text-decoration: none;
}
/* This is the closest I can make for the aspLabel version */
a.buttonO span {
background: transparent url('../img/button_left.png') no-repeat...
OK, in case anyone else stumbles across this in future, the following provided me with the solution:
http://www.codeproject.com/KB/ajax/incdd.aspx?msg=2357845
Wes, thanks very much for all your efforts to help me. I'm still not clear on a couple of things:
1. Why do you use "New Textbox" as the first (type) parameter?
2. What calls this Populate function and when?
Cheers,
Tom
Sorry if I'm being a bit slow here, but how do I register the scripts with the script manager? Do you mean like this:
<asp:ToolkitScriptManager ID="TSM1" runat="server" [...] EnableViewState="true" EnablePartialRendering="true" />
<asp:ScriptManagerProxy runat="server" >
<Scripts>...
This sounds promising! But I have a question: when I have used RegisterStartupScript before, it has been to actually *trigger the call* of a clientside script from a code behind event.
However, the event in this case is the user clicking the City dropdown on the clientside (which triggers the...
Sorry, I replied before I read your second reply! :) Javascript is something I'm working at but I'm still learning. Would registering the script in the code behind address the issue in my last mail? Would this then run after the webservice had returned values to the hotel?
...it seems that the check of the Hotel dropdown occurs before the data from the webservice is returned, so I am not sure that this is th way.
I feel that I need some way of intervening *after* the webservice has returned its values to the Hotel dropdown - but I have no idea if that is possible.
Hey Jason, thanks for this. I guess using CSS is the way I was thinking it might be done. But I have had a few issues where I'm developing/testing in IE8 and get everything looking nice, then I check it in IE7 and things look wonky or out of alignment. And then there's Firefox, Chrome, etc.
But...
...label I guess) superimposed over the top.
My immediate reaction was that the difficult aspect of this would be to get a solution that would look *exactly* the same in all browsers. That's why we use graphics right? Anyway, I was just wondering what you other, more experienced people think...
Hi,
My asp/VB.net website needs to send out emails which will contain links. The links will take the recipient to a specific order that is saved on the website. I can link to the page using Request.ServerVariables("SERVER_NAME") and Request.ServerVariables("URL"). And I could add a link to the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.