|
Blumen wrote: Does tableless html design means using DIVs with the help of CSS?
Almost. It rather means that you use CSS to style the html elements that are appropriate for what you want to do. That element could even be a table, if you actually want to display a table on the page.
Using tables to do layout once revolutionised the web design. However, that was about fifteen years ago, and the technology has moved on since then.
Here is a good example:
css Zen Garden: The Beauty in CSS Design[^]
I have found these useful for understanding how CSS works:
Selectutorial[^]
Floatutorial[^]
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thank you Guffa
“The thing for you is a burial permit. You have only to speak and I will see that you get it.”
|
|
|
|
|
Adding to what Guffa said,
Pages designed using tables are slow to render than the one developed using DIVs and CSS. Many websites will have a main table which contains all the contents of that page. This is slow because browser can render the content only after getting the closing node which it gets at the end of page.
Use DIVs and CSS for design doesn't mean that you have to avoid tables completly. Tables should be used for what it is created for. If you are using tables for designing, use small tables instead of wrapping everything in a single table.
This[^] site has good beginer level tutorials.
|
|
|
|
|
Thank you
“The thing for you is a burial permit. You have only to speak and I will see that you get it.”
|
|
|
|
|
In addition to what the others have said, I've personally found going table-less involves a lot of pain, suffering and cursing at various browsers. I've attempted it many times and went back to tables, for sanity's sake. The new specs hold promise, but we'll have to see how each browser handles them.
Just my 2 cents.
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
Steve Echols wrote: I've personally found going table-less involves a lot of pain, suffering
Exactly. I tried to CSS based design but found that it was very difficult. Most of the websites still use table based design. I checked Microsoft home page using firebug, they have DIV based design.
“The thing for you is a burial permit. You have only to speak and I will see that you get it.”
|
|
|
|
|
Yeah, it's frustrating because I know it can be done, but it just seems like hypocrisy from the people saying you shouldn't use tables, and suggest instead that you use mind bending css hacks to accomplish the same thing. I choose the route that makes sense to me (grids) and what I know works, for right or wrong, and wait for the w3c get their act together (like that'll ever happen).
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
Steve Echols wrote: I choose the route that makes sense to me (grids) and what I know works
What is that route?
“The thing for you is a burial permit. You have only to speak and I will see that you get it.”
|
|
|
|
|
Hello,
I have a requirement to create new forms at run time based on user's request. Web site has a collection of web forms added to it already. The requirement is that the user can add a new page and personalize his new page using the controls collection avaiable to him in the design page. Later that new page should be saved and it should be displayed when requested. Is there a way to do it?
Thanks,
Pluto.
modified on Saturday, November 1, 2008 9:13 AM
|
|
|
|
|
it is better to generate the controls dynamically
than creating a new page alltogether
otherwise you have to compile a new page and it may add lot of complexity to your application
Thanks & Regards
Pete
|
|
|
|
|
I'd be inclined to store an XML representation of the page they want (or even the raw XHTML / HTML), and then use a single "User" page which is capable of rendering any of the "defined" pages....
C# has already designed away most of the tedium of C++.
|
|
|
|
|
I have a SharePoint Web Part that uses Office Interop to process Word documents. The Web Part functions well to enumerate the documents in the various document repositories but when documents are selected for Interop processing there are permission problems with accessing the Interop module (Microsoft.Office.Interop.Word.dll).
I tried to get around this by executing that portion of the processing using the RunWithElevatedPrivileges method.
I set COM privileges (both Access Permissions and Launch and Activation Permissions) for NETWORK SERVICE in the component services manager, but now I get a browser authentication error because the user has changed and has not been authenticated.
Does anyone know how I can get the browser to authenticate NETWORK SERVICE temporarily? I still need the original user to be authenticated because after processing the document the user needs to interact with the Web Part.
|
|
|
|
|
Hi,
I am working in asp.net 2.0. I have create web service in my website.
my doubt is i have use this web service in my another website or Not.
Please send replay.
Thanks.
|
|
|
|
|
I could not get your question. clearly explain what is your requirement.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
A webservice can be called from any websites.
|
|
|
|
|
Hi Shanthi,
Once a Web Service is made then it can be accessible from any application depending upon the bussiness policies and security issues.
Either you love IT or leave IT...
|
|
|
|
|
Hi
I am sending mails to a yahoo id but mail not getting deliverd and it stays in my Queue folder in wwwroot but same mail is getting deliverd to gmail email ids. i do know why this is happening.
Following is the code
Dim mTo, mFrom, mCc, mBcc, mSubject, mMsg, mServer, mAuth As String
Dim mPort As Integer
mFrom = "xxxx@yahoo.com"
mTo = "xxxx@yahoo.com"
mCc = "xxxx@gmail.com"
'mBcc = ""
mServer = "192.180.0.4"
mPort = CInt("25")
mAuth = "LOCALHOST"
mSubject = "asdasd"
Dim strBody As String
strBody = "<table cellpadding="0" cellspacing="0" bgcolor="#c1c1c1" align="center" width="100%" border="0">"
strBody &= "<tr>"
strBody &= "<td align="center">"
strBody = "<table cellpadding="0" cellspacing="0" align="center" width="600" height="703" border="0">"
strBody &= "<tr>"
strBody &= "<td align="center"><img alt="" hspace="0" src="" cid:imageid="" align="middle" border="0" xmlns:cid="#unknown"></img></td>"
strBody &= "</tr>"
strBody &= "</table>"
strBody &= "</td>"
strBody &= "</tr>"
strBody &= "</table>"
mMsg = strBody
Dim mail As New System.Net.Mail.MailMessage(mFrom, mTo, mSubject, mMsg)
mail.IsBodyHtml = True
mail.Priority = MailPriority.Normal
Dim htmlView As Net.Mail.AlternateView = Net.Mail.AlternateView.CreateAlternateViewFromString(strBody, Nothing, "text/html")
Dim imagelink As New Net.Mail.LinkedResource(Server.MapPath(".") + "\pic.jpeg", "image/jpg")
imagelink.ContentId = "imageId"
imagelink.TransferEncoding = System.Net.Mime.TransferEncoding.Base64
htmlView.LinkedResources.Add(imagelink)
mail.AlternateViews.Add(htmlView)
'Dim mySmtpClient As New Net.Mail.SmtpClient()
Dim mySmtpClient As New Net.Mail.SmtpClient(mServer)
If mAuth.ToUpper = "LOCAL" Then
mySmtpClient.Port = mPort
mySmtpClient.Host = mServer
Dim configurationFile As Configuration = WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath) ' or try
Dim mailSettings As Net.Configuration.MailSettingsSectionGroup = configurationFile.GetSectionGroup("system.net/mailSettings")
Dim credential As New System.Net.NetworkCredential(mailSettings.Smtp.Network.UserName, mailSettings.Smtp.Network.Password)
mySmtpClient.Credentials = credential
ElseIf mAuth.ToUpper = "LOCALHOST" Then
mySmtpClient.Port = mPort
mySmtpClient.Host = "LOCALHOST"
mySmtpClient.UseDefaultCredentials = True
Else
Dim basicAuthenticationInfo As New System.Net.NetworkCredential("asdasd@yahoo.com", "asdasd", "smtp.yahoo.com")
mySmtpClient.UseDefaultCredentials = False
mySmtpClient.Credentials = basicAuthenticationInfo
End If
mySmtpClient.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis
mySmtpClient.Send(mail)
|
|
|
|
|
Your post is broken. Consider fixing it.
|
|
|
|
|
Try this
using System.Net.Mail;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnSend_Click(object sender, EventArgs e)
{
System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(txtTo.Text, txtFrom.Text,txtSubject.Text, txtContent.Value);
System.Net.NetworkCredential mailAuthentication = new System.Net.NetworkCredential("EMAIL ID", "PASSWORD");
System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient("smtp.gmail.com", 587);
mailClient.EnableSsl = true;
mailClient.UseDefaultCredentials = false;
mailClient.Credentials = mailAuthentication;
mailClient.Send(mail);
}
}
|
|
|
|
|
HI
Thanks for reply and working and receving mail to hotmail and yahoo email Ids and having i am trying for sending embed mails and say you the result.
|
|
|
|
|
Hi
It worked out for embed mails too and following is the coding but my table will have 1000 mail ids and if i send mail then it is taking 5 min time for sending 12 email id's and if i give for 1000 mails then i am not sure it will work or not . is there any way to send 50 mails and then 50 mails and then so on too 1000 mails or any other way to speedy the process of sending
protected void Page_Load(object sender, EventArgs e)
{
try
{
SqlConnection _oSqlconn;
SqlCommand _oSqlCmd;
SqlDataAdapter _oAdapt = new SqlDataAdapter();
DataTable DT;
DT = new DataTable();
string Sqlstr;
_oSqlconn = new SqlConnection(ConfigurationManager.AppSettings["Test"]);
_oSqlconn.Open();
Sqlstr = "select cEmail_id1 from Master_Contacts";
_oSqlCmd = new SqlCommand(Sqlstr, _oSqlconn);
_oSqlCmd.CommandType = CommandType.Text;
_oAdapt.SelectCommand = _oSqlCmd;
_oAdapt.Fill(DT);
_oSqlconn.Close();
if (DT.Rows.Count>0)
{
for (int i = 0; i <= DT.Rows.Count - 1; i++)
{
string Body;
AlternateView htmlIV;
Body = "<table cellpadding="0" cellspacing="0" bgcolor="#c1c1c1" align="center" width="100%" border="0">";
Body += "<td align="center">";
Body += "<table cellpadding="0" cellspacing="0" align="center" width="600" height="703" border="0">";
Body += "<tr>";
Body += "<td align="center"><img alt="" hspace="0" src="cid:imageId" align="middle" border="0"></img></td>";
Body += "</tr>";
Body += "</table>";
Body += "</td>";
Body += "";
Body += "</table>";
htmlIV = System.Net.Mail.AlternateView.CreateAlternateViewFromString(Body, null, "text/html");
System.Net.Mail.LinkedResource imagelink = new System.Net.Mail.LinkedResource(Server.MapPath(".") + "\\images\\S.jpg", "image/jpeg");
imagelink.ContentId = "imageId";
imagelink.TransferEncoding = System.Net.Mime.TransferEncoding.Base64;
htmlIV.LinkedResources.Add(imagelink);
System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage("sathimailin@yahoo.com", Convert.ToString(DT.Rows[i]["cEmail_id1"]), ConfigurationManager.AppSettings["Subj"], Body);
mail.AlternateViews.Add(htmlIV);
System.Net.NetworkCredential mailAuthentication = new System.Net.NetworkCredential(ConfigurationManager.AppSettings["MailID"], ConfigurationManager.AppSettings["Pass"]);
System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient("smtp.gmail.com", 25);
mailClient.EnableSsl = true;
mailClient.UseDefaultCredentials = false;
mailClient.Credentials = mailAuthentication;
mailClient.Send(mail);
}
}
}
catch (Exception a)
{
a.Message.ToString();
}
}
|
|
|
|
|
I have one doubt that i have one small project(web application) called "internetbanking" then i want to work with that project so how to execute that project by adding to my solution can you please provide me detailed description.
Thanks in advance..
|
|
|
|
|
Why you have created New Post?
You should continue it in the previous thread itself.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Whenever you have created a project, a new solution file will be created. So, there is no need to create a solution and add the project to it.
Either you love IT or leave IT...
|
|
|
|
|
As i have a small doubt that in the VS.Net 2005 IDE how to create the solution for the project. Can anyone provide detailed explanation on this coz i am new to .net. Provide with example.
Thanks in advance...
|
|
|
|