|
Hi developers,
I am having a great challenge in my .aspx pages. I have a .css file for my site layout, but each time I add a page and add a lenghtly contents (i.e a long content), it does stay static and not resized automatically. This does not give me flexibility of page layout that I want (page height resizing dynamically). Although, the #content height was specified in pixels. But if I had not specified the #content height in my css file, the page can be resized dynamically.
Please help.
Tunsten
|
|
|
|
|
If you specify height in Pixels, it will not automatically resize according to content length. One thing you can do, is you can make overflow:auto to have scrollbar when content length goes greater than the height.
If you remove the setting of height of the element, it will automatically spread itself.
|
|
|
|
|
Thanks a lot.
I am grateful.
Tunsten
|
|
|
|
|
Hi all,
How can I point to an HTML file if I am setting the IsHtmlBody = true in my app?
Please help.
Tunsten
|
|
|
|
|
|
A lots of thanks. I appreciate that.
Tunsten
|
|
|
|
|
Hi,
Below line of code is not working with FireFox.
Please let me know where I am wrong.
document.getElementById('txtAdd').innerText = valuefinal.toFixed(5);
Frank
Software Developer
www.mindstick.com
modified on Friday, November 20, 2009 10:44 AM
|
|
|
|
|
|
innerText will not work in Firefox I guess.
You can use innerHTML .
Also there might be sometimes the control may have child elements so it is better to remove those elements first.
To Clear a container use
var element = document.getElementById('txtCommissionBalance');
while(element.firstChild)
element.removeChild(element.firstChild);
After it removes all the element, do set the innerHTML .
|
|
|
|
|
Hi all,
I have Outer Gridview and Inner Gridview , Inner Gridview Contains the Checkboxes now if Outer Gridview Check box Checked then Inner Gridview Checked enables false else vice versa.
Now my Probelm is that how i access the inner Gridview items and insert into database if outer Gridview checkbox not checked
Share me the Ideas
Best Regards,
Thanks in advance
|
|
|
|
|
You might consider RowDataBound event to find the control.
use like this :
Sub CustomersGridView_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
'now use e.Row.FindControl to get the gridview.
End If
End Sub
Hope you got the solution.
|
|
|
|
|
Is it possible to assign a default role in asp.net role and membership provider.......for e.g. there is two roles in my website.......Ist is Admin and IInd is Customer...........and if any user registers himself...........he must be automatically assigned to customer role..........is it possible...........plz guide me a bit.......
|
|
|
|
|
|
Do it Programatically.Add this Code
Roles.AddUserToRole("UserName","Customer")
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
i want to open my website automatically in Compatibility mode in IE8 in ASP.NET(C#).
|
|
|
|
|
You mean your system is running with IE8, but you want to open your web application with Compatibility Mode of Browser ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
actaully i made a project in ASP.Net
its working fine in IE6 but not working well in IE8, it works well in IE8 only when i click the Compatibility mode..
so i want is my project work well in IE8 without clicking on "Compatibility Mode"
|
|
|
|
|
Ohh...Then you need to concentrate on CSS only. and Why IE6.... Its too backdated.. I think..
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
Add this tag before head tag in the page html.
HTH
|
|
|
|
|
These are all Meta headers which you might also use based on your requirement :
<meta http-equiv="X-UA-Compatible" content="IE=4"> <!-- IE5 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=7.5" > <!-- IE7 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=100" > <!-- IE8 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=a" > <!-- IE5 mode -->
Check this :
http://blogs.msdn.com/deviations/archive/2009/05/07/how-to-enable-ie-8-compatibility-view-for-your-whole-web-site-or-for-specific-web-site-directories.aspx
|
|
|
|
|
Thanx for reply.....
|
|
|
|
|
If i set the compatibility mode to IE7, then what will happen when i access through IE6?
Kindly reply.
|
|
|
|
|
Is there any code to get the client MAC Address in asp.net who will use to access the page.
|
|
|
|
|
Any_India wrote: Is there any code to get the client MAC Address in asp.net who will use to access the page.
Simply You Can't.
Client System Runs with JAVAScript, and JavaScript Does not have sufficient access permission that it can read client System Info.
Now, the alternative solution is the ActiveX . But It will work only on IE
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|