How many objects are there in ASP?
Answers were Sorted based on User's Feedback
Answer / swathi
There are 6 objects in ASP.net
a) Server
b) Session
c) Application
d) ObjectContext
e) Response
f) Request
Is This Answer Correct ? | 33 Yes | 7 No |
Answer / hema
there are 6 objects -
application,session,server,response,request,asperror object
Is This Answer Correct ? | 28 Yes | 13 No |
Answer / pooja
There are 7 objects in ASP.net
a) Server
b) Session
c) Application
d) ObjectContext
e) Response
f) Request
g) Error
Is This Answer Correct ? | 18 Yes | 6 No |
Answer / kamal
There are 6 object
Response,Request,Application,Session,context,server
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / pramod
There are 7 objects in ASP.NET......
1.Request
2.Response
3.Cookie
4.Session
5.Application
6.cache
7.Server
Is This Answer Correct ? | 10 Yes | 8 No |
Answer / bhushan wani
There are 7 objects in Classical ASP 3.0
1] Request
2] Response
3] Server
4] Session
5) Application
6) ObjectContext
7) ASPError
Is This Answer Correct ? | 7 Yes | 6 No |
Answer / pradeep gupta
there are 9 objects in asp.net
1> Request
2> Response
3> Page
4> Session
5> Application
6> Cache
7> Server
8> User
9> Httpcookies
Is This Answer Correct ? | 7 Yes | 7 No |
Answer / hossam
There's no fixed number could be known in asp.net, number of objects varies always dueto .net Framework library so, they are many, but not countable.
You can say there's session, application, response, request, cookies, viewstate, error...etc
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ashish sati
There are 9 objects in asp.net.They are
1)Application
2)Session
3)Cookies
4)Form Post
5)Cache
6)Context
7)View State
8)COnfig File
9)Query String
Is This Answer Correct ? | 1 Yes | 5 No |
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; public partial class Default2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { SqlConnection cn = new SqlConnection("Data Source =Prg1; Initial Catalog= DBTEST; Integrated Security = True"); cn.Open(); DataSet ds= new DataSet (); string str = "DB_test"; SqlDataAdapter da = new SqlDataAdapter(str, cn); da.SelectCommand.CommandType = CommandType.StoredProcedure; da.SelectCommand.CommandText = str; da.Fill(ds); Session["test"] = ds; } protected void btnSubmit_Click(object sender, EventArgs e) { DataSet ds1 = new DataSet(); ds1= (DataSet ) Session ["test"]; DataTable dt = ds1.Tables[0].Clone(); DataRow[] dr; string[] sqlInput = txtNo.Text.Split("-".ToCharArray ()); if (txtNo.Text != "" && txtWeight.Text != "") { if (sqlInput.Length > 1) { string query = ("t1 <=" + sqlInput[0] + " and " + "t2 >=" + sqlInput[1]); dr = ds1.Tables[0].Select(query); } else { string query = ("t1 <=" + txtNo.Text + "and " + "t2 >=" + txtNo.Text); dr = ds1.Tables[0].Select(query); } foreach (DataRow dr1 in dr) { dt.Rows.Add(dr1.ItemArray); } int i = Convert.ToInt32(dt.Rows[0] ["zone"].ToString()); DataTable dt1 = new DataTable(); DataRow[] dr2; dt1 = ds1.Tables[1].Clone(); dr2 = ds1.Tables[1].Select("weight=\'" + txtWeight.Text + "\'"); foreach (DataRow dr3 in dr2) { dt1.Rows.Add(dr3.ItemArray); } DataRow[] dr4; DataTable dt2 = ds1.Tables[2].Clone(); dr4 = ds1.Tables[2].Select(("weight=\'" + txtWeight.Text + "\'")); foreach (DataRow dr5 in dr4) { dt2.Rows.Add(dr5.ItemArray); } int j = Convert.ToInt32(dt.Rows[0] ["days"].ToString()); lbl.Text = dt1.Rows[0][i].ToString(); lbldays.Text = dt2.Rows[0][j].ToString(); } else { } } } ============================================================ ================ CREATE PROCEDURE DB_test AS BEGIN DECLARE @tb1 table ( t1 bigint, t2 bigint, zone bigint, days bigint ) insert into @tb1(t1,t2,zone,days) select (case when(charindex("-",No)-1>0) then convert (bigint,substring(No,1,charindex("-",No)-1)) else No end) as t1, (case when(charindex("-",No)-1>0) then convert(bigint,substring(No,charindex("-",No) +1,len(No))) else No end) as t2, Zone as zone, Days as days from [926] select * from @tb1 select * from zone select * from days end GO
What is Server Object?
What is Cookies collection?
how to code in asp.net for button?
SAP Design Studio Reporting Tool for beginners
What is querystring collection in asp?
Explain the difference between server-side validation and client-side validation?
Explain how do you initiate a string without escaping each backslash?
Describe ways to present an arbitrary endpoint (URL) and route requests to that endpoint to ASP.NET.
How do I convert an aspx file to pdf?
What is asp give its application?
How to delete an existing cookie?