|
Where is your code that you are using to validate? Could you post it so someone could help you?
I didn't get any requirements for the signature
|
|
|
|
|
this is my code
function check_it() {
var theurl=document.myForm.t1.value;
var tomatch= /http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/
if (tomatch.test(theurl))
// if (checkMailId.test(theurl))
{
window.alert("URL OK.");
return true;
}
else
{
window.alert("URL invalid. Try again.");
return false;
}
}
regards
saravanan
|
|
|
|
|
saravanan05 wrote: var tomatch= /http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/
^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}[0-9A-Za-z\.\-]*\.[0-9A-Za-z\.\-]*$
try with this code.
Regards,
Satips.
|
|
|
|
|
|
Where the URL validation is carried out in this link?
Please post the correct link.
Regards,
Satips.
|
|
|
|
|
Hai there,
I'm using database connection in my ASP.NET application without store proceedure. Before each operaion i'm begin the transaction and commit transaction. Connecton open and close everything is fine. But sometime i'm getting TIMEOUT EXPIRED error. Would anyone plz give suggestion
Adv and Thks
Sam.M
|
|
|
|
|
Yeah, set the timeout in your connection string to a longer period of time. Write a more efficient query or add indexes to your tables.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks
Regards n Thks
Sam.M
|
|
|
|
|
Cud any1 tell me how to upload a video file ...
|
|
|
|
|
there is no help for you.
I didn't get any requirements for the signature
|
|
|
|
|
Please make your subject as relavant and post your Questions.
Otherwise no one will help you.
Regards,
Satips.
|
|
|
|
|
Please read the forum guidelines. highlights include:
1. Don't include 'help' or 'urgent' in your message titles.
2. Name your message something meaninfull like 'question about uploading a video file.'
3. Do not use text speak. Please use plain English.
______________________
stuff + cats = awesome
|
|
|
|
|
Hi all,
In order to download file i have written this code
Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment; FileName=" + dt.Tables ["Attachment"].Rows[0]["Attachment_Name"].ToString());
Response.BinaryWrite((Byte[])dt.Tables["Attachment"].Rows[0]["Attachment_File"]);
this code works well with SQL server but does nothing with MS Access. is there any alternative of this code is available or how can i make this code usefull for MS Access... Thanx to all
Regards, Qaiser Nadeem
|
|
|
|
|
Try with this code
Private Sub Page_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Response.ContentType = "application\octet-stream"
Dim filename as string=new string("c:\\downloads\\hi.doc")
Dim downloadFile As System.IO.FileStream = New System.IO.FileStream(filename, IO.FileMode.Open)
Response.Write(downloadFile.Length() & "#")
downloadFile.Close()
Response.WriteFile(filename)
Response.Flush()
Response.End()
End Sub
Regards,
Satips.
|
|
|
|
|
its VB.NET, do u have c# code???
Regards, Qaiser Nadeem
|
|
|
|
|
|
Can anybody let me know the code i've given below is sufficient or not for sending E-Mail on the net
If yes then i would like to tell u that it is not working properly
It is just sending the message "Mail Sent Successfully" as i used for success message but i'm not receiving the mail at my id as i've defined "manoj.manojbisht@gmail.com"
But i'm still confused about "SMTP SERVER" i've kept it blank. Should i use something else if yes plz let me know....................................................................................................................................................
MailMessage mail=new MailMessage();
mail.To="manoj.manojbisht@gmail.com";
mail.From="msb1984_620@yahoo.com";
mail.Subject="Manoj Bisht";
mail.Priority=MailPriority.High;
mail.Body="Hello How R U";
try
{
SmtpMail.SmtpServer="";
SmtpMail.Send(mail);
//Response.Write("Mail Sent Successfully");
lblMsg.Text="Mail Sent Succesffully";
lblMsg.ForeColor=Color.DarkBlue;
}
catch(Exception ex)
{
Response.Write("Message Failed");
}
|
|
|
|
|
Pls check the Spam Folder.
Regards,
Satips.
|
|
|
|
|
SPAM folder is also empty
|
|
|
|
|
Apply Break Point and check it whether it is blocked by your ISP or the code.
Regards,
Satips.
|
|
|
|
|
try
{
string msgBody = "";
string configToAddresses = "";
string[] toAddressesArray;
configToAddresses = ConfigurationManager.AppSettings["MSG_REQUEST_TO_EMAIL_ADDRESS"].Trim();
MailMessage msg = new MailMessage();
msg.From = new MailAddress(ConfigurationManager.AppSettings["MSG_REQUEST_FROM_EMAIL_ADDRESS"].Trim());
toAddressesArray = configToAddresses.Split(';');
// Add to Addresses in email
foreach (string toAddress in toAddressesArray)
{
msg.To.Add(new MailAddress(toAddress));
}
if (ConfigurationManager.AppSettings["MSG_REQUEST_CC_EMAIL_ADDRESS"].Trim().Length > 0)
{
msg.CC.Add(new MailAddress(ConfigurationManager.AppSettings["MSG_REQUEST_CC_EMAIL_ADDRESS"].Trim()));
}
msg.Subject = ConfigurationManager.AppSettings["MSG_REQUEST_EMAIL_SUBJECT"].Trim() + " " + DateTime.Now;
msgBody = ConfigurationManager.AppSettings["MSG_REQUEST_SALUTE_EMAIL"].Trim() + "\r\n\r\n";
msgBody += ConfigurationManager.AppSettings["MSG_REQUEST_EMAIL_BODY_START"].Trim() + " " + this.txtName.Text.Trim() + " (" + this.txtEmail.Text.Trim() + ")";
if (this.txtOrganization.Text.Trim().Length > 0)
{
msgBody += " of " + this.txtOrganization.Text.Trim();
}
msgBody += " on " + DateTime.Now + ". ";
msgBody += ConfigurationManager.AppSettings["MSG_REQUEST_EMAIL_BODY_MIDDLE"].Trim() + "\r\n\r\n";
msgBody += ConfigurationManager.AppSettings["MSG_REQUEST_SIGNATURE_EMAIL_URL"].Trim() + "\r\n\r\n";
msgBody += ConfigurationManager.AppSettings["MSG_REQUEST_SIGNATURE_EMAIL"].Trim() + "\r\n\r\n";
msgBody += ConfigurationManager.AppSettings["MSG_REQUEST_SIGNATURE_EMAIL_TEAM"].Trim() + "\r\n";
msgBody += ConfigurationManager.AppSettings["MSG_REQUEST_SIGNATURE_EMAIL_TEAM_URL"].Trim();
msg.Body = msgBody;
SmtpClient client = new SmtpClient();
client.Host = ConfigurationManager.AppSettings["SMTP_HOST"];
client.Port = int.Parse(ConfigurationManager.AppSettings["SMTP_PORT"]);
client.Send(msg);
}
catch (System.Threading.ThreadAbortException ex) { }
catch (Exception ex)
{
ConfigurationManager.AppSettings["DEFAULT_MESSAGE"] = ex.ToString();
Response.Redirect("Message.aspx");
}
Regards, Qaiser Nadeem
|
|
|
|
|
Sir the code u sent me is it running properly i mean.
Will i have to make any changes in web.config file
If yes plz let me know I'm waiting for response by ur side
|
|
|
|
|
yes, yes, its working properly, but you have to define the msgs in web.config
Regards, Qaiser Nadeem
|
|
|
|
|
should i send u the web msgs????
Regards, Qaiser Nadeem
|
|
|
|
|
yes plz send the web.config code too
|
|
|
|