15,918,808 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 Python 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 sanjaysgh (Top 60 by date)
sanjaysgh
4-May-17 8:33am
View
I want to call a function using this tag
sanjaysgh
4-May-17 8:32am
View
This is my string
string _alink =<a href='#' id='textcc' onClick='test'>Add Title</a>
sanjaysgh
4-May-17 8:31am
View
Deleted
THis is my string
string _alink =
Add Title
sanjaysgh
4-May-17 8:30am
View
This example is not working for me, do you have any other idea ...
sanjaysgh
4-May-17 8:28am
View
This is not working...
sanjaysgh
18-Feb-15 8:52am
View
where to call this function
sanjaysgh
26-Nov-14 3:54am
View
ie11
sanjaysgh
30-Oct-14 10:00am
View
yes i am sure no space is there
sanjaysgh
30-Oct-14 9:51am
View
tabtype contain 5,7,11
sanjaysgh
30-Oct-14 7:55am
View
and How to loop it
sanjaysgh
30-Oct-14 7:54am
View
,7,8,11
sanjaysgh
30-Oct-14 7:46am
View
Its not working
sanjaysgh
9-Oct-14 6:36am
View
provide any solution
sanjaysgh
9-Oct-14 6:30am
View
it is inside grid
sanjaysgh
6-Oct-14 1:02am
View
sir its not working still i am getting syntax error
sanjaysgh
18-Sep-14 6:35am
View
It is not working
sanjaysgh
18-Sep-14 5:23am
View
id like
08SANJAY3001
08SANJAY3002
08SANJAY3003
sanjaysgh
10-Sep-14 3:10am
View
i want date in 2014/12/10 4:39 PM this format
sanjaysgh
20-Jun-14 5:02am
View
i want validate atleast one textbox to search record
sanjaysgh
20-Jun-14 1:18am
View
yes
sanjaysgh
28-May-14 6:59am
View
Deleted
my return this output
srno uni_name director contyname uni_id org_id mou_sing pro_mous numberofstudent
101 IIT sanjay Norway 91 04 yes No 5
101 IIT sanjay Finland 91 04 No Yes 3
and i want result like
srno uni_name director Norway Finland numberofstudent
101 IIT sanjay value of mou_sign(yes) value of mou_sign(yes) 5 , 3
sanjaysgh
20-May-14 5:51am
View
its not working
sanjaysgh
12-May-14 5:28am
View
but sir i want to fetch both column from sub query is it possible
sanjaysgh
1-May-14 4:57am
View
tnak u sir its working fine thanks a lot
sanjaysgh
1-May-14 4:40am
View
sir its working but number is not incresing like 1,2,3 still getting srno like 1,2,2,2,...
plz help
sanjaysgh
22-Apr-14 5:57am
View
sir it not running i tried after sometimes.
sanjaysgh
3-Mar-14 3:04am
View
in da.fill(ds);
sanjaysgh
3-Mar-14 3:04am
View
sir i am getting error at this location
public static DataSet ExecuteDataset(SqlConnection connection, CommandType commandType, string commandText, params SqlParameter[] commandParameters)
{
//create a command and prepare it for execution
SqlCommand cmd = new SqlCommand();
PrepareCommand(cmd, connection, (SqlTransaction)null, commandType, commandText, commandParameters);
//create the DataAdapter & DataSet
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
//fill the DataSet using default values for DataTable names, etc.
da.Fill(ds);
// detach the SqlParameters from the command object, so they can be used again.
cmd.Parameters.Clear();
//return the dataset
return ds;
}
sanjaysgh
11-Feb-14 7:26am
View
my take varchar(1000)
sanjaysgh
7-Jan-14 6:15am
View
i mean i have web service already and i am using it for another application but now i want to use the same service for third application thn how can i do this ...
sanjaysgh
2-Nov-13 7:59am
View
thanxs Tadit sir
sanjaysgh
2-Nov-13 7:57am
View
sir i did it by mistake now i accept ur answer again
sanjaysgh
29-Oct-13 4:00am
View
sir in txtSadate.text i am getting {30-10-2013 00:00:00} and after this DateR2 i am getting {01-01-0001 00:00:00}
sanjaysgh
29-Oct-13 3:46am
View
i am getting error in
DateTime DateR2 = Convert.ToDateTime(dt.ToString(), System.Globalization.CultureInfo.CreateSpecificCulture("en-US").DateTimeFormat);
line
sanjaysgh
29-Oct-13 3:41am
View
i am getting in txtSdate.text is {30-10-2013 00:00:00}
sanjaysgh
29-Oct-13 3:40am
View
date is in mm/dd/yyyy format
sanjaysgh
28-Oct-13 6:47am
View
not clear...
sanjaysgh
28-Oct-13 6:47am
View
thanx
sanjaysgh
28-Oct-13 1:21am
View
i mean how to page automatically redirect on login page if session time expired
sanjaysgh
26-Oct-13 7:05am
View
i paste the code above
sanjaysgh
26-Oct-13 7:04am
View
Deleted
<script type="text/javascript"> function openEditorWindow(forumID) { var oReadingWnd = radopen("~/AddArchives.aspx?id=" + forumID); oReadingWnd.Center(); } </script> <script type="text/javascript"> function GetTextBoxValue() { var hyp = document.getElementById('<%= JournalName.ClientID %>'); var hyp1 = document.getElementById('<%= hplAddAcrhives.ClientID %>'); //alert(hyp.innerHTML + 'su' + hyp.innerText); hyp.innerHTML = 'New Text'; //alert(hyp.innerHTML); hyp1.href = 'AddArchives.aspx?JournalName=' + (hyp.value); }
sanjaysgh
26-Oct-13 7:01am
View
my problem is that when i try to validate login form it's not validating
sanjaysgh
26-Oct-13 6:59am
View
and my code is
<script type="text/javascript">
function openEditorWindow(forumID) {
var oReadingWnd = radopen("~/AddArchives.aspx?id=" + forumID);
oReadingWnd.Center();
}
</script>
<script type="text/javascript">
function GetTextBoxValue() {
var hyp = document.getElementById('<%= JournalName.ClientID %>');
var hyp1 = document.getElementById('<%= hplAddAcrhives.ClientID %>');
//alert(hyp.innerHTML + 'su' + hyp.innerText);
hyp.innerHTML = 'New Text';
//alert(hyp.innerHTML);
hyp1.href = 'AddArchives.aspx?JournalName=' + (hyp.value);
}
sanjaysgh
26-Oct-13 6:59am
View
but i am trying to passs string through Javascript
sanjaysgh
26-Oct-13 6:55am
View
ok
sanjaysgh
26-Oct-13 6:54am
View
ok...
sanjaysgh
26-Oct-13 6:42am
View
sir it is not working
sanjaysgh
26-Oct-13 6:35am
View
ofcourse sir i am using datepicker here
sanjaysgh
26-Oct-13 6:32am
View
actauly is this when i am trying to insert date like 10/25/2013 than getiing error and when i tring to insert 25-10-2013 or 10-25-2013 than it insert successfully.....
sanjaysgh
26-Oct-13 6:32am
View
actauly is this when i am trying to insert date like 10/25/2013 than getiing error and when i tring to insert 25-10-2013 or 10-25-2013 than it insert successfully.....
sanjaysgh
26-Oct-13 6:29am
View
getting error while using tryparse asking for 2 arguments
sanjaysgh
26-Oct-13 6:24am
View
b.Dob = DateTime.Parse(txtdob.Text);
when i debug program i am getting exception that String was not recognized as a valid DateTime.
sanjaysgh
26-Oct-13 6:06am
View
according to condition
sanjaysgh
26-Oct-13 6:06am
View
you have to disable coloum of gridview
sanjaysgh
26-Oct-13 5:56am
View
Deleted
plz help me
sanjaysgh
26-Oct-13 5:55am
View
sir this code is not working
sanjaysgh
26-Oct-13 3:13am
View
here i am getting error :
loginInfo.To.Add(new MailAddress(txtEmail.Text));
sanjaysgh
26-Oct-13 3:10am
View
plz clarify it again....
sanjaysgh
26-Oct-13 3:07am
View
plz help me
sanjaysgh
26-Oct-13 3:05am
View
string strConnection= System.Configuration.ConfigurationManager.ConnectionStrings["MyConnectionString"].ConnectionString;
// string strSelect = "SELECT Username,password FROM registration WHERE emailid = @emailid";
string strSelect = "SELECT name FROM registration WHERE email_id = @email_id";
SqlConnection connection = new SqlConnection(strConnection);
SqlCommand command = new SqlCommand();
command.Connection = connection;
command.CommandType = CommandType.Text;
command.CommandText = strSelect;
//SqlParameter email = new SqlParameter("@emailid", SqlDbType.NVarChar,100);
SqlParameter email = new SqlParameter("@email_id", SqlDbType.VarChar, 100);
email.Value = txtEmail.Text.Trim().ToString();
command.Parameters.Add(email);
DataSet dsPwd = new DataSet();
SqlDataAdapter dAdapter = new SqlDataAdapter(command);
connection.Open();
dAdapter.Fill(dsPwd);
connection.Close();
if(dsPwd.Tables[0].Rows.Count > 0 )
{
MailMessage loginInfo = new MailMessage();
//loginInfo.To.Add(txtEmail.Text.ToString());
loginInfo.To.Add(new MailAddress(txtEmail.Text));
loginInfo.From = new MailAddress("mail@gmail.com");
loginInfo.Subject = "Forgot Password Information";
loginInfo.Body = "Username: " + dsPwd.Tables[0].Rows[0]["Username"] + "<br><br>Password: " + dsPwd.Tables[0].Rows[0]["password"] + "<br><br>";
loginInfo.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com";
smtp.Port = 587;
smtp.EnableSsl = true;
smtp.Credentials = new System.Net.NetworkCredential("mymail@gmail.com", "password");
smtp.Send(loginInfo);
lblmsg.Text ="Password is sent to you email id,you can now
Login
";
}
else
{
lblmsg.Text = "Email Address Not Registered";
}
}
Show More