Click here to Skip to main content
15,884,298 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to open outlook mail window when i click emailid in my webpage Pin
kish2021-Aug-09 0:02
kish2021-Aug-09 0:02 
AnswerRe: How to open outlook mail window when i click emailid in my webpage Pin
dan!sh 21-Aug-09 0:50
professional dan!sh 21-Aug-09 0:50 
AnswerRe: How to open outlook mail window when i click emailid in my webpage Pin
Coding C#21-Aug-09 4:01
Coding C#21-Aug-09 4:01 
Questionshow image Pin
ritasaumya20-Aug-09 23:29
ritasaumya20-Aug-09 23:29 
AnswerRe: show image Pin
Jay Royall20-Aug-09 23:39
Jay Royall20-Aug-09 23:39 
AnswerRe: show image Pin
padmanabhan N21-Aug-09 0:16
padmanabhan N21-Aug-09 0:16 
Questionglobal database connectivity in asp.net Pin
rajiv_kadam20-Aug-09 23:18
rajiv_kadam20-Aug-09 23:18 
AnswerRe: global database connectivity in asp.net Pin
Vimalsoft(Pty) Ltd20-Aug-09 23:55
professionalVimalsoft(Pty) Ltd20-Aug-09 23:55 
in one of my application, a user connect to deterrent databases that gets chosen on the login Screen. Now i change the Connection string Dynamically. In my Data layer i will have something like this

/*This Function will change the Connection string in the web.congif file based on the Database that exists on the
* session Variable. If there is nulll then set odirect3 as a current Database name.
*/

private string GetConnectionString(string DB) // where DB is your database name from the session
{

    string connString = ConfigurationManager.ConnectionStrings["DBConnectionString"].ConnectionString;

    if (DB != null)
    {
        return connString.Replace("oDirectv3", DB);
    }
    else
    {
        return connString.Replace("oDirectv3", "oDirectv3");
    }

}


and my Connection String will look like this
<add name="DBConnectionString" connectionString="Data Source=VUYISWA\SQLEXPRESS;Initial Catalog=oDirectv3;Persist Security Info=True;User ID=V;Password=wow" providerName="System.Data.SqlClient"/>


So what ever sql statement you run to the database will Correspond

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

Questiondisplay image Pin
ritasaumya20-Aug-09 23:07
ritasaumya20-Aug-09 23:07 
AnswerRe: display image Pin
Jay Royall20-Aug-09 23:18
Jay Royall20-Aug-09 23:18 
AnswerRe: display image Pin
padmanabhan N21-Aug-09 0:14
padmanabhan N21-Aug-09 0:14 
QuestionDigitally sign old word documents Pin
Andrija Juric20-Aug-09 22:44
Andrija Juric20-Aug-09 22:44 
QuestionHow to maintain State in Wizard Control? Pin
meeram39520-Aug-09 22:36
meeram39520-Aug-09 22:36 
AnswerRe: How to maintain State in Wizard Control? Pin
padmanabhan N20-Aug-09 22:46
padmanabhan N20-Aug-09 22:46 
Questionadding web service from ftp Pin
Maverickcool20-Aug-09 21:45
Maverickcool20-Aug-09 21:45 
Questioncheck box checked event Pin
goel_nitin198720-Aug-09 21:32
goel_nitin198720-Aug-09 21:32 
AnswerRe: check box checked event Pin
Abhishek Sur20-Aug-09 21:41
professionalAbhishek Sur20-Aug-09 21:41 
QuestionUpload / Retrieve files remotely into / from share point server using its exposed web services Pin
Izhar Arman20-Aug-09 21:29
Izhar Arman20-Aug-09 21:29 
QuestionMail sending failed Pin
kavinnagarajan20-Aug-09 20:04
kavinnagarajan20-Aug-09 20:04 
AnswerRe: Mail sending failed Pin
Coding C#20-Aug-09 20:27
Coding C#20-Aug-09 20:27 
AnswerRe: Mail sending failed Pin
Christian Graus20-Aug-09 20:47
protectorChristian Graus20-Aug-09 20:47 
AnswerRe: Mail sending failed Pin
Vimalsoft(Pty) Ltd20-Aug-09 20:59
professionalVimalsoft(Pty) Ltd20-Aug-09 20:59 
AnswerRe: Mail sending failed Pin
Sundeep Ganiga20-Aug-09 23:05
Sundeep Ganiga20-Aug-09 23:05 
QuestionASP.NET web project master pages templates Pin
Chesnokov Yuriy20-Aug-09 19:32
professionalChesnokov Yuriy20-Aug-09 19:32 
AnswerRe: ASP.NET web project master pages templates Pin
Coding C#20-Aug-09 21:04
Coding C#20-Aug-09 21:04 

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.