Click here to Skip to main content
15,892,768 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Is there any way to distinguish the request in server is through internet or intranet? Pin
sashidhar29-Oct-09 0:18
sashidhar29-Oct-09 0:18 
GeneralRe: Is there any way to distinguish the request in server is through internet or intranet? Pin
SIJUTHOMASP29-Oct-09 0:29
professionalSIJUTHOMASP29-Oct-09 0:29 
GeneralRe: Is there any way to distinguish the request in server is through internet or intranet? Pin
sashidhar29-Oct-09 0:51
sashidhar29-Oct-09 0:51 
GeneralRe: Is there any way to distinguish the request in server is through internet or intranet? Pin
SIJUTHOMASP29-Oct-09 1:17
professionalSIJUTHOMASP29-Oct-09 1:17 
GeneralRe: Is there any way to distinguish the request in server is through internet or intranet? Pin
sashidhar29-Oct-09 2:18
sashidhar29-Oct-09 2:18 
Questiondata table cart Pin
KhandelwalA28-Oct-09 23:18
KhandelwalA28-Oct-09 23:18 
AnswerRe: data table cart Pin
Christian Graus28-Oct-09 23:38
protectorChristian Graus28-Oct-09 23:38 
QuestionProblem with GridView Pin
Purish Dwivedi28-Oct-09 22:55
Purish Dwivedi28-Oct-09 22:55 
I have created my webapp in ASP.NET, C# and MS-Access.
in Table I have cell value as, 1 and 0. At the time of binding I want to convert it to On and Off respecively. How can I do it? Please help , as I am new to .NET
This is my code.

private void Binding()
{
// create the connection
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:/GmoteDeviceControl/App_Data/DeviceCtrl.mdb;User Id=admin;Password=;");

// Open the connection
con.Open();

// create the DataSet
DataSet ds = new DataSet();

// create the adapter and fill the DataSet
OleDbDataAdapter da = new OleDbDataAdapter("Select DEVICE_NAME,CURRENT_STATE from SUBSCRIBER_DEVICES", con);
da.Fill(ds);



//Binding DataSource with GridView
GridView1.DataSource = ds.Tables[0];
GridView1.DataBind();

// close the connection
con.Close();
}


Thank You.
AnswerRe: Problem with GridView Pin
Christian Graus28-Oct-09 23:39
protectorChristian Graus28-Oct-09 23:39 
AnswerRe: Problem with GridView Pin
Nishant Singh28-Oct-09 23:55
Nishant Singh28-Oct-09 23:55 
GeneralRe: Problem with GridView Pin
Purish Dwivedi28-Oct-09 23:59
Purish Dwivedi28-Oct-09 23:59 
QuestionRe: Problem with GridView Pin
Purish Dwivedi29-Oct-09 0:28
Purish Dwivedi29-Oct-09 0:28 
Questionhow can I show additional button in a gridview cell based on anothe cell value in asp.net, c# Pin
Purish Dwivedi29-Oct-09 0:10
Purish Dwivedi29-Oct-09 0:10 
AnswerRe: how can I show additional button in a gridview cell based on anothe cell value in asp.net, c# Pin
Christian Graus29-Oct-09 0:21
protectorChristian Graus29-Oct-09 0:21 
QuestionAjax Update Panel Pin
5fingers28-Oct-09 21:59
5fingers28-Oct-09 21:59 
AnswerRe: Ajax Update Panel Pin
Christian Graus28-Oct-09 22:02
protectorChristian Graus28-Oct-09 22:02 
GeneralRe: Ajax Update Panel Pin
Abhishek Sur28-Oct-09 22:11
professionalAbhishek Sur28-Oct-09 22:11 
GeneralRe: Ajax Update Panel Pin
5fingers28-Oct-09 22:21
5fingers28-Oct-09 22:21 
GeneralRe: Ajax Update Panel Pin
5fingers28-Oct-09 22:19
5fingers28-Oct-09 22:19 
GeneralRe: Ajax Update Panel Pin
Abhishek Sur28-Oct-09 22:26
professionalAbhishek Sur28-Oct-09 22:26 
GeneralRe: Ajax Update Panel Pin
5fingers28-Oct-09 22:30
5fingers28-Oct-09 22:30 
GeneralRe: Ajax Update Panel Pin
Abhishek Sur28-Oct-09 23:07
professionalAbhishek Sur28-Oct-09 23:07 
JokeRe: Ajax Update Panel Pin
sashidhar28-Oct-09 23:09
sashidhar28-Oct-09 23:09 
GeneralRe: Ajax Update Panel Pin
Abhishek Sur29-Oct-09 0:13
professionalAbhishek Sur29-Oct-09 0:13 
GeneralRe: Ajax Update Panel Pin
5fingers28-Oct-09 23:52
5fingers28-Oct-09 23:52 

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.