Click here to Skip to main content
15,888,401 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to pass and use web page to an external class? Pin
QuickBooksDev28-Dec-14 7:21
QuickBooksDev28-Dec-14 7:21 
AnswerRe: How to pass and use web page to an external class? Pin
syed shanu28-Dec-14 13:43
mvasyed shanu28-Dec-14 13:43 
GeneralRe: How to pass and use web page to an external class? Pin
QuickBooksDev29-Dec-14 4:10
QuickBooksDev29-Dec-14 4:10 
AnswerRe: How to pass and use web page to an external class? Pin
Dominic Burford30-Dec-14 5:44
professionalDominic Burford30-Dec-14 5:44 
GeneralRe: How to pass and use web page to an external class? Pin
QuickBooksDev31-Dec-14 0:23
QuickBooksDev31-Dec-14 0:23 
GeneralRe: How to pass and use web page to an external class? Pin
Dominic Burford31-Dec-14 0:40
professionalDominic Burford31-Dec-14 0:40 
GeneralRe: How to pass and use web page to an external class? Pin
QuickBooksDev31-Dec-14 1:36
QuickBooksDev31-Dec-14 1:36 
GeneralRe: How to pass and use web page to an external class? Pin
Dominic Burford31-Dec-14 1:56
professionalDominic Burford31-Dec-14 1:56 
I understand your need to get something working quickly, but equally you don't want to make bigger problems for yourselves further down the road. By passing the web page to your DLL you are creating a dependency which will make future development and maintenance difficult to say the least.

Firstly I would move all the code that is currently embedded in your web page to a separate class that can be invoked by your web page or any other class that requires it. This removes any dependency and gives you more flexibility going forwards.

There are many different ways in which to display messageboxes on a web page. You'll need a basic grasp of javascript. Here's just example of how it can be accomplished http://www.aspsnippets.com/Articles/Display-MessageBox-in-ASP.Net-using-JavaScript.aspx[^]
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare

Home | LinkedIn | Google+ | Twitter

GeneralRe: How to pass and use web page to an external class? Pin
QuickBooksDev4-Jan-15 5:35
QuickBooksDev4-Jan-15 5:35 
AnswerRe: How to pass and use web page to an external class? Pin
Ferd Really20-Jan-15 6:31
Ferd Really20-Jan-15 6:31 
GeneralRe: How to pass and use web page to an external class? Pin
QuickBooksDev20-Jan-15 7:11
QuickBooksDev20-Jan-15 7:11 
QuestionStill i cant send email .will someone help? does any change require for smtp? Pin
Member 1133603427-Dec-14 5:39
Member 1133603427-Dec-14 5:39 
SuggestionRe: Still i cant send email .will someone help? does any change require for smtp? Pin
Richard MacCutchan27-Dec-14 9:34
mveRichard MacCutchan27-Dec-14 9:34 
GeneralRe: Still i cant send email .will someone help? does any change require for smtp? Pin
Member 1133603427-Dec-14 18:06
Member 1133603427-Dec-14 18:06 
GeneralRe: Still i cant send email .will someone help? does any change require for smtp? Pin
Richard MacCutchan27-Dec-14 23:10
mveRichard MacCutchan27-Dec-14 23:10 
Questioni am facing the NetworkCredential problem which is given below Pin
Member 1133603426-Dec-14 1:12
Member 1133603426-Dec-14 1:12 
AnswerRe: i am facing the NetworkCredential problem which is given below Pin
Wendelius26-Dec-14 1:56
mentorWendelius26-Dec-14 1:56 
GeneralRe: i am facing the NetworkCredential problem which is given below Pin
Member 1133603427-Dec-14 5:32
Member 1133603427-Dec-14 5:32 
AnswerRe: i am facing the NetworkCredential problem which is given below Pin
ZurdoDev26-Dec-14 2:05
professionalZurdoDev26-Dec-14 2:05 
GeneralRe: i am facing the NetworkCredential problem which is given below Pin
Member 1133603427-Dec-14 5:32
Member 1133603427-Dec-14 5:32 
QuestionHow to check login OWA success or not (Exchange 20007) Pin
rosy8425-Dec-14 4:30
rosy8425-Dec-14 4:30 
AnswerRe: How to check login OWA success or not (Exchange 20007) Pin
syed shanu25-Dec-14 17:33
mvasyed shanu25-Dec-14 17:33 
QuestionHow can to change the properties of a control in another page? Pin
Member 1130721224-Dec-14 13:06
Member 1130721224-Dec-14 13:06 
AnswerRe: How can to change the properties of a control in another page? Pin
ZurdoDev26-Dec-14 2:03
professionalZurdoDev26-Dec-14 2:03 
QuestionHow can to change the properties of a control in another page? Pin
Member 1130721224-Dec-14 12:04
Member 1130721224-Dec-14 12: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.