Click here to Skip to main content
15,666,183 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: opening command line from web app Pin
Guffa22-Nov-06 5:42
Guffa22-Nov-06 5:42 
GeneralRe: opening command line from web app Pin
l0kke22-Nov-06 6:02
l0kke22-Nov-06 6:02 
AnswerRe: opening command line from web app Pin
Guffa22-Nov-06 9:21
Guffa22-Nov-06 9:21 
QuestionGridview Columns Pin
netJP12L22-Nov-06 2:58
netJP12L22-Nov-06 2:58 
Questionprotecting my web application Pin
Marco225022-Nov-06 2:25
Marco225022-Nov-06 2:25 
AnswerRe: protecting my web application Pin
coolestCoder22-Nov-06 3:36
coolestCoder22-Nov-06 3:36 
AnswerRe: protecting my web application Pin
ednrgc22-Nov-06 7:26
ednrgc22-Nov-06 7:26 
QuestionWeb Services - implementing an interface Pin
Guy Harwood22-Nov-06 2:25
Guy Harwood22-Nov-06 2:25 
Hi, here is my scenario...

i have the following in my solution...

App1 - normal application
App2 - normal application
CoreApp - library containing classes and 'core' functionality

App1 and App2 talk to each other via their sql server databases.

now, sometimes app1 and app2 may be installed on the same server, sometimes they are not.

so, if they are installed on the same box there will be a connection string to the other apps db in their web.config file.

if the connection string does not exist then i must call the other apps web service which will perform the db insert for me.

i made an interface, lets says its called IComms
this interface is implemented by the web service and the class that performs the direct insert.

it defines the method signature that allows app1 to put something in app2s database.

so to send a message i write this code in App2..

<br />
<br />
dim proxy as IComms<br />
'see if we have connection string for app1 database<br />
<br />
if getConfigSetting("App1ConnectionString").length = 0 then<br />
'use web service<br />
proxy = new app1.webservice<br />
else<br />
proxy = new CoreApp.dbCalls<br />
end if<br />
<br />
proxy.sendmessageToApp1("hello")


this is all very well, but the reference to app1s web service in app2 does not create an implementation of the interface on the proxy class.

is there any way round this or should i just design the app without the use of an interface?
Unsure | :~


---Guy H (Wink | ;-) ---

QuestionNeed help on how to use ObjectDataSource - don't know how to select Pin
pedrak22-Nov-06 2:20
pedrak22-Nov-06 2:20 
QuestionDataGrid String Binding problem Pin
param thaker22-Nov-06 1:57
param thaker22-Nov-06 1:57 
AnswerRe: DataGrid String Binding problem Pin
coolestCoder22-Nov-06 3:11
coolestCoder22-Nov-06 3:11 
AnswerRe: DataGrid String Binding problem Pin
ednrgc22-Nov-06 3:37
ednrgc22-Nov-06 3:37 
AnswerRe: DataGrid String Binding problem Pin
coolestCoder22-Nov-06 3:46
coolestCoder22-Nov-06 3:46 
AnswerRe: DataGrid String Binding problem Pin
ravikiranreddydharmannagari22-Nov-06 18:54
ravikiranreddydharmannagari22-Nov-06 18:54 
Questiondatagrid Pin
monika_vasvani22-Nov-06 1:56
monika_vasvani22-Nov-06 1:56 
AnswerRe: datagrid Pin
ednrgc22-Nov-06 3:40
ednrgc22-Nov-06 3:40 
QuestionReg : Microsoft Enterprise Libraries for Data Pin
venkatasivaramaprasad22-Nov-06 1:43
venkatasivaramaprasad22-Nov-06 1:43 
AnswerRe: Reg : Microsoft Enterprise Libraries for Data Pin
ednrgc22-Nov-06 3:41
ednrgc22-Nov-06 3:41 
QuestionTwo in one Pin
sujith3122-Nov-06 1:15
sujith3122-Nov-06 1:15 
AnswerRe: Two in one Pin
Britney S. Morales22-Nov-06 2:31
Britney S. Morales22-Nov-06 2:31 
GeneralRe: Two in one Pin
coolestCoder22-Nov-06 3:38
coolestCoder22-Nov-06 3:38 
QuestionRe: Two in one Pin
sujith3122-Nov-06 18:16
sujith3122-Nov-06 18:16 
QuestionListbox Pin
kavithapuranik22-Nov-06 1:07
kavithapuranik22-Nov-06 1:07 
AnswerRe: Listbox Pin
MIHAI_MTZ22-Nov-06 1:43
MIHAI_MTZ22-Nov-06 1:43 
AnswerRe: Listbox Pin
venkatasivaramaprasad22-Nov-06 1:46
venkatasivaramaprasad22-Nov-06 1:46 

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.