|
well I would define some minimal height (not in css, but physical height of your background picture), and everything extra would be just white background => so table (td, tr?) would have both background picture and background color. Pic fading from gray to white, following by white background - as many pixels as needed. Uh, you know what I mean.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
This is what I've come up.
// default.aspx
<form id="Form1" method="post" runat="server" >
<asp:repeater runat="server" id="rptNews">
<HeaderTemplate>
<table border="0" width="274" cellspacing="3" cellpadding="0" id="news-table" class="myTable" >
<th> <!-- Recent News --></th>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%# Eval("Text") %>
<a href="">more info</a>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:repeater>
<asp:repeater runat="server" id="rptEvents">
<HeaderTemplate>
<table border="0" width="274" cellspacing="3" cellpadding="0" id="events-table" class="myTable" >
<th> <!-- Upcoming Events --></th>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%# Eval("Text") %>
<a href="">more info</a>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:repeater>
</form>
// stylesheet
.myTable
{
background-color:white;
border-style:solid;
border-width:1px;
border-color:black;
background-image:url('http://www.code-frog.com/background_recentnews.gif');
background-position:bottom;
background-repeat:no-repeat;
margin:10px;
padding:0px;
}
#news-table th
{
background-image:url('http://www.code-frog.com/table_title_recentnews.gif');
}
#events-table th
{
background-image:url('http://www.code-frog.com/table_title_upcomingevents.gif');
}
In my test page I used ArrayList filled with random amount of ListItem objects, worked fine. While it doesnt look 100% as your current page, it takes just a little playing with css to make table header look like original. By the way, IMO it's better use text then image when possible for these things like table headers, it's important information about page structure - if i put into google "code frog upcoming events" I want to find that page, it's way easier to find it when *text* "upcoming events" is on that page, rather then image...
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
Hey DNH, good to see you. Hope everything is going well. I remember way back when I first started doing ASP .Net you offering me some good advice. Things have gone well from there but my HTML is horrid (and I'm okay with that) and it sometimes causes problems when I'm given bad HTML to work with.
|
|
|
|
|
Did you solve this yet, Rex?
|
|
|
|
|
hi there,
i am trying to uatomate login using httpwebrequest it does all the work correctly but when i try to redirect to the welcome page with the cookie headers that i got from the last post it redirect me to login , this is my code, any help plz?
// making post with login data
PostData = "login_username=clude&secretkey=taamea&js_autodetect_results=1&just_logged_in=1";
Url = "http://webmail.cleanercorners.com/src/redirect.php";
sReferer = "http://webmail.cleanercorners.com/src/login.php";
webRequest = (HttpWebRequest)WebRequest.Create(Url);
webRequest.Headers["Accept-Language"] = "ar-eg"; //"en-us"; //ar-eg
//webRequest.ProtocolVersion = HttpVersion.Version11;
webRequest.AllowAutoRedirect = false;
webRequest.Referer = sReferer;
webRequest.KeepAlive = true;
//webRequest.ContentType = "";
webRequest.UserAgent = " Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)";
webRequest.Accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*";
// making a post
ASCIIEncoding encoding = new ASCIIEncoding();
encodedPostData = encoding.GetBytes(PostData);
webRequest.Method = "POST";
webRequest.ContentType = "application/x-www-form-urlencoded";
webRequest.ContentLength = encodedPostData.Length;
Stream requestStream = null;
requestStream = webRequest.GetRequestStream();
requestStream.Write(encoding.GetBytes(PostData), 0, PostData.Length);
HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
requestStream.Close();
// getting the cookies from the response
cookies = res.Headers["Set-Cookie"] ;
string[] sCookiesParts = cookies.Split(new char[2] { ';', ',' });
string sFormatedCookies = sCookiesParts[0] + ";" + sCookiesParts[2] + ";" + sCookiesParts[6];
//HttpCookie cookie1 = new HttpCookie("Cookie", sFormatedCookies);
//Response.Cookies.Add(cookie1);
// redirect with cookies
Response.AddHeader("Cookie", sFormatedCookies);
Response.Redirect("http://webmail.cleanercorners.com/src/webmail.php");
|
|
|
|
|
I have a aspx page which contains a combobox and button. Inintially button will be invisble. When i select tthe third element in the combo the button should be visible. i made autopostback of combo to true. I am filling the combobox on formload when page.ispostback is false. But when the page is posted back by combo i am not able to see the button. moreover the combo also becomes empty. can anyone tell the reson?
Thanks and regards
Hari
|
|
|
|
|
Than you probably doin' strange stuff in your page load event.
Take a look at this[^] page to gather some more information about page events and learn to use them..
|
|
|
|
|
Hi
I need to create a proxy website.Ny idea how to do it>?
Sankalp Verma
|
|
|
|
|
Hi all,
I want to put an download link, when viwer click on the clink the relavent file has to be download. I dnt want to manage the file in zip format. If the user uploades the file as document, he can able to download the same file in document format and save in the local system.
Plz any one suggest me..............
Thanks in advance
Bye
Know is Drop, Unknown is Ocean
Know is Drop, Unknown is Ocean
|
|
|
|
|
Read my article it will give you some pointers on how you can achieve this
Article Here
|
|
|
|
|
how to insert asp.netcheckbox to a datagrid column to select individual records,
|
|
|
|
|
|
|
Dear all,
i am bit new to dotnet world, i am making web application using asp.net and C# (Visual studio2005).I wanted to Know how i can format string or number. Like if i select textbox to show only six digit. then even it is one digit it has to show as six digit
please give me some link or examples
Thanks
regards
imran khan
|
|
|
|
|
Try like this ...
string strTextboxValue=Textbox1.Text.Trim();
int i=int.Parse(strTextboxValue);
Arindam
|
|
|
|
|
Thank for reply,
Actually i wanted to do other way . that is for database i am fetching max no. in integer. now that integer type veriable i will assaign to textbox in formatted way. that is if integer veriable comes 1, it should show as 000001 in text box
HOw i can do it . please guide.
regards
imran khan
|
|
|
|
|
You can try this
here number is the value comes from database
str = String.Format("{0:D6}", number);
sachin
Very[D]
|
|
|
|
|
An error occurred while loading the document.Fix the Error,and try loading the Document again.
the error message follows:
The designer could not be shown for this file because none of the classes within it can be designed.
i got this error hw can i clear this error i am using .net 2003
thanks
Ramesh
|
|
|
|
|
i m developing an application with VS.Net 2003.
I have some reports made in crystal reports.
in one of my reports
i have to mentain master detail relationship.
how to achieve this with using hyperlinks..
any suggetion..
|
|
|
|
|
how do you retreive the variable values that you post from one page, in the calling page?
that is, in PHP you can use
$variable=$_POST['control name']
is there a similar thing in ASP.NET?
I want to know of a method other than passing variables with the URL.
|
|
|
|
|
The traditional way of retrieve the posted value is (common to ASP as well as ASP.NET),
Dim myname as String = Request.Form("Control Name")
If you use ASP.NET's Server controls, there is no need to use the traditional way. You just retrieve on the button click event as,
Dim myname as String = ControlName.Text
'Assume that the Control is a TextBox
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
If you use the Server.Transfer method to move between your pages, you can also transfer your variable values using the HttpContext
|
|
|
|
|
Hi friends
i have a problem to install VS.NET 2.0 in XP professional Service Pack 2
when i start the installation,It gives error that
Suite integration toolkit executable has encountered a problem.
plz help me
PATHAN
|
|
|
|
|
Hi everybody,
I am working with Crystal Reports 9.0 and using it from Visual Studio 2005 with ASP.NET Application written in C#. The report has subreport within it.
Now the problem is that while I am trying to run the report with the DB other than Original DB with which I created Report, gives me following error.
Failed to open a rowset. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Procedure or Function 'usp_MYProcedure' expects parameter '@MyProjectNo', which was not supplied. SQL State: 42000 Native Error: Failed to open a rowset. Error in File D:\WINDOWS\TEMP\MyReport {01B3207D-27E0-4335-A678-95A00B9EF675}.rpt: Failed to open a rowset.
For one of the reports, it gives Missing Parameter Values error.
i.e. the above problems occur while I am connecting the application with other DB which is exact replica of the original DB (with which I have created the Crystal Report), but with different name.
Any suggestion is appreciated. Thanks in advance.
Sandip Kansara
Software Engineer
India.
|
|
|
|
|