Click here to Skip to main content
15,891,473 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalindent for line Pin
niki_nilu27-Dec-07 2:37
niki_nilu27-Dec-07 2:37 
GeneralRe: indent for line Pin
Paul Conrad27-Dec-07 15:04
professionalPaul Conrad27-Dec-07 15:04 
GeneralRe: indent for line Pin
niki_nilu27-Dec-07 17:46
niki_nilu27-Dec-07 17:46 
GeneralRe: indent for line Pin
Paul Conrad27-Dec-07 17:50
professionalPaul Conrad27-Dec-07 17:50 
GeneralRe: indent for line Pin
niki_nilu27-Dec-07 17:57
niki_nilu27-Dec-07 17:57 
GeneralRe: indent for line Pin
Paul Conrad27-Dec-07 18:01
professionalPaul Conrad27-Dec-07 18:01 
GeneralRe: indent for line Pin
neerubee27-Dec-07 18:46
neerubee27-Dec-07 18:46 
GeneralLINQ to SQL in ASP.NET - moving connection string from app.config to web.config Pin
Dominic Pettifer27-Dec-07 2:32
Dominic Pettifer27-Dec-07 2:32 
I'm using LINQ to SQL and putting the generated classes inside a separate assembly (not the website project), but it's all part of the same solution. When the tool generates the classes it places the connection string inside an app.config file in the project, but I'd rather have this connection string inside the web.config file for the website.

I've been trying the figure out how to do this and have come across this inside the *.designer.cs file for the LINQ to SQL generated files...

public TopicDatabaseDataContext() : base(global::TMS.Library.Properties.Settings.Default.TopicMappingSystemConnectionString, mappingSource)<br />
{<br />
    OnCreated();<br />
}


Now I could replace global::TMS.Library.Properties blah blah with some code to access the connection string in the web.config instead, but since this code is auto generated by a tool, I don't really want to do it this way. Is there a better way?

Dominic Pettifer

Blog: www.dominicpettifer.co.uk

Generalfile upload progress bar Pin
Mogaambo27-Dec-07 2:14
Mogaambo27-Dec-07 2:14 
GeneralRe: file upload progress bar Pin
Abhijit Jana27-Dec-07 3:48
professionalAbhijit Jana27-Dec-07 3:48 
NewsRe: file upload progress bar Pin
Venkatesh Mookkan27-Dec-07 15:19
Venkatesh Mookkan27-Dec-07 15:19 
GeneralRe: file upload progress bar Pin
Abhijit Jana27-Dec-07 18:38
professionalAbhijit Jana27-Dec-07 18:38 
GeneralRe: file upload progress bar Pin
Venkatesh Mookkan27-Dec-07 20:56
Venkatesh Mookkan27-Dec-07 20:56 
GeneralRe: file upload progress bar Pin
Mogaambo27-Dec-07 20:05
Mogaambo27-Dec-07 20:05 
GeneralGet formatted Content from aspx page or XSLT Pin
Archana New to Dotnet27-Dec-07 2:04
Archana New to Dotnet27-Dec-07 2:04 
GeneralRe: Get formatted Content from aspx page or XSLT Pin
Not Active27-Dec-07 4:00
mentorNot Active27-Dec-07 4:00 
GeneralBreak execution process if other process come Pin
Imran Khan Pathan27-Dec-07 2:04
Imran Khan Pathan27-Dec-07 2:04 
Questionhow java script is called when he closes the child window Pin
jagan12327-Dec-07 1:39
jagan12327-Dec-07 1:39 
AnswerRe: how java script is called when he closes the child window Pin
Abhijit Jana27-Dec-07 20:34
professionalAbhijit Jana27-Dec-07 20:34 
GeneralRead and write an XML file Pin
VanithaVasu27-Dec-07 0:53
VanithaVasu27-Dec-07 0:53 
GeneralRe: Read and write an XML file Pin
UsmanMunier27-Dec-07 1:00
UsmanMunier27-Dec-07 1:00 
GeneralRe: Read and write an XML file Pin
neerubee27-Dec-07 19:48
neerubee27-Dec-07 19:48 
GeneralDoubt regarding forms Authentication Pin
Satish - Developer26-Dec-07 22:59
Satish - Developer26-Dec-07 22:59 
GeneralRe: Doubt regarding forms Authentication Pin
martin_hughes26-Dec-07 23:45
martin_hughes26-Dec-07 23:45 
QuestionTimed online course program - Is it possible with ASP.NET - AJAX? Pin
AbhishekBK26-Dec-07 22:29
AbhishekBK26-Dec-07 22:29 

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.