16,012,025 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 nityasri (Top 36 by date)
nityasri
22-Mar-13 20:55pm
View
thank you
nityasri
17-Mar-13 10:05am
View
@ prasad..its working good now..thank you
nityasri
12-Mar-13 12:46pm
View
thanks a lot manoj
nityasri
15-Feb-13 11:39am
View
@chris...thanks a lot sir...
nityasri
29-Jan-13 20:44pm
View
thank a lot yaar
nityasri
29-Jan-13 19:34pm
View
ok sir..sorry
nityasri
29-Jan-13 19:34pm
View
no error in DB update statement...when i write update query in database it executes (updates) properly...but from the form that is from text box it is not getting updated to database
nityasri
1-Jan-13 12:51pm
View
alright sir thank you
nityasri
1-Jan-13 11:46am
View
i tried the above code if (confirm('Message')) {
window.location = "ConfirmPage.aspx";
}
but its not working may be i am missing some namespace i think..what namespace should we use here.sir
nityasri
29-Dec-12 4:05am
View
thanks a lot yaar...problem solved:)
nityasri
29-Dec-12 4:02am
View
thank u griff
nityasri
29-Dec-12 3:53am
View
what namespace we have to use here sir?
nityasri
28-Dec-12 12:08pm
View
@andreas thanks
nityasri
28-Dec-12 11:53am
View
@krunal..thanks
nityasri
13-Dec-12 12:46pm
View
@wmdroshan thanks for guiding me
nityasri
13-Dec-12 12:43pm
View
thanks yaar
nityasri
13-Dec-12 12:36pm
View
@griff thank u
nityasri
13-Dec-12 12:36pm
View
@amit thank u
nityasri
13-Dec-12 12:00pm
View
try
{
string myString = txtEmail.Text.ToString();
string result1 = myString.Split('@')[1];---->i m getting the error here as index was outside the bounds of array
nityasri
13-Dec-12 11:57am
View
s sure..
nityasri
10-Dec-12 6:50am
View
This is were i am getting the error...
protected void btnSubscribe_Click(object sender, EventArgs e)
{
string arrvalues = null;
for (int i = 0; i < CBL1.Items.Count ; i++)
{
if (CBL1.Items[i].Selected)
{
arrvalues = arrvalues + CBL1.Items[i].Value + ",";
}
}
if (arrvalues==null)
{
}
else
{
if (arrvalues.EndsWith(","))
{
arrvalues = arrvalues.Remove(arrvalues.Length - 1, 1);
}
My_Util Util = new My_Util();
DataSet ds;
ds = Util.CheckusernameMail(txtEmail.Text.Trim());
if (ds.Tables[0].Rows.Count > 0)
{
//My_Util Util = new My_Util();
Util.SetConnection();
Util.sql_con.Open();
SqlCommand cmd;
// cmd = new SqlCommand("insert into offsale.OS_Mailinglist1(UserName,Area_of_interest,Mail_Pwd)values('" + txtEmail.Text.ToString() + "' ,'" + arrvalues + "','" + pwd.ToString() + "')", Util.sql_con);
cmd = new SqlCommand("update offsale.OS_Mailinglist1 set Area_Of_Interest='" + arrvalues + "' where UserName='" + txtEmail.Text.ToString() + "'", Util.sql_con);
cmd.ExecuteNonQuery();
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Area of Interest Updated Successfully');", true);
Util.sql_con.Close();
foreach (ListItem item in CBL1.Items)
{
if (item.Selected == true)
{
item.Selected = false;
}
}
txtEmail.Text = "";
Label1.Visible = false;
passwrd.Visible = false;
btnSend.Enabled = true;
btnSubscribe.Enabled = false;
}
else
{
Util.SetConnection();
Util.sql_con.Open();
cmd = new SqlCommand("insert into offsale.OS_Mailinglist1(UserName,Area_Of_Interest,Mail_Pwd)values('" + txtEmail.Text.ToString() + "' ,'" + arrvalues + "','" + ViewState["pwd"].ToString () + "')", Util.sql_con);
// cmd = new SqlCommand("insert into offsale.OS_Mailinglist1(UserName,Area_of_interest,Mail_Pwd)values('" + txtEmail.Text.ToString() + "' ,'" + arrvalues + "','" + passwrd.Text.ToString () + "')", Util.sql_con);
cmd.ExecuteNonQuery();
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Successsfully Registered your Email ID and Area of interest.');", true);
//ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Register your Password to MailingList')", true);
// return;
Util.sql_con.Close();
foreach (ListItem item in CBL1.Items)
{
if (item.Selected == true)
{
item.Selected = false;
}
}
txtEmail.Text = "";
Label1.Visible =false ;
passwrd.Visible =false ;
btnSend.Enabled = true;
Label2.Visible = true;
Label2.Text = "Please select your Area of Interest & Subscribe";
btnSubscribe.Enabled = false;
}
}
}
nityasri
10-Dec-12 6:35am
View
@kiran thank u
nityasri
10-Dec-12 6:35am
View
@ankit..thanks a lot
nityasri
19-Nov-12 3:57am
View
i didn't try ..i dont know how to use the code for it
nityasri
18-Nov-12 10:43am
View
@griff..thank u
nityasri
18-Nov-12 10:40am
View
ok..thanks
nityasri
17-Nov-12 2:36am
View
@original griff...we are using it in a mobile web application...
nityasri
17-Nov-12 2:34am
View
DropDownList1.Items.Add(ds.Tables(0).Rows(i).Item(0))
nityasri
17-Nov-12 2:23am
View
@krunal....in dataset i am getting error...
nityasri
12-Nov-12 2:52am
View
m sorry...yes, sql server
nityasri
12-Nov-12 2:00am
View
i am not able to insert the data in to the database it is showing the below mentioned error as:
error:cannot find the object "timeticket_fullCT"because it does not exist or you dont have permissions.
what is the solution for this????
nityasri
9-Nov-12 23:05pm
View
hi friend tell me sql server problem
nityasri
6-Nov-12 0:09am
View
actually the session given in third line is given in new user registration page...so that the name given in text box of register page will be defaultly thrown rite...so i used that
nityasri
1-Nov-12 11:01am
View
@soumen...thanks a lot
nityasri
1-Nov-12 5:49am
View
but i use validate function(like phone number checking) also in this registration form ..so if i click submit button will the validate function will be carried out or the confirm box function will be carried out?..please help me knw ...
nityasri
1-Nov-12 0:48am
View
thank you
Show More