Click here to Skip to main content
15,917,176 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: inserting data to SQL via Storeprocedure(Please help) Pin
JHizzle28-Jun-10 21:14
JHizzle28-Jun-10 21:14 
GeneralRe: inserting data to SQL via Storeprocedure(Please help) Pin
future383929-Jun-10 14:41
future383929-Jun-10 14:41 
GeneralRe: inserting data to SQL via Storeprocedure(Please help) Pin
JHizzle29-Jun-10 22:19
JHizzle29-Jun-10 22:19 
GeneralRe: inserting data to SQL via Storeprocedure(Please help) Pin
future383930-Jun-10 5:26
future383930-Jun-10 5:26 
GeneralRe: inserting data to SQL via Storeprocedure(Please help) Pin
JHizzle30-Jun-10 6:17
JHizzle30-Jun-10 6:17 
QuestionProblem getting EditCommand event to fire in nested DataGrid Pin
Phillip Donegan28-Jun-10 2:39
Phillip Donegan28-Jun-10 2:39 
AnswerRe: Problem getting EditCommand event to fire in nested DataGrid Pin
Phillip Donegan29-Jun-10 3:17
Phillip Donegan29-Jun-10 3:17 
QuestionJavascript Method call!! Pin
sabby200628-Jun-10 0:31
sabby200628-Jun-10 0:31 
AnswerRe: Javascript Method call!! Pin
Sandeep Mewara28-Jun-10 0:47
mveSandeep Mewara28-Jun-10 0:47 
AnswerRe: Javascript Method call!! Pin
Venkatesh Mookkan28-Jun-10 1:26
Venkatesh Mookkan28-Jun-10 1:26 
AnswerRe: Javascript Method call!! Pin
Not Active28-Jun-10 2:52
mentorNot Active28-Jun-10 2:52 
QuestionTextBox Readonly Property Pin
Anurag Gandhi27-Jun-10 22:36
professionalAnurag Gandhi27-Jun-10 22:36 
AnswerRe: TextBox Readonly Property Pin
JHizzle27-Jun-10 23:39
JHizzle27-Jun-10 23:39 
AnswerRe: TextBox Readonly Property Pin
Brij27-Jun-10 23:48
mentorBrij27-Jun-10 23:48 
GeneralRe: TextBox Readonly Property Pin
Anurag Gandhi28-Jun-10 0:44
professionalAnurag Gandhi28-Jun-10 0:44 
GeneralRe: TextBox Readonly Property Pin
Brij28-Jun-10 4:45
mentorBrij28-Jun-10 4:45 
GeneralRe: TextBox Readonly Property Pin
Anurag Gandhi28-Jun-10 20:41
professionalAnurag Gandhi28-Jun-10 20:41 
AnswerRe: TextBox Readonly Property Pin
Sandeep Mewara28-Jun-10 0:46
mveSandeep Mewara28-Jun-10 0:46 
GeneralRe: TextBox Readonly Property Pin
Anurag Gandhi28-Jun-10 1:59
professionalAnurag Gandhi28-Jun-10 1:59 
GeneralRe: TextBox Readonly Property Pin
Sandeep Mewara28-Jun-10 2:02
mveSandeep Mewara28-Jun-10 2:02 
GeneralRe: TextBox Readonly Property Pin
Phillip Donegan28-Jun-10 5:02
Phillip Donegan28-Jun-10 5:02 
GeneralRe: TextBox Readonly Property Pin
Sandeep Mewara28-Jun-10 5:05
mveSandeep Mewara28-Jun-10 5:05 
AnswerRe: TextBox Readonly Property Pin
T M Gray28-Jun-10 7:17
T M Gray28-Jun-10 7:17 
QuestionOpen Connection Pin
Naunt27-Jun-10 22:35
Naunt27-Jun-10 22:35 
Dear all,

Please help.

I created BasePage to open connection as following
Public Class BasePage 
Inherits System.Web.UI.Page   

    public Dim acon As New SqlConnection

    Protected Overridable Sub  Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
        acon= new SqlConnection(ConfigurationManager.ConnectionStrings("DOCDBDWHConnectionString").ConnectionString)
        acon.open()
    End Sub

Inherits to normal page is works.

But don't know how do use that connection in MasterPage
Partial Class Site
    Inherits System.web.UI.MasterPage 


Please help me how to make MasterPage know that connection?

Thanks and Best Regards
AnswerRe: Open Connection Pin
Sandeep Mewara28-Jun-10 0:50
mveSandeep Mewara28-Jun-10 0:50 

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.