|
i work in project data from our site to customers
but i need to do something
i don't wan't that data to be send as regaul string
i want it to apperat inside table
i send customers offer price
so i want to be easy to read
some thing like that
Serial ProductName Quantity Price
i want my data to dir in that structure in email sent to customers
md_refay
|
|
|
|
|
And your question is what exactly?
|
|
|
|
|
Don't post your questions in multiple sections. Please wait for the responses because weekend too, many people started to enjoying that.
Already you have posted your question in Q/A section[^]
thatraja
My Tip/Tricks My Dad had a Heart Attack on this day so don't...
All these are my opinions. Different people. different way of thinking. I am no one to judge others - Chandru
|
|
|
|
|
i think u can use grid view for create table and mail that page to your recipient
|
|
|
|
|
You can use <table>
Or, better still <div>
<div> is better because there is more manipulation available.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Any one knows of a Free alternative to Urchin 6 which is not js based and is able to process log files like Urchin?
Thanks
|
|
|
|
|
Hi folks,
Let's say I need to display 1000 products in one single page on a table with 2 columns: Product Image and Product Name.
Let's assume, I only have 2 product images, the first image will be displayed on odd-numbered rows and the second image on even rows as shown below.
<table>
<tr>
<td><img src="odd.jpg"></td>
<td>One</td>
</tr>
<tr>
<td><img src="even.jpg"></td>
<td>Two</td>
</tr>
<tr>
<td><img src="odd.jpg"></td>
<td>Three</td>
</tr>
<tr>
<td><img src="even.jpg"></td>
<td>Four</td>
</tr>
...
</table>
I assume the web browser will request the web server to send "odd.jpg" and "even.jpg" 500 times each (1000 total).
Is this assumption correct?
Or, are web browsers optimized by default to request the same image once and apply it across the page
as needed?
Your support is appreciated.
Thanks,
...Alex
|
|
|
|
|
neualex wrote: Is this assumption correct?
No. Web browsers (even the infamous you-know-what) are smarter than that. A quick snap with Wireshark will show you.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
No, as has been said, the browser will only request the same image once. However, it can a only use some many active connections to the same domain so if you have that many images you could improve performance by using a few subdomains to load the images from.
This will load faster
<img src='doman1/image1.jpg'/>
<img src='doman1/image2.jpg'/>
<img src='doman2/image3.jpg'/>
<img src='doman2/image4.jpg'/>
<img src='doman3/image5.jpg'/>
<img src='doman3/image6.jpg'/>
<img src='doman4/image7.jpg'/>
<img src='doman4/image8.jpg />
than this
<img src='doman1/image1.jpg'/>
<img src='doman1/image2.jpg'/>
<img src='doman1/image3.jpg'/>
<img src='doman1/image4.jpg'/>
<img src='doman1/image5.jpg'/>
<img src='doman1/image6.jpg'/>
<img src='doman1/image7.jpg'/>
<img src='doman1/image8.jpg'/>
And of course if you want to optimize even more you can use a table-less layout
I know the language. I've read a book. - _Madmatt
modified on Friday, August 12, 2011 10:14 AM
|
|
|
|
|
Keep in mind this is only partly true. Currently browsers are supporting more then 2 parallel connections, see table below.
Firefox 2: 2
Firefox 3: 6
Opera 9.26: 4
Opera 9.5 beta: 4
Safari 3.0.4 Mac/Windows: 4
IE 7: 2
IE 8: 6
|
|
|
|
|
Yes, they keep updating. How many does IE 9 support?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have no idea why your message was 1-voted. I compensated.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Thanks
John Simmons / outlaw programmer wrote: I have no idea why your message was 1-voted
Typical CP pettiness of course.
No comment
|
|
|
|
|
You may be able to use image preloading to an array...google it and try.
Chris J
www.redash.org
|
|
|
|
|
I have a simple aspx page with 2 inputs(a button and a text box), when I hit the button I send the text box' value via ajax to a server method. When I use chrome/firefox it goes well, but when I send non-eng chars in explorer(versions: 7,8,9) I see in the server something like ???????
I have placed utf-8 meta tag at the aspx page and I save the file as an encoded-utf8 file.
|
|
|
|
|
Hi Friends,
I am using asp to import data from .txt (tab delimited) to SQL Server 2008.
I have found some problem with my code now. ie., some data is not getting read from textfile hence its not inserted into table. But still data present in .txt. I am not sure what will be the cause for this issue. Below is my code.
cnnText.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=D:\Sangeetha\commodul\ACDT\UploadFile\;" & _
"Extended Properties=""text;HDR=YES;IMEX=0;FMT=TabDelimited"""
' Load ADO Recordset with Text Data
Set rstText = Server.CreateObject("ADODB.Recordset")
'rstText.Open "Select * from [" & file_name & "]", cnnText,2,3,adcmdText
rstText.Open "Select * from [" & file_name & "]", cnnText
Set rstAccess = Server.CreateObject("ADODB.Recordset")
rstAccess.Open "select * from CReport", connection, 2,3
Do Until rstText.EOF
With rstAccess
'if not(isnull(rstText.Fields("reporting_date"))) then
.AddNew
.Fields("credit_group").Value = rstText.Fields.Item("credit_group")
.Fields("credit_group_aig_number").Value = rstText.Fields.Item("credit_group_aig_number")
.Fields("credit_group_gdr_id").Value = rstText.Fields.Item("credit_group_gdr_id")'new
.Fields("credit_group_domicile_code").Value = rstText.Fields.Item("credit_group_domicile_code")
.Fields("credit_group_domicile").Value = rstText.Fields.Item("credit_group_domicile")
rstText.MoveNext
'else
'rstText.MoveNext
'end if
End With
Loop
rstAccess.UpdateBatch
I have tried by keeping IMEX as 1. Only for some of the columns this problem is happening. Eg:
credit_group_aig_number is a column where for some row records is getting read and for some row this col value its not at all reading from connector. I tried with Response.Write, no value is printing even that row is having value in text file.
I have noticed that column has input of 9 digit id which starts with number as well as alphabet. Only where its start with alphabet this is problem.
Kindly help.
Thanks,
|
|
|
|
|
Hi,
I am working on an aspx file which uses css. It displays fine in IE but not in Safari, Chrome, Firefox etc. I am trying to get my head around it but all in vain..
When it get displayed in other browsers all the li jumps to the right only displaying only half of each li.
What i think is the width(eg : width :67px for li.studylink a:active) given in the css is not being identified by other browsers.
It would be very helpful if someone could help me sort it out. I am posting my html contents and css which doesn't gets displayed right.
Thanks in advance.
Payal
CSS
----
.HeaderMenu ul {float:right;height:20px;font-size:6pt;padding-top:2px;}
.HeaderMenu li {display:inline;font-family:arial,arial,sans-serif;font-size:6pt;height:20px;padding:0 0 0 15px; }
li.studylink a:link, li.studylink a:visited, li.studylink a:active {background-image:URL(/Test/Images/studylinkoff.jpg);background-repeat:no-repeat;background-position:left center;width:67px;vertical-align:middle;padding:6px 5px 7px 23px;color:#000;text-decoration:none;height:100%; }
li.studylink a:hover {background-image:URL(/Test/Images/studylinkon.jpg);background-repeat:no-repeat;background-position:left center;color:#000;text-decoration:none;height:100%; }
li.home a:link, li.home a:visited, li.home a:active {background-image:URL(/Test/Images/home_off.gif);background-repeat:no-repeat;background-position:left center;width:67px;vertical-align:middle;padding:6px 5px 7px 23px;color:#000;text-decoration:none;height:100%; }
li.home a:hover {background-image:URL(/Test/Images/home_on.gif);background-repeat:no-repeat;background-position:left center;color:#000;text-decoration:none;height:100%; }
li.print a:link, li.print a:active, li.print a:visited {background-image:URL(/Test/Images/print_off.gif);background-repeat:no-repeat;background-position:left center;width:80px;vertical-align:middle;padding:6px 5px 7px 23px;color:#000;text-decoration:none;height:100%; }
li.print a:hover {background-image:URL(/Test/Images/print_on.gif);background-repeat:no-repeat;background-position:left center; color:#000;text-decoration:none;height:100%; }
HTML
------
<table border="0" cellspacing="0" cellpadding="0" width="770" height="70">
<tr>
<td>
<A id="a1" href="/Test/Info/Information/HomePage.aspx" runat="server">
</A><img src="/Test/Images/Head.jpg" border="0">
<div class="HeaderMenu">
<ul>
<li class="studylink">
<a href="http://www.google.com/" title="Study Link. "></a>
</li>
<li class="home">
<a href="http://www.yahoo.com/" title="Back to the Homepage. "></a>
</li>
<li class="print">
<a href="#" onclick="javascript:print();return false" title="Print this page. "></a>
</li>
</ul>
</div>
</td>
</tr>
</table>
modified on Tuesday, August 9, 2011 11:01 PM
|
|
|
|
|
I have come across this recently myself, in answer to oyur problem, if it's not too late, you can set margin-left:1%; or however much and that will force the thing back into view, however, a better solution is to force the bullet inside of the LI tag, by default it acts as though it is outside. To do this, put
li { list-style-position:inside; } it's completely standard css and works best.
Hope this helps, Ed
|
|
|
|
|
Not to sound like I'm a newb (I'm definitely not), but I've been in the process of re-reviewing web dev tools for an upcoming project. In the process I've found a really confusing cross-section of Microsoft solutions. I know that there are definitely differences between them, but some are more clear than others and I certainly couldn't find anything from Microsoft that provides clear direction (no surprise there) on which tools are best for what types of development.
- Visual Studio (ie. ASP.NET) - the "real" MS developers answer to web dev
- Sharepoint Web/Designer - web front-ends to Sharepoint, but also capable of doing much more?
- Expression Studio - Blend, Web, Encoder, Design - obviously some of these tools are based more on the graphic design than functionality, but there is a lot of cross-over here as well
- WebMatrix - the beginner's tool for quick, basic web design?
- Lightswitch - Microsoft's web application tool that, in my opinion, is basically targeted at people that used to build Access-based solutions
- Orchard - Microsoft's "late-to-the-game" answer to DNN?
Obviously one can expect some overlap between solutions when one is targeted at pros (such as VS) and others are targeted at beginners (ie. WebMatrix or Lightswitch). However, there is no less than 6 tools listed above and some of these break down further into individual tools. Does anyone know of anything (from Microsoft or independant) that clearly defines the roles of each of the above? What comments do the knowledgable and experienced users of CP have to contribute on the above list?
Cheers,
Chris
|
|
|
|
|
Visual Studio - The tool for professional developers
SharePoint Designer (SPD) - Used for SharePoint customizations. Although it has the legacy of FrontPage it is only really useful for SharePoint customizations and non-development work at that.
Expression Web/Blend/Studio - Very handy for web styling and almost a requirement for Silverlight design work.
Webmatrix - A starter tool for non-devs to not hurt themselves but pass the pain on to real developers.
Lightswitch - Allow the office admin to create applications and convince management they should be in IT and/or they don't need real developers.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have a horizontal nav menu defined as a standard `ul` with `li` items. The person who designed the menu used one image per menu item, with the image width fixed to that of the menu item, i.e. for five menu items, we have five different width images. I want a reusable menu that caters for various sets of items, of any width, so I've replaced the fixed width images with a 1 pixel wide slice of the original image, set to `repeat-x`.
However, the images for the selected item (yes, one 'selected' image per menu item as well) have an additional, downward pointing arrow on their underside, as in the image below. How can I include such a little marker on the selected item?
http://imageshack.us/photo/my-images/135/menufk.png/[^]
|
|
|
|
|
You could cheat, and it put it in the menu text ► itself ◄.
▲ And remove it when inappropriate, of course. ▼
But that will only work if you're using Unicode.
|
|
|
|
|
I hadn't realized before, though it appears that you can have several background images for a single html element. So, with this in mind and the css pseudo element :hover, this effect can be acheived just using css!
I made 3 images.
downArrow.png - 18x9 pixels, copied from linked image, white pixels made transparent
unselectedBG.png - 1x53pixels, top44 pixels=gradient, bottom 9 pixels transparent
selectedBG.png - as above with different gradient
The trick is to ensure that your element will be high enough to hold the arrow below your content.
Since I don't know of a way to do this, I've simply made the elements 9 pixels higher than the background gradients. When I draw them, the page background color/image shows through. When I draw the down arrow, I simply position it at the very bottom of the element and about 10pixels to the right.
I've used padding to make the li elements high enough, there's bound to be a better way than this.
S.
<html>
<head>
<style>
li{
color: white;
background: url(unselectedbg.png);;
padding-left: 5px;
padding-right: 20px;
display: inline;
padding-top: 10px;
padding-bottom: 23px;
}
li:hover{
color: #7cd554;
background: url(downArrow.png) no-repeat 10 43, url(selectedbg.png) repeat-x;
}
</style>
</head>
<body>
<ul>
<li>RERPORTS AND SEARCHES</li>
<li>HELP</li>
</ul>
</body>
</html>
|
|
|
|
|
Thanks, exactly what I was looking for. Didn't know you could position a background image.
Just BTW, what I did in the mean time was just add a coloured underline to the selected image, so repeat was OK.
|
|
|
|
|
h1.fontface {font: 60px/68px 'ScriptinaRegular', Arial, sans-serif;letter-spacing: 0;}
p.style1 {font: 18px/27px 'Scriptina-AlternatesRegular', Arial, sans-serif;}
p.style2 {font: 18px/27px 'ScriptinaRegular', Arial, sans-serif;color:red;}
mainly I am speaking about the 60px/68px and the 18px/27px. I do not recall seeing this before and was not successful in a google search...anyboby?
Chris J
www.redash.org
|
|
|
|
|