Hi
Here i had given my source code..
Now i want to use Respone.Write instead of Console.Write
When i use that Response.write i am getting Error ..
and also how to invoke my session value in the findSession method..
i am not able to invoke my Session["user"] if i use this iam getting
error..
any one can help me in this..
Thanx & Regards,
J. Mohanraj
using System;
using System.Data;
using System.Data.SqlClient;
using System.Web.Util;
using System.Web.SessionState;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace SQLSer {
public class general {
public SqlConnection conn;
public SqlDataAdapter adapter;
public SqlDataReader reader;
public SqlCommand comm;
string sqlstr;
public general() {
Connect();
}
public void Connect() {
sqlstr = ".........." ;
conn = new SqlConnection(sqlstr);
conn.Open();
}
public SqlDataAdapter dataAdapter (string sql) {
this.Connect();
try {
adapter = new SqlDataAdapter(sql,conn);
} catch (Exception e) {
Console.WriteLine (e);
}
return adapter;
}
public SqlDataReader dataReader (string sql) {
try {
comm = new SqlCommand(sql,conn);
reader = comm.ExecuteReader();
} catch (Exception e) {
Console.WriteLine(e);
}
return reader;
}
public int findSession() {
}
}
}
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/XGgtlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Microsofts_C_Sharp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/