Click here to Skip to main content
16,016,781 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: string Encryption/Decryption using AES Algorithm in asp.net Pin
mani.thirumalai24-Feb-09 22:17
mani.thirumalai24-Feb-09 22:17 
QuestionImport Excel Option Pin
Guvera24-Feb-09 19:34
Guvera24-Feb-09 19:34 
AnswerRe: Import Excel Option Pin
Christian Graus24-Feb-09 19:39
protectorChristian Graus24-Feb-09 19:39 
AnswerRe: Import Excel Option Pin
Jörgen Andersson24-Feb-09 20:38
professionalJörgen Andersson24-Feb-09 20:38 
AnswerRe: Import Excel Option Pin
Abhishek Sur24-Feb-09 21:22
professionalAbhishek Sur24-Feb-09 21:22 
GeneralRe: Import Excel Option Pin
Jörgen Andersson24-Feb-09 21:55
professionalJörgen Andersson24-Feb-09 21:55 
GeneralRe: Import Excel Option Pin
Greg Chelstowski24-Feb-09 22:28
Greg Chelstowski24-Feb-09 22:28 
GeneralRe: Import Excel Option Pin
Jörgen Andersson24-Feb-09 23:46
professionalJörgen Andersson24-Feb-09 23:46 
Depending on your lingual preferences
string ConnectionStr = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended properties=\"Excel 8.0;HDR=YES\"", Location); 
using (OleDb.OleDbConnection Connection = new OleDb.OleDbConnection(ConnectionStr)) { 
    Connection.Open(); 
    //Create your worksheet using normal SQL 
    string CreateString = "CREATE TABLE..."; 
    using (OleDb.OleDbCommand Command = new OleDb.OleDbCommand(CreateString.ToString, Connection)) { 
        Command.ExecuteNonQuery(); 
    } 
    //More code here 
    Connection.Close(); 
}

Dim ConnectionStr As String = String.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended properties=""Excel 8.0;HDR=YES""", Location) 
Using Connection As New OleDb.OleDbConnection(ConnectionStr) 
    Connection.Open() 
    Dim CreateString as String= "CREATE TABLE..." 'Create your worksheet using normal SQL
    Using Command As New OleDb.OleDbCommand(CreateString.ToString, Connection)
        Command.ExecuteNonQuery()
    End Using
    'More code here
    Connection.Close() 
End Using


Location is path AND filename
Don't forget to set your permissions at the filelocation if it's a webserver.
GeneralRe: Import Excel Option Pin
Greg Chelstowski25-Feb-09 1:06
Greg Chelstowski25-Feb-09 1:06 
GeneralRe: Import Excel Option Pin
Jörgen Andersson25-Feb-09 1:10
professionalJörgen Andersson25-Feb-09 1:10 
GeneralRe: Import Excel Option Pin
Abhishek Sur27-Feb-09 4:15
professionalAbhishek Sur27-Feb-09 4:15 
GeneralRe: Import Excel Option Pin
Jörgen Andersson27-Feb-09 4:19
professionalJörgen Andersson27-Feb-09 4:19 
GeneralRe: Import Excel Option Pin
Jörgen Andersson27-Feb-09 4:31
professionalJörgen Andersson27-Feb-09 4:31 
Questionplease help me Pin
sivasampathkumar24-Feb-09 19:09
sivasampathkumar24-Feb-09 19:09 
AnswerRe: please help me Pin
Christian Graus24-Feb-09 19:16
protectorChristian Graus24-Feb-09 19:16 
GeneralRe: please help me Pin
N a v a n e e t h24-Feb-09 21:20
N a v a n e e t h24-Feb-09 21:20 
QuestionImage Resize Pin
Robymon24-Feb-09 18:57
Robymon24-Feb-09 18:57 
AnswerRe: Image Resize Pin
Christian Graus24-Feb-09 19:17
protectorChristian Graus24-Feb-09 19:17 
GeneralRe: Image Resize Pin
Robymon24-Feb-09 19:39
Robymon24-Feb-09 19:39 
GeneralRe: Image Resize Pin
Christian Graus24-Feb-09 19:43
protectorChristian Graus24-Feb-09 19:43 
GeneralRe: Image Resize Pin
Robymon24-Feb-09 19:49
Robymon24-Feb-09 19:49 
QuestionHow i store all Images into applcation Directroy Pin
Rameez Raja24-Feb-09 18:51
Rameez Raja24-Feb-09 18:51 
AnswerRe: How i store all Images into applcation Directroy Pin
Christian Graus24-Feb-09 19:17
protectorChristian Graus24-Feb-09 19:17 
Questionsessions Pin
sritha24-Feb-09 18:51
sritha24-Feb-09 18:51 
AnswerRe: sessions Pin
Christian Graus24-Feb-09 19:19
protectorChristian Graus24-Feb-09 19:19 

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.