Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 11127370

@User 11127370
About
Posts
62
Topics
58
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error
    U User 11127370

    Hi, I am getting the following error??? Please help??? ERROR: Server Error in '/Online_Book_Shopping' Application. ________________________________________ The remote name could not be resolved: 'smtp.gmail.com' Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The remote name could not be resolved: 'smtp.gmail.com' Source Error: Line 60: smt.Port = 587; Line 61: smt.EnableSsl= true; Line 62: smt.Send(msg);//Error comes in this line of code Line 63: lblmsg.Text = "Username and Password Sent Successfully"; Line 64: lblmsg.ForeColor = System.Drawing.Color.ForestGreen; Source File: e:\Vijaya\Online_Book_Shopping\ForgetPassword.aspx.cs Line: 62 ============================================================================================= Following is the code:- using System.Net; using System.Net.Mail; using System.Drawing; using System.Configuration; using System.Data.SqlClient; using System.Data; public partial class ForgetPassword : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { string username = ""; string password = ""; string constr = ConfigurationManager.ConnectionStrings["CS"].ConnectionString; SqlConnection con = new SqlConnection(constr); { SqlCommand cmd = new SqlCommand("select Name, Password from dbo.RegisteredUsers where Email=@email", con); cmd.Parameters.AddWithValue("Email", txtemail.Text); con.Open(); using (SqlDataReader dr = cmd.ExecuteReader()) { if (dr.Read()) { username = dr["Name"].ToString(); password = dr["Password"].ToString(); } } con.Close(); if (!string.IsNullOrEmpty(username)) { MailMessage msg = new MailMessage(); msg.From = new MailAddress("nilusilu3@gmail.com"); msg.To.Add(txtemail.Text); msg.Subject = " Recover your Password"; msg.Body = ("Your Username is:" + username + "

    " + "Your Pas

    ASP.NET help csharp com graphics design

  • RE-Drop Down List Error
    U User 11127370

    HI, I am getting the following Errors,while inserting drop down list values in sql server database ERROR: Server Error in '/Online_Book_Shopping' Application. Procedure or function 'spRegisteruser' expects parameter '@countryname', which was not supplied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Procedure or function 'spRegisteruser' expects parameter '@countryname', which was not supplied. Source Error: Line 60: cmd.Parameters.Add(password); Line 61: con.Open(); Line 62: int i= cmd.ExecuteNonQuery(); Line 63: con.Close(); Line 64: } Source File: e:\Vijaya\Online_Book_Shopping\SignUp.aspx.cs Line: 62 How to solve this???Please Help??? This is my code: aspx.cs:- protected void btnn_Click(object sender, EventArgs e) { string constr = ConfigurationManager.ConnectionStrings["CS"].ConnectionString; using (SqlConnection con = new SqlConnection(constr)) { SqlCommand cmd = new SqlCommand("spRegisteruser", con); cmd.CommandType = CommandType.StoredProcedure; SqlParameter name = new SqlParameter("@name", txtusername.Text); SqlParameter mobile = new SqlParameter("@mobile", txtmobilenumber.Text); SqlParameter password = new SqlParameter("@password", txtpassword.Text); SqlParameter dropdown = new SqlParameter("@country",DropDownList1.SelectedItem.Value); cmd.Parameters.Add(name); cmd.Parameters.Add(dropdown); cmd.Parameters.Add(mobile); cmd.Parameters.Add(password); con.Open(); int i= cmd.ExecuteNonQuery(); con.Close(); } Sql table:- Create Table dbo.RegisteredUsers ( ID int identity Primary Key, Name nvarchar(20), Country_Name nvarchar(30), Mobile_No bigint, [Password] nvarchar(20) ) Go This is storedprocedure:- Alter Proc spRegisteruser @Name nvarchar(20), @countryname nvarchar(30), @mobile bigint,

    ASP.NET database help sql-server com sysadmin

  • DropDownList
    U User 11127370

    HI, I want to ask a question regarding DropDownList. This is the code:- +54 Argentina +93 Afganistan +91 India +61 Austrila +91 India +32 Belgium +91 India +53 Brazil +359 Bulgaria +86 China +299 GreenLand +33 France +49 Germany +852 HongKong +52 Mexico So, I want if user select +33 France from DropDownList then in DropDownList it should display +33 FR instead of this full name +33 France which is mention in DropDownList???So,is it possible??? How can I achieve this???

    ASP.NET question

  • SQL
    U User 11127370

    Hi,I want to make demo on SQL server,but I want to ask one question while making demo I have to mention only theory concept or code in them also???Can any one help???

    Database question database sql-server sysadmin help

  • Error???
    U User 11127370

    Hi, I'm getting the following errors while creating Filestream features in Sql server??? How to solve this error,Please help me??? ERROR:- Msg 1969, Level 16, State 1, Line 1 Default FILESTREAM filegroup is not available in database 'HumanResource'. Thanks...

    Database database help sql-server sysadmin tutorial

  • Identity_Column
    U User 11127370

    Hi, I am getting the following error,while creating identity column in sql ??? This is the code: Create Table Myschema.Employee_Demo ( Emp_ID int constraint pk_con Primary Key Identity(1,1), Emp_Name varchar(55), Emp_Sal decimal(10,2) ) Insert Myschema.Employee_Demo(Emp_Name,Emp_Sal)values('Puja',20,000),('Tira',10,000),('Serrma',15,000),('Airrwari',12,000),('Shyyjina',13,000) ERROR: Msg 110, Level 15, State 1, Line 1 There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement. SO, how to solve this error???Please help....... Thanks...

    Database help database regex tutorial question

  • Delegates with Events
    U User 11127370

    HI, I want to ask that,What is delegate with event?What it's use?And why we have to use it??? Can anyone explain me this concept with simple example??? Thanks...

    C# question tutorial

  • Assembly.
    U User 11127370

    Hi, I want to know in simple words,What is Assembly in Dotnet framework???

    .NET (Core and Framework) question csharp

  • Lifo and Fifo
    U User 11127370

    HI, I want to know what is Lifo and Fifo,as i search in net but i didn't get the answer clearly??? Can any one explain it with simple example??? Thanks...

    C# question tutorial

  • Stack and Heap
    U User 11127370

    HI, My question is,What is Stack and Heap in C#??? As i search in net also,but i didn't understand it clearly? So,can anyone explain me with simple example? Thanks...

    C#

  • C#
    U User 11127370

    Hi, class Program { static void Main(string[] args) { bool isPrime = true; Console.WriteLine("Prime Numbers are:"); for (int i = 2; i <= 100; i++) { for (int j = 2; j <= 100; j++) { if (i != j && i % j == 0) { isPrime = false; break; } } if (isPrime) { Console.Write("\t"+i); } isPrime = true; } Console.ReadKey(); } } in this code,i didn't understand this line of code,Please explain me??? if (i != j && i % j == 0) { isPrime = false; break; } what it means??? Thanks...

    C# csharp question

  • Sql_Index
    U User 11127370

    Hi, My question is that,when we can create Clustered and NonClustered Index on tables??? What is the purpose behind it??? Thanks...

    Database question database

  • Index
    U User 11127370

    Hi, My question is that, when we can create Clustered and NonClustered Index on tables??? What is the purpose behind it??? Thanks...

    Database question database

  • Index
    U User 11127370

    Hi, My question is that,when we can create Clustered and NonClustered Index on tables??? What is the purpose of it??? Thanks...

    Database question database

  • Cascading referential integrity.
    U User 11127370

    HI, I want to know that while creating cascading referential integrity constraint between tables having foreign key relationships. For e.g:- I have two tables Employee and EmployeeLeave,now i want to use cascading referential integrity constraint code:- Alter Table dbo.EmployeeLeave Add Constraint rfkcEmployeeID Foreign Key(EmployeeID) References dbo.Employee(EmployeeID) ON DELETE NO ACTION ON UPDATE NO ACTION So, My question is that i can even use this Constraint at the time of Creating Table For e.g:- Create Table dbo.EmployeeLeave ( EmployeeID int constraint rfkcEmployeeID Foreign Key(EmployeeID)References dbo.Employee(EmployeeID) ON DELETE NO ACTION ON UPDATE NO ACTION ) Is this code is correct??? Is it will work??? Thanks...

    Database question announcement

  • Subqueries
    U User 11127370

    Hi, I want to know that while creating suqueries in SQL Server,it is mandatory to have Primary key and Foreign key relationships between the tables??? In short:-I want to know if we create subqueries without p.k and F.k realtionships,then it will work??? What is the main purpose of Subqueries??? Thanks...

    Database question database sql-server sysadmin

  • IsPostBack
    U User 11127370

    HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???

    ASP.NET question csharp asp-net help

  • RE-GET and SET PROPERTY
    U User 11127370

    HI, What is the use of get and set property,and why we have to use get and set property and in which condition??? Can Anyone Help???

    C# question help

  • Re-Get and Set Property
    U User 11127370

    Hi, I want to know that what is get and set Property in C#, and what is difference between them???And if i want to use only get Property then how can i do this in code??? Can any one help??? What is the use of get and set property,and why we have to use get and set property and which condition???

    C# question csharp help

  • GridView
    U User 11127370

    HI, This the code:- foreach(GridViewRow row in GridView1.Rows) { if(row.RowType==DataControlRowType.DataRow) { //code here } } I didn't understand this line of code: if(row.RowType==DataControlRowType.DataRow) Can anyone help???

    ASP.NET help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups