|
<table width="100%" height="100%">
....
</table>
-- modified at 16:45 Tuesday 28th March, 2006
|
|
|
|
|
Thanks for your help, but it's because of a span tag that I have in my table.
|
|
|
|
|
Note: The table tag doesn't have any height property. You have to use css to set the height of a table.
---
b { font-weight: normal; }
|
|
|
|
|
I'm a css newbie... what is the css method for setting the height to be the size of the window (like width: 100% does)?
scott
|
|
|
|
|
You use "height: 100%". If you are using XHTML you also have to set the height of the html tag and body tag to 100%.
---
b { font-weight: normal; }
|
|
|
|
|
i need simple code from asp to read xml contents..;P
RaJ
|
|
|
|
|
CodeProject -> Search -> XML
--------------------------------------------------------
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi,
I have to validate data inside a textarea control, and it works fine till I press enter.
I'm using the following regular expression to check my data:
^[\u00E8-\u00EB\00FCa-zA-Z\d ]$
I'm assuming I'm having trouble with new line characters. How do I modify my regular expression to do such checks?
Please can someone help??
Regards,
ma se
|
|
|
|
|
Hi,
How do we pass an integer argument from C# into a javascript function?
I declare an integer variable first, then I pass it into the javascript function.
But the javascript code didnt execute correctly.
//First, an integer variable is declared
int numofItems;
// Returns the Javascript code to attach the context menu to a HTML element
public string GetMenuReference()
{
return String.Format("return __showContextMenu({0},numofItems);", Controls[0].ClientID);
}
//Then the Javascript is called when the oncontextmenu event happens
ctl1.Attributes["oncontextmenu"] = GetMenuReference();
Initially the javascript function has the {0} argument only and it worked fine. But when I added one more integer argument, it doesnt work. What is the correct way to pass an int argument ?
|
|
|
|
|
Please don't cross post.
---
You are mixing server side code with client side code. That doesn't work.
Consider these two rules:
1. The server side code and the client side code never exist in the same place.
2. The server side code and the client side code never exist at the same time.
The variable that you created in the server code only exists on the server. When the Javascript code runs in the browser it can't access anything on the server, and even if it could, the variable doesn't even exist any more.
You have to put the value of the variable into the Javascript code, just like you put the value of ClientID in the code.
---
b { font-weight: normal; }
-- modified at 4:24 Tuesday 28th March, 2006
|
|
|
|
|
Hello,
Thank you for the reply and the guidelines.
Regarding about putting the value of the variable into the javascript code, just like putting the value of ClientID in the code, could u elaborate?
Is it something like,
return String.Format("return __showContextMenu({0},{1});", Controls[0].ClientID,numofItems); ?
|
|
|
|
|
Yes, that is one way of doing it.
---
b { font-weight: normal; }
|
|
|
|
|
Is it possible to write a web services that retrieves the Computer Name? and how would the syntax bassically look?
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
I have a flash animation exported to an html file and I want to verticaly align it. How do I do I do it with client side script languages?
regards
hint_54
|
|
|
|
|
You can try to export the flash animation and place in the html table so that you can aligh its easily.
|
|
|
|
|
Hi,
How would I go about searching a Datagrid, displaying data and after finding the particular record, it should only display the entry found in that DataGrid.
Secondly, How could I have a "CreateDate" and "LastUpdate" date in SQL with the getdate() function?
Thanks
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
There is an article may help your first Question
http://www.codeproject.com/cs/database/GridEx.asp[^]
Or there is another easy way: compare one by one with the search query with your record in datagrid.
Then you can either display the Found record or highlight the record in table.
|
|
|
|
|
Hi,
I'm having styling issues, and I am hoping some can help me.
My code is as follows:
<td valign="top" height="400">
<div id="ContentRightColumn">
Demo text
</div>
</td>
I am trying to make the whole colour of this td tag to be, for example, Lime; I want to set in the div tag. It only make the colour around the text Lime, but I want the whole height of the td to be Lime. I have tried using height: 100%; in the div style definition, but it does not work.
Can someone please advise me on how to do this?
Thanks
Brendan
|
|
|
|
|
The and elements are block-level elements. They both have theses spaces: margin, border, padding and content. Thus your text (the content of the div) is only turning lime. If you use a element instead of a dive element, then the content of the td will be lime. To have the lime color expand beyond the content, you need to take care of the spaces (either zero them out or make them lime also).
-- modified at 17:53 Monday 27th March, 2006
|
|
|
|
|
Hi all,
Recently I got to download and try out my app in the latest IE7 beta. Everything works fine except for a minor UI glitch - my control manipulates the DOM but apparently, the doc does not refresh until its forced to redraw due to some user actions (e.g. moving a window over it, etc).
Being a perfectionist , I tried to fix them from within my app by posting a WM_PAINT message to the doc to force the redraw. Well, it works for most cases EXCEPT if the contents being manipulated is in a DIV tag. *bummer*
This "written from scratch" browser better make good on its promise on security for causing me so much grief!
Ok, enough gripe. Anyone else having problems with this new browser update?
--------------------------------------------
Need help with your spelling in the forum?
Check out ieSpell, spell checker addon for Internet Explorer.
-- modified at 4:54 Monday 27th March, 2006
|
|
|
|
|
Hi,
I was wondering what is the difference between a Java servlet container (such as
Tomcat) and a Java application server (such as WebLogic)?
thank you
-- modified at 1:32 Monday 27th March, 2006
|
|
|
|
|
I don't think any one is going to answer this as this is a Microsoft platform site.
Try posting your question to a Java forum.
Regards,
ma se
|
|
|
|
|
Hi, I have an application that I have developed that collects credit card information on a web page. The user clicks OK and it calls a .DLL to validate the card with the credit card processor. If the credit card used is a Commercial Credit card, the credit card processor will return a flag indicating to collect the commercial card data such as tax, and shipping information so it appears on the credit card statements. After the commercial card information is collected, the .DLL needs to be called again with the data filled in and the flag set to "true" so the data can be written to the journal file.
Where I'm stuck is on displaying the commercial card web page. I can do several different things. I have come up with the follow approaches and I'm sure someone else can come up with another. I just don't know which is the best way to approach this.
1. Store about 35 pieces of data in session variables, redirect the user to the commercial web page and on the POST of the commercial card screen call the .DLL to write it all the data to the journal file.
2. Store only the information not already available on the authorization web page in session variables, redirect the user to the commercial page, collect the data and on POST display the credit card authorization screen again making the user click OK for the 2nd time.
3. If I knew how to do this, I think this would be the best. After returning from Authorizing the credit card if the commercial indicator has beeen set by the DLL to collect more information, display a pop up window to collect the data. On the POST from the commercial web page, write the few pieces of commercial data to session variables and return to the Authorization logic where the pop up was issued, grab the data from the session variables and call the .DLL to write the data to the journal file.
4. I thought about having the commercial data on the authorization web page hidden and un-hide the fields and text if the commercial indicator is on, however the screen is already too long and I don't want to make the user scroll.
Number 3 is the best if I could figure out how to do it, number 1 isn't a bad substitute if that's the only solution, or is there something I haven't thought about.
Thank you,
Glenn
|
|
|
|
|
I want to diable the viewsource from the contextmenu on the page and also in view menu in internet explorer
Phanindra...
|
|
|
|
|
Hmm maybe you can try to disable the right click of onmousedown
-C-?-M-
|
|
|
|