16,014,662 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by suryaswathi (Top 55 by date)
suryaswathi
20-Sep-11 1:53am
View
in windows application able to create scheduled tasks..becox scheduled tasks need a proj in exe format..in web application what to do?
suryaswathi
14-Sep-11 2:20am
View
public void timerTickEvent(DateTime emailsenddate)
{
UpdatePanel upanel = new UpdatePanel();
System.Timers.Timer time = new System.Timers.Timer();
string TodayDatetime = DateTime.Now.ToLongTimeString();
time.Start();
time.Interval = 600000;
if (DateTime.Now == emailsenddate)
emailSend();
}
In that function i want to modify anything for call emailsend on emailsenddate ehich has date
suryaswathi
14-Sep-11 2:19am
View
public void timerTickEvent(DateTime emailsenddate)
{
UpdatePanel upanel = new UpdatePanel();
System.Timers.Timer time = new System.Timers.Timer();
string TodayDatetime = DateTime.Now.ToLongTimeString();
time.Start();
time.Interval = 600000;
if (DateTime.Now == emailsenddate)
emailSend();
}
is it correct or want o modify for emaildate has date and emailsend was sendmail on the date ..how i have to change
suryaswathi
14-Sep-11 2:01am
View
here i want o use timer know .in ur code where is timer ..where timer tick event everything?
suryaswathi
13-Sep-11 8:17am
View
hi sir i tried the code ..but i dono exactly the program thatsy posted..
suryaswathi
31-Aug-11 3:20am
View
string to = "sugunajcse@yahoo.com;sugunajcse@gmail.com";
if ((to != ""))
{
string[] strToArray;
strToArray = to.Split(';');
int ToInt = strToArray.Length;
int Tocount = 0;
while ((Tocount < ToInt))
{
obj.To.Add(new MailAddress(strToArray[Tocount]));
Tocount = (Tocount + 1);
}
}
that address collection also gives error.am trying like this but in to address
give error
recepient want to spercify like this.
suryaswathi
26-Aug-11 8:06am
View
i tried for yahoo .only yahoo credentials..but the operation has timed out ..i got like this
suryaswathi
26-Aug-11 6:14am
View
sir again one pblm the email send from gmail but not send from yahoo why
i use port 587
suryaswathi
26-Aug-11 5:54am
View
Hi anil kumar sir code working correctly..thanks....able to send mail..
now if i have to address more mean i have to use it array ...
for cc and bcc to address more mean want to use array
how to use in ur coding in this..
suryaswathi
26-Aug-11 4:39am
View
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at
smtp exception was unhandled by user code
i got this error..while trying this code ..how to overcome this error?
suryaswathi
26-Aug-11 3:35am
View
windows 7
suryaswathi
26-Aug-11 3:28am
View
i added the code smtpClient.UseDefaultCredentials = false;
and checked server and id and pwd..but how to check port 587 is blovked in firewall
suryaswathi
26-Aug-11 3:08am
View
i checked everything but am getting same error
suryaswathi
25-Aug-11 5:45am
View
my Ip address is 127.0.0.1
my port no is : 25
that only showing like that ..127.0.0.1:25
suryaswathi
25-Aug-11 2:47am
View
A socket operation was attempted to an unreachable network 127.0.0.1:25
i give correctly..i gave anju@yahoo.com ,****** like that oly credentials i gave i got sending mail failed
suryaswathi
4-Aug-11 3:03am
View
pnlcleintSearch.Controls.Add(btn1);
i added that controls in panel also
suryaswathi
4-Aug-11 2:58am
View
ya controls not go there
suryaswathi
4-Aug-11 2:57am
View
no outside it is seperate function
suryaswathi
3-Aug-11 2:47am
View
"btn.OnClick += new EventHandler(get);"
if i wantt to do like this.
btn does not having onclick property
insted i tried like
btn.Attributes.Add("onclick","get()");
but eventhough if i click the function does not show popup
public void get(object sender, EventArgs e)
{
this.mopopupeditrule.Show();
}
this is my get function
suryaswathi
3-Aug-11 2:40am
View
not able to add onclick to btn ah?how can i call javascript function
suryaswathi
2-Aug-11 4:48am
View
hi how can i add this to my literal.i want to put seperate funcyion and want to call in literal ah?or where i want to add
suryaswathi
20-Jul-11 2:58am
View
hi thanks..its working..thanku very much.
suryaswathi
20-Jul-11 2:37am
View
MResult = MResult.Replace(txtSearch.Text, "<span style=\"color:#c1330e; padding:0px 2px 0px 2px\">" + txtSearch.Text + "</span>");
MResult = MResult.Replace(txtSearch.Text.ToLower(), "<span style=\"color:#c1330e; padding:0px 2px 0px 2px\">" + txtSearch.Text + "</span>");
MResult = MResult.Replace(txtSearch.Text.ToUpper(), "<span style=\"color:#c1330e; padding:0px 2px 0px 2px\">" + txtSearch.Text + "</span>");
//MResult = MResult.Replace(txtSearch.Text, "<span style=\"color:#c1330e; padding:0px 2px 0px 2px\">" + txtSearch.Text + "</span>");
string MResult1 = MResult = MResult.Replace(txtSearch.Text, "<span style=\"color:#c1330e; padding:0px 2px 0px 2px\">" + txtSearch.Text + "</span>");
string search = txtSearch.Text;//"input"
string replaceWith = txtSearch.Text;
MResult = System.Text.RegularExpressions.Regex.Replace(MResult1, search, replaceWith, System.Text.RegularExpressions.RegexOptions.IgnoreCase);
ltrlDataString.Text += MResult;
suryaswathi
20-Jul-11 2:31am
View
its not working
suryaswathi
20-Jul-11 2:08am
View
if i give hurry mean in myresult hurry oly selected .i want to select Hurry also.dis is my pblm
suryaswathi
15-Jul-11 2:50am
View
hi sir
Label addall = e.Row.FindControl(" lbladdall") as Label; //i created one label
string addAll = "";
int i = 1;
foreach (GridViewRow rows in gvRules.Rows)
{
addAll = lbl1.Text + "If" + lbl3.Text + lbl5.Text + lbl6.Text + "then Action " + lbl2.Text;
i++;
}
addAll = addall.Text;
for that label i assing the string but its getting error
suryaswathi
15-Jul-11 2:34am
View
hi thanks its works but i want to display the string in a grid view itself..how to display
suryaswathi
8-Jul-11 5:03am
View
protected void btnConnect_Click(object sender, EventArgs e)
{
try
{
dbquery.getconnection(txtsname.Text, txtuname.Text, txtpwd.Text);
pnlDB.Visible = true;
pnlCN.Visible = true;
ddlDB();
}
catch (Exception ex)
{
lblex.Visible = true;
string p = ex.Message.ToString();
Response.Write("<script language='javascript'>alert(" + p + ")</script>");
lblex.Text = p;
pnlDB.Visible = false;
pnlCN.Visible = true;
}
}
i tried to connect server ..its not correct info it want to show error msg in alert box
serverside
suryaswathi
6-Jul-11 3:10am
View
hello sir
colname data type Null
name varchar NotNull
id int Null
dob datetime notm null
my table mixed up with null and not null..but i want to insert null or blank value to all records in the fields..this is my query
suryaswathi
6-Jul-11 3:04am
View
hello sir
colname data type Null
name varchar NotNull
id int Null
dob datetime notm null
my table mixed up with null and not null..but i want to insert null or blank value to all records in the fields..this is my query
suryaswathi
6-Jul-11 2:47am
View
its give eroor null is non nullable value
suryaswathi
5-Jul-11 2:29am
View
string[] s = MyValue.Split(Environment.NewLine.ToCharArray() );
i changed this line like dis and declared random function by public
if i do like this mean if i want to generate 10 records mean some times it doesnt generate anyrecord it generate oly less than 10.some of them are blank..why like this its generate.
suryaswathi
5-Jul-11 2:28am
View
string[] s = MyValue.Split(Environment.NewLine.ToCharArray() );
i changed this line like dis and declared random function by public
if i do like this mean if i want to generate 10 records mean some times it doesnt generate anyrecord it generate oly less than 10.some of them are blank..why like this its generate
suryaswathi
4-Jul-11 6:19am
View
thanks....
suryaswathi
4-Jul-11 6:16am
View
public DateTime GetRandomDate()
{
DateTime from = new DateTime(1950, 1, 1);
DateTime to = new DateTime(2050, 12, 31);
TimeSpan range = new TimeSpan(to.Ticks - from.Ticks);
return from + new TimeSpan((long)(range.Ticks * rnd.NextDouble()));
}
this is my function ..now its working correct..before that
i didnt give the representation new DateTime in this line
DateTime from = new DateTime(1950, 1, 1);
so that i got error .i gave oly the variable dates
now myself cleared the error
suryaswathi
4-Jul-11 5:52am
View
I tried my function .in that i am getting error..thatsy posted.am also fresher
suryaswathi
1-Jul-11 2:35am
View
In this it return date and time how i can get only date alone sir.
suryaswathi
1-Jul-11 2:33am
View
public DateTime createRandomDate()
{
Random gen = new Random();
int range = 50 * 365; //5 years
DateTime randomDate = DateTime.Today.AddDays(-gen.Next(range));
return randomDate;
}
i did like that ..its return duplicates more how to change
suryaswathi
1-Jul-11 2:08am
View
Hi its working but it generates same date and year more time
duplication occur..how to slove uniqe date
suryaswathi
24-Jun-11 6:02am
View
i want to insert my value in the integer field if its identity and non identity both i want to insert...thers is a possible way to insert?
suryaswathi
24-Jun-11 4:44am
View
is any other way to do this
suryaswathi
24-Jun-11 4:37am
View
i tried eventhough i got same error
suryaswathi
24-Jun-11 4:04am
View
Hi sir i got it the decimal value....now i am using this query
use regimen SET IDENTITY_INSERT data ON insert into data (firstname,lastname,quantity,rollno) values ('tiGzdrVVzyGzHGEOuRPBYwuFZpKaVYqQbSZYsEHyjRKt','PsqAmzUFTW','62313539.54','03615') SET IDENTITY_INSERT data OFF
to insert
but i got error
Arithmetic overflow error converting varchar to data type numeric.
The statement has been terminated.
what i mad mistake
can u say?
suryaswathi
23-Jun-11 8:59am
View
Hi i can able to generate random decimal numbers for same like dis ah?
suryaswathi
23-Jun-11 8:58am
View
Hi very thanks it solved my problem
suryaswathi
23-Jun-11 8:14am
View
this code some time didnt generate any string..it must want to generate atleast two characters say the solution as soon as possible
suryaswathi
23-Jun-11 7:21am
View
private Random randNum = new Random();
public static string createRandomString(int Length)
{
string _allowedChars = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ";
int outputLength = randNum.Next(Length);
char[] chars = new char[outputLength];
for (int i = 0; i < outputLength; i++)
{
chars[i] = _allowedChars[randNum.Next(allowedChars.Length)];
}
return new string(chars);
}
some times this code generate any characters
i gave length 30 records to generate but i didnt give string in some records
why this pblm ? how to rectify? reply
suryaswathi
23-Jun-11 6:48am
View
how to rectify this i want to generate unique number in lenght = 5
suryaswathi
23-Jun-11 6:48am
View
in this
private Random randNum = new Random();
public static string createRandomNumbers()
{
int Length=5;
string _allowedChars = "0123456789";
int outputLength = randNum.Next(Length);
char[] chars = new char[outputLength];
for (int i = 0; i < outputLength; i++)
{
chars[i] = _allowedChars[randNum.Next(allowedChars.Length)];
}
return new string(chars);
}
it didnt take my length and produce duplicate code
suryaswathi
23-Jun-11 3:25am
View
your code is working good sir
in a table in row wise generated different records
in column wise generated same string ...
in single row has all are same string in all fields what i have in my table..
did u understood sir?
that want
suryaswathi
23-Jun-11 2:55am
View
sir thanks lkot.i got different variable lenth string
but again one pblm..in that in a row three field mean the three column in a row i getting same string..the string is unique
how to do..plz reply
suryaswathi
23-Jun-11 2:41am
View
hi i got this error
Index and length must refer to a location within the string.
Parameter name: length
how to rectify
thanks
suryaswathi
23-Jun-11 2:21am
View
I want every time the string want to be generate is different length..
in that i got an error
int outputLength = randNum.NextDouble(1,Length); radnum .NextDouble not takes two arguments nu
wat i want to do
suryaswathi
23-Jun-11 1:54am
View
Hi
i got error in for loop
for (int i = 0; i < randNum.NextDouble(1,Length); i++)
here i got no overload for method NextDounle takes 2 arguments
local variable Random randNum
please say how to rectify
suryaswathi
22-Jun-11 2:07am
View
very thanks really superb..its works good..but i able to insert now in identity field..for that i want to check or want to list the identity fields using query..
is there any query for listing the identity fields alone
Show More