|
I am trying to create a table for layout. Simple header, content and footer sections (rows).
I want the header to sit flush against the top of the page and the footer to sit at the bottom of the page. The content section should fill the available space. I thought setting the height of the table to 100% would accomplish this but there appears to be problems. Is there a neat solution to this problem? What is the workaround?
Code shown below:
<br />
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head runat="server"><br />
<title>Untitled Page</title><br />
</head><br />
<body><br />
<br />
<asp:Table Width="100%" Height="100%" BackColor="Azure" runat="server"><br />
<asp:TableRow><br />
<asp:TableCell Height="50px">top</asp:TableCell><br />
</asp:TableRow><br />
<br />
<asp:TableRow><br />
<asp:TableCell BackColor="Beige"><br />
<form id="form1" runat="server"><br />
<div><br />
mid<br />
</div><br />
</form><br />
<br />
</asp:TableCell><br />
</asp:TableRow><br />
<br />
<br />
<asp:TableRow><br />
<asp:TableCell Height="50px" BackColor="BlanchedAlmond">bottom</asp:TableCell><br />
</asp:TableRow><br />
<br />
<br />
</asp:Table><br />
</body><br />
</html><br />
<br />
<br />
<br />
|
|
|
|
|
Try to use with CSS. Because there is some issues in using Width of table directly.
|
|
|
|
|
hi there,
I have a gridview connected to a SQLDataSource and a formview connected to the same data source, and I am enabling selection to the grid view in oreder to show the details of the selected row from the gridview in the formview ,
I had this script code :
Protected Sub GridView1_SelectedIndexChanged(ByVal obj As Object)
FormView1.PageIndex = GridView1.SelectedIndex
End Sub
But it is not working for me , it just do it for the first one and when I select another row it does nothing
does anyone knows what is the problem
I am ready to do any thing to solve it
urgent help is needed
There is always something to learn
|
|
|
|
|
Knowledgestudent wrote: urgent help is needed
No. That is very rude.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Thanks for help by the way , I had solved it
thanks again
There is always something to learn
|
|
|
|
|
Knowledgestudent wrote: I had solved it
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I have an ASP.Net web application in C# that needs to generate a text file automatically every hour. Is there a way for me to automatically generate the text file without any user interaction on the server or through a client? Is there a timer function that I can called? Thanks.
|
|
|
|
|
You would need to write a web windows service that uses a timer to run some code to generate a file at hourly intervals.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
modified on Friday, December 21, 2007 3:17:10 PM
|
|
|
|
|
The Webcontrols.Login control has a RememberMe checkbox that when checked will write a cookie to the client machine with their identity info. When the client re-visits the site their Page.User.Identity info is read from the cookie.
Anyone know what data this cookie actually stores? Does this cookie store the UserName and Password? Is it storing the UserName and a flag that says this user did successfully log in?
I guess I'm basically wondering how useful this cookie is VS how secure it is.
|
|
|
|
|
If the user successfully logs in and the RememberMe checkbox is ticked, the authentication ticket generated by the Forms Authentication system is stored in a persistent cookie. This ticket is an encrypted string that, when decrypted, uniquely identifies a particular user account. No plaintext information is stored in the cookie for obvious security reasons.
For more information, see this article[^].
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i am confused in paypal as i am a newbie in handling the payment transaction. I want to know that in dodirectpayment api when i use these api with my apiusername,password,signature and all the other details which this api requires , but i know that money is deducted from buyers a/c through the use of dodirectpayment api but how is it debited to our account,means to seller a/c, how paypal knows which a/c to be debit.
actually want a complete information on this section regarding money transfer and recieve. what actually is the background process.
|
|
|
|
|
Don't know. Have you tried getting help from paypal?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
iam using gridview where iam assing datatable to the grid view datasource .now i want the particular column cells color should in given color
|
|
|
|
|
I think you can set the color of specific columns in RowDataBound event of gridview,and also you can implement this by javascript alternatively
|
|
|
|
|
hi ,Guys
I have master page containing the contentplceholder .
I added the user control dynamically in contentplceholder. Control is added but when I click on button of my user control , the control is vanish , any one know how to handle event of user control that added dynamincally in contenplceholder ?
Yogesh M
|
|
|
|
|
I think the dynamic control will be lost while postback. You will have to keep on adding on every pageload.
|
|
|
|
|
Hi All,
Is there any ways to know which all applications are using a particular assembly installed in Global Assembly Cache (GAC)?
Thanks in advance
Sony Sebastian
|
|
|
|
|
You question is not much clear to me could you kindly explain in details.
you can use Assembly Class for that
GlobalAssemblyCache :Gets a value that indicates whether the assembly was
loaded from the global assembly cache
|
|
|
|
|
sebastiansony11966 wrote: Is there any ways to know which all applications are using a particular assembly
I think it is impossible..
|
|
|
|
|
iam usiging gridview to hide the gridview column one iam using as
gridview.column(1).visible =false
inseted that how can i give column(columnname) is this possible
|
|
|
|
|
|
hi will u plz tell me in brief
|
|
|
|
|
I think this is NOT what he is asking..
|
|
|
|
|
Is there a way I can get the websites port number when I don't have access to the current HttpContext object (because it's executing as a background thread, not processing an HTTP request)?
modified on Friday, December 21, 2007 7:09:05 AM
|
|
|
|
|
sometime my page unicode change automaticcaly. for example when I save my page as unicode with signiture(utf=8) ,
next time, when I open this page ,its charset changed to arabic or unicode without signiture.
I configure my web.config and even I set ducoment charset and select my culture (fa=farsi)
but they don't prevent to change page unicode.
|
|
|
|