Click here to Skip to main content
15,887,596 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Changing VPN domain password Pin
Kornfeld Eliyahu Peter3-Apr-14 8:13
professionalKornfeld Eliyahu Peter3-Apr-14 8:13 
GeneralRe: Changing VPN domain password Pin
Matt T Heffron3-Apr-14 8:50
professionalMatt T Heffron3-Apr-14 8:50 
GeneralRe: Changing VPN domain password Pin
Kornfeld Eliyahu Peter3-Apr-14 8:55
professionalKornfeld Eliyahu Peter3-Apr-14 8:55 
GeneralRe: Changing VPN domain password Pin
Matt T Heffron3-Apr-14 9:13
professionalMatt T Heffron3-Apr-14 9:13 
GeneralRe: Changing VPN domain password Pin
Kornfeld Eliyahu Peter3-Apr-14 9:18
professionalKornfeld Eliyahu Peter3-Apr-14 9:18 
GeneralRe: Changing VPN domain password Pin
Dave Kreskowiak3-Apr-14 18:32
mveDave Kreskowiak3-Apr-14 18:32 
AnswerRe: Changing VPN domain password Pin
jschell4-Apr-14 8:10
jschell4-Apr-14 8:10 
QuestionASP.NET Pin
Friendsforever MoNu28-Mar-14 23:18
Friendsforever MoNu28-Mar-14 23:18 
Object reference not set to an instance of an object EROR OCCUR in this code;;;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
public partial class Default3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["ss"] == null)
{
DataTable ord = new DataTable("Table");
DataColumn c = new DataColumn();
c.ColumnName = "ordbookid";
c.DataType = Type.GetType("System.Int32");
ord.Columns.Add(c);
ord.Columns.Add(new DataColumn("ordbooktit", Type.GetType("System.String")));
ord.Columns.Add(new DataColumn("ordbookaut", Type.GetType("System.String")));
ord.Columns.Add(new DataColumn("ordbookpub", Type.GetType("System.String")));
ord.Columns.Add(new DataColumn("ordbookpri", Type.GetType("System.Int32")));
ord.Columns.Add(new DataColumn("ordbookqty", Type.GetType("System.Int32")));
ord.Columns.Add(new DataColumn("ordbookamt", Type.GetType("System.Int32")));
ord.Columns["ordbookamt"].Expression = "ordbookpri * ordbookqty";
Session["ss"] = ord;

}
if (Page.IsPostBack == false)
{
SqlDataAdapter adp = new SqlDataAdapter("select * from tb_book where bookid=101", ConfigurationManager.ConnectionStrings["cnn"].ConnectionString);
DataSet ds = new DataSet();
adp.Fill(ds);
DataRowView r = ds.Tables[0].DefaultView[0];
DataTable tb = (DataTable)(Session["ss"]);
DataRow r1 = tb.NewRow();
r1[0] = Convert.ToInt32(r["bookid"]);
r1[1] = r["booktit"].ToString();
r1[2] = r["bookaut"].ToString();
r1[3] = r["bookpub"].ToString();
r1[4] = Convert.ToInt32(r["bookpri"]);
r1[5] = 1;
tb.Rows.Add(r1);
GridView1.DataSource = tb;
GridView1.DataBind();
Label1.Text = tb.Compute("Sum(ordbookamt)", "").ToString();
}
}
}
Confused | :confused:
manish soni

AnswerRe: ASP.NET Pin
Pete O'Hanlon28-Mar-14 23:27
mvePete O'Hanlon28-Mar-14 23:27 
AnswerRe: ASP.NET Pin
Dave Kreskowiak29-Mar-14 4:06
mveDave Kreskowiak29-Mar-14 4:06 
GeneralRe: ASP.NET Pin
Schatak4-Apr-14 19:02
professionalSchatak4-Apr-14 19:02 
GeneralRe: ASP.NET Pin
Dave Kreskowiak5-Apr-14 2:11
mveDave Kreskowiak5-Apr-14 2:11 
AnswerRe: ASP.NET Pin
sankarsan parida11-May-14 23:51
professionalsankarsan parida11-May-14 23:51 
QuestionSorting of Vehicle Numbers Pin
vasuarya26-Mar-14 0:05
vasuarya26-Mar-14 0:05 
AnswerRe: Sorting of Vehicle Numbers Pin
Simon_Whale26-Mar-14 0:21
Simon_Whale26-Mar-14 0:21 
AnswerRe: Sorting of Vehicle Numbers PinPopular
Pete O'Hanlon26-Mar-14 0:35
mvePete O'Hanlon26-Mar-14 0:35 
AnswerRe: Sorting of Vehicle Numbers Pin
jschell26-Mar-14 11:50
jschell26-Mar-14 11:50 
Questionstatic Math vs sealed Application Pin
Mirani Ajay25-Mar-14 23:58
Mirani Ajay25-Mar-14 23:58 
AnswerRe: static Math vs sealed Application Pin
Eddy Vluggen26-Mar-14 4:03
professionalEddy Vluggen26-Mar-14 4:03 
AnswerRe: static Math vs sealed Application Pin
Dave Kreskowiak26-Mar-14 4:18
mveDave Kreskowiak26-Mar-14 4:18 
GeneralRe: static Math vs sealed Application Pin
Eddy Vluggen26-Mar-14 6:08
professionalEddy Vluggen26-Mar-14 6:08 
GeneralRe: static Math vs sealed Application Pin
Dave Kreskowiak26-Mar-14 6:12
mveDave Kreskowiak26-Mar-14 6:12 
AnswerRe: static Math vs sealed Application Pin
Richard Deeming26-Mar-14 6:25
mveRichard Deeming26-Mar-14 6:25 
AnswerRe: static Math vs sealed Application Pin
jschell26-Mar-14 11:52
jschell26-Mar-14 11:52 
QuestionNepali Unicode Pin
mebishnu22-Mar-14 22:01
mebishnu22-Mar-14 22:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.