Click here to Skip to main content
15,902,112 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: show confirm box in asp.net+c# with click on link Pin
Suman Singh14-Oct-06 0:21
professionalSuman Singh14-Oct-06 0:21 
QuestionHow to select multiple items in a multiple dropdownlist Pin
Suman Singh14-Oct-06 0:13
professionalSuman Singh14-Oct-06 0:13 
AnswerRe: How to select multiple items in a multiple dropdownlist Pin
perlmunger16-Oct-06 5:31
perlmunger16-Oct-06 5:31 
QuestionAdrotator and flash banner? Pin
ahmadnaghsh14-Oct-06 0:12
ahmadnaghsh14-Oct-06 0:12 
AnswerRe: Adrotator and flash banner? Pin
Jerry Hammond14-Oct-06 12:30
Jerry Hammond14-Oct-06 12:30 
QuestionAccess the PreRender event i VS2005 Pin
Jakob Farian Krarup14-Oct-06 0:08
Jakob Farian Krarup14-Oct-06 0:08 
Questionhow to create a login application using ASP.NET Pin
Eleazer13-Oct-06 23:47
Eleazer13-Oct-06 23:47 
AnswerRe: how to create a login application using ASP.NET Pin
Suman Singh14-Oct-06 0:31
professionalSuman Singh14-Oct-06 0:31 
According to my perception

1.Link a microsoft access database to asp.net

you need a connection string to connect to database ..

string constring= "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\projects\data\thetre.mdb;User Id=admin;Password=;";
OleDbConnection mycon= new OleDbConnection(constring);


2.Write some line of code to make it run and open another page on a button click.


Please clarify "to make it run"....

Do you want to fetch records by a sql ?
if yes try this function:

You need to use 2 namespaces :

using System.Data;
using System.Data.OleDb;

public DataTable fetch_data(string sql)
{
string constring= ConfigurationSettings.AppSettings["con"];
OleDbConnection mycon= new OleDbConnection(constring);
OleDbDataAdapter dap= new OleDbDataAdapter (sql, mycon);
DataSet stds= new DataSet();
dap.Fill(stds);
DataTable dt=stds.Tables[0];
mycon.Close();
return dt;
}


On button_click event

write this code : Response.Redirect("Page2.aspx");


Suman Singh



AnswerRe: how to create a login application using ASP.NET Pin
perlmunger16-Oct-06 5:36
perlmunger16-Oct-06 5:36 
Questioncopy and paste url Pin
kmanisha13-Oct-06 23:40
kmanisha13-Oct-06 23:40 
AnswerRe: copy and paste url Pin
Suman Singh14-Oct-06 0:37
professionalSuman Singh14-Oct-06 0:37 
GeneralRe: copy and paste url Pin
cnr36914-Oct-06 1:06
cnr36914-Oct-06 1:06 
GeneralRe: copy and paste url Pin
kmanisha14-Oct-06 2:01
kmanisha14-Oct-06 2:01 
QuestionTutorial on ASP.NET 2.0 for us who know 1.1 :-) Pin
Jakob Farian Krarup13-Oct-06 23:34
Jakob Farian Krarup13-Oct-06 23:34 
AnswerRe: Tutorial on ASP.NET 2.0 for us who know 1.1 :-) Pin
Mike Ellison15-Oct-06 7:57
Mike Ellison15-Oct-06 7:57 
GeneralRe: Tutorial on ASP.NET 2.0 for us who know 1.1 :-) Pin
Jakob Farian Krarup15-Oct-06 8:05
Jakob Farian Krarup15-Oct-06 8:05 
QuestionDataList in .ascx file does not fire an event for its Item Command Pin
Faisal Khatri13-Oct-06 23:29
Faisal Khatri13-Oct-06 23:29 
QuestionAtlas Configuration problemm! Pin
immori13-Oct-06 22:28
immori13-Oct-06 22:28 
QuestionHow to delete uploaded file. Pin
Soniya_k13-Oct-06 21:00
Soniya_k13-Oct-06 21:00 
AnswerRe: How to delete uploaded file. Pin
Parwej Ahamad13-Oct-06 21:54
professionalParwej Ahamad13-Oct-06 21:54 
GeneralRe: How to delete uploaded file. Pin
Soniya_k13-Oct-06 22:48
Soniya_k13-Oct-06 22:48 
AnswerRe: How to delete uploaded file. Pin
Suman Singh14-Oct-06 0:07
professionalSuman Singh14-Oct-06 0:07 
AnswerRe: How to delete uploaded file. Pin
Suman Singh14-Oct-06 0:15
professionalSuman Singh14-Oct-06 0:15 
GeneralRe: How to delete uploaded file. Pin
Parwej Ahamad14-Oct-06 0:49
professionalParwej Ahamad14-Oct-06 0:49 
GeneralRe: How to delete uploaded file. Pin
Soniya_k14-Oct-06 1:07
Soniya_k14-Oct-06 1:07 

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.