|
prathapcode wrote: What is difference between Proffesional and standard editions of visual studio
Lots of bells and whistles, but nothing that would stop you developing or publishing a website.
prathapcode wrote: And now coming to SQL server whether licensed key is required?
That's a whole different question. However, most webhosts provide a SQL Server database as part of their package, so you don't need to buy anything there, unless you are self hosting the site.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi
in below code value of fontName is 'Lucida Console'
BaseFont baseFont = BaseFont.CreateFont(fontName.ToString(), Encoding.ASCII.EncodingName, false);
I'm getting error while executing above code written in asp.net written below:
'Lucida Console' with 'US-ASCII' is not recognized.
thanks
You get the best out of others when you give the best of yourself.
modified on Friday, November 6, 2009 9:36 AM
|
|
|
|
|
What is the steps of web-based payments processing system like e-shoping.
Actually I am asking to provide me some tips on security, standardizing or any relative issue.
|
|
|
|
|
You can find many by googling. First do that and choose which one to use and if've you problem in that we're here to help
|
|
|
|
|
How can send mail other email address.?
Ankur Tyagi ji
|
|
|
|
|
Take the subject of your post and run it in google, you will get thousands of hits, many with example code.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Here is the routine I use:
public static void SendUserEmail(MembershipUser mu, string body, string subject, string from)
{
if (string.IsNullOrEmpty(from))
{
from = "NoReply";
}
try
{
MailMessage mail = new MailMessage();
mail.Body = body;
mail.IsBodyHtml = true;
mail.To.Add(new MailAddress(mu.Email));
mail.From = new MailAddress(from + strEmailAccountBase, from + strEmailAccountBase, Encoding.UTF8);
mail.Subject = subject;
mail.SubjectEncoding = Encoding.UTF8;
mail.Priority = MailPriority.Normal;
SmtpClient smtp = new SmtpClient();
smtp.Host = ConfigurationManager.ConnectionStrings["EmailProvider"].ConnectionString;
NetworkCredential nc = GetEmailCredentials();
if (nc != null)
{
smtp.Credentials = nc;
}
else
{
}
smtp.Send(mail);
}
catch (Exception ex)
{
throw new ApplicationException("Could not send email", ex);
}
}
Your web.config connection string entry should be along the lines of:
<add name="EmailProvider" connectionString="smtp.YOURMAILPROVIDER.COM"/>
GetEmailCredentials you will have to write yourself; if your host does not require credentials then just return null.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I am using a telerik tabstrip. After i edit or perform button click etc it doesn't refresh the tab and doesn't display the recent changes. So every time i make any change i have to refresh the browser and then go back to that tab and see the changes.
What would be the best way to refresh the tab automatically after any activity performed within the tab(add/edit/delete)so that it shows me latest change plus it should be pointing to the right tab after refresh.
Thank You
Andyyy
|
|
|
|
|
AndyInUK wrote: I am using a telerik tabstrip
You Better Ask them rather than posting it here..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
HI Experts,
The output of my code is not coming in tabular way,which i want to display it in table form..
already i have written code for that...
For referance please see the code below....
<br />
<br />
StringBuilder strHTMLContent = new StringBuilder();<br />
<br />
cmd = new SqlCommand("select * from Area ", sqlcon);<br />
sqlcon.Open();<br />
SqlDataReader odr = cmd.ExecuteReader();<br />
while (odr.Read())<br />
{<br />
strHTMLContent.Append("<table align='Center'>".ToString());<br />
strHTMLContent.Append("<tr>".ToString());<br />
strHTMLContent.Append("<td style='width: 300px'></td>".ToString());<br />
<br />
strHTMLContent.Append(odr["AreaId"].ToString());<br />
strHTMLContent.Append(odr["AreaCode"].ToString());<br />
strHTMLContent.Append(odr["AreaDesc"].ToString());<br />
<br />
<br />
strHTMLContent.Append("</tr>".ToString());<br />
strHTMLContent.Append("</table>".ToString());<br />
strHTMLContent.Append("<br><br>".ToString());<br />
}<br />
sqlcon.Close();<br />
<br />
strHTMLContent.Append("<p align='Center'> Note : This is dynamically generated HTML document </p>".ToString());<br />
<br />
<br />
HttpContext.Current.Response.Write(strHTMLContent);<br />
<br />
|
|
|
|
|
for lines where your dynamically adding the values of the database, use the ToString() method, but not for the literals:
rhtbhegade wrote:
strHTMLContent.Append("<table align='Center'>".ToString());
strHTMLContent.Append("<tr>".ToString());
strHTMLContent.Append("<td style='width: 300px'></td>".ToString());
should read:
strHTMLContent.Append("<table align='Center'>");
strHTMLContent.Append("<tr>");
strHTMLContent.Append("<td style='width: 300px'></td>");
Then at the very end of the once your datareader is finished, convert the string builder to a sting.
HttpContext.Current.Response.Write(strHTMLContent.ToString());
Hope this helps!
[update] You'll also want to inject the dynamic stuff inside the table data elements:
strHTMLContent.Append("<table align='Center'><tr>");
strHTMLContent.Append("<td style='width: 300px'>" + odr["AreaId"].ToString() + "</td>");
that's probably most likely why it's not coming out in the 'grid' form you were expecting.
Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.
modified on Friday, November 6, 2009 3:14 PM
|
|
|
|
|
Thanks Expert......very much..
|
|
|
|
|
rhtbhegade wrote: Thanks Expert......very much
You have to mark it as answer..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
hi
I got this code from googling
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.pstrength-min.1.2.js">
</script>
<script type="text/javascript">
$(function() {
$('.password').pstrength();
});
</script>
and css :
.password {
font-size : 12px;
border : 1px solid #cc9933;
width : 200px;
font-family : arial, sans-serif;
}
.pstrength-minchar {
font-size : 10px;
}
but function in script is not working
plz help....
|
|
|
|
|
bhavnvyas wrote: // adjust the path as is required
</blockquote>
Have You place the .js files in the specified folder..!
What r u trying to do..!
R u checking the min length of the password..!if so use Validator controls..!
<div class="ForumSig"><small>
LatestArticle :<a href="http://www.codeproject.com/KB/aspnet/ConfigureLog4net.aspx">Log4Net</a></small>
Why Do Some People Forget To Mark as Answer .If It Helps.</div>
|
|
|
|
|
hi sashidhar
no I am using this script for password strength.
path is ok but i think $ funcition () is not working....if possible can u plz explain me "$" thing........
|
|
|
|
|
AFAIK There isnt a code in there to work
What r u trying to do..! I can give other way to work
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
I am using jquery for password strength meter in my app but function
.pstrength();
is not working....
my password field control:
<INPUT class="password" type=password name="Password">
|
|
|
|
|
|
|
i have to use java script password strength its our project req....
|
|
|
|
|
Give Me some time i will check the code its working or not
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
ok thnx for helping buddy...
|
|
|
|
|
try like this.
On the Head Section Above..!Add this..!
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.pstrength-min.1.2.js">
</script>
<script type="text/javascript">
$(function() {
$('.password').pstrength();
});
</script>
In Css Add the Following code..!
.password {
font-size : 12px;
border : 1px solid #cc9933;
width : 200px;
font-family : arial, sans-serif;
}
.pstrength-minchar {
font-size : 10px;
}
drag and drop the css page on the head section..!
add the following html
<asp:TextBox ID="Password" runat="server" CssClass="password"
TextMode="Password"></asp:TextBox>
Now In the solution Explorer create a folder js and paste the two .js files in the js folder
Now it will work..!
ALll the best..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|