|
ooooooooppppppss wrote: b
ooooooooppppppss wrote: wid
Please don't talk like a moron.
ooooooooppppppss wrote: ForumASP.NET
ooooooooppppppss wrote: windows forms
If you're working with Windows forms, why on earth did you ask in the ASP.NET forum ?
Your job is trivial, just read the image data, create a Bitmap in memory, and pass it through to a picture box.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I faced a situation that needs a multiple inheritance. Unfortunately .net is not supporting it. I cannot use an "interface" for this purpose.
Let me tell you the scenario. I have a data layer class say "clsDL". There is another class for the common functions say "clsCommon"(It is common for all modules). I have several modules in my project (several projects in a solution) each module has its own common class for the common functions in that moule. Every form in the GUI layer has a class in Business layer.
The data layer class inherited to "clsCommon" and all the common classes for each module. Now i want to inherite the "clsCommon" and the common class for the particular module into a particular business layer class. I don't want to merge the common functions. If i implement the interface, I have to make an interface for anyone of the two common class and declare the object of that interface class in the business layer class. The problem is that the functions are in these common classes is not same. Therefore, I can't take the advantage of "interface". How can I solve the problem?
P.S: Sorry if I make you confused!
Ken,Mexico(Guanajuato)
|
|
|
|
|
Ken.Hamilton wrote: Every form in the GUI layer has a class in Business layer.
This doesn't make sense, and ties the two layers too closely together.
Ken.Hamilton wrote: Now i want to inherite the "clsCommon" and the common class for the particular module into a particular business layer class.
This sounds convoluted and messy. Why would your data layer and business layer have the same base class ?
The answer is to redesign, this doesn't sound at all right to me.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes i think so. I am sad that my all works become useless. I have work again from the scratch. Can you please give me any useful links of articles about this subject?
Thank you
Ken,Mexico(Guanajuato)
|
|
|
|
|
Not off hte top of my head. Just remember, the layers are seperate, they shouldn't have any need for any common base classes, and the business layer should be built around the different business objects, not the different pages.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Ok. Even though I didn't fully understand what you trying to say, thanks for your response and the time to spend me.
Now I am going to sit back and starting to learn what is Data layer, what is Business layer from all the possible resources.
Ken,Mexico(Guanajuato)
|
|
|
|
|
Hello everyone,
I have webpage1 that sends email when button1 is click. I want to go back to previous page once button1 is click so I use history.back code.
Below is my sample code for your reference.
If Page.IsValid And SaveIssue() Then
Dim msg As New MailMessage
msg.To = Test@dc.com
msg.From = "ACSC@noreply.com"
msg.Subject = "Reply- " & txtTitle.Text
msg.Body = "Hello"
msg.BodyFormat = MailFormat.Html
SmtpMail.SmtpServer = "abc.com"
SmtpMail.Send(msg)
msg = Nothing
btnDone.Attributes.Add("onClick", "history.back(); return false;"
End If
My problem is, it will only work on the second time you will click button1. Kindly advise for the right code. Thanks in advance.
|
|
|
|
|
History.back to me, is not the right way as I found it useless in firefox. So Simply navigate to your WebForm1.aspx like
<br />
btnDone.Attributes.Add("onClick", "window.location = 'WebForm1.aspx'; return false;"<br />
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
Hello,
Its because I have some control in my previous page that I want to retain the value, thats why I just simply use history.back.
Do you have any suggestion?
|
|
|
|
|
Then it depends on if you care about FireFox. If you do, find out how to do it in FF and write script that calls the right thing.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Add it in the aspx, not the code behind. I'd say it's only working the second time because the first time your if statement fails.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Do you mean, i'll put the history.back on the onclick event of my button?
<asp:button1 onclick="history.back" id="Button1" runat="server" text="Button">
|
|
|
|
|
Yes, if you add properties to a server control and the server does not recognise them, they get passed through to the client verbatim.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi.. but got an error
Compiler Error Message: BC30456: 'history' is not a member of 'ASP.webform1_aspx'.
|
|
|
|
|
Hello Everyone,
Can anybody not try to have a bit of time to solve my problems
Actually i want to run my flash files and videos in media player
As running in this url
"http://www.gurumaa.com/online-video-discourses.php"
plz solve my probs.........................
Thnx in Advance
|
|
|
|
|
|
i ve tabs in master page. i want to move to another page (which is in the content page of a tab) when clicking a link in the popup .
how can i do that ?
|
|
|
|
|
Revathij wrote: i want to move to another page (which is in the content page of a tab)
What do you mean by this. Do you want to move to some other page ? How a page can be in the content page of a tab ? Or am I missing something ?
|
|
|
|
|
hi all,
How can I add a role selection to my CreateUserWizard? I mean, I want administrator to select role for user he is adding to system.
Thanks
|
|
|
|
|
hi all,
i want to copy the excel sheet data to db table, in most reference , its mentioned to use SqlBulkCopy, so , how can i import this,is it available in framework 1.0, if so which is the base class, if not how can i do this import in asp.net.
reply soon...
|
|
|
|
|
Hi all..
I have five HTML textboxes in my aspx page.I want to restrict the user from entering the number 0 or 00 in the text boxes..How to do it with the help of java script..?
someone help in this regard as early as possible...
Regards,
Balaguru
|
|
|
|
|
if ( parseFloat(TextBoxValue)==0 )<br />
{<br />
alert("your alert");<br />
return false;<br />
}<br />
|
|
|
|
|
i want to learn web programming.i dont know any thing about html,asp,asp.net my question is that what sould i learn at the first?i have asp.net 2005 book.if you help me so i ll be pleasure.
|
|
|
|
|
If you are planning to learn only webprogramming, then first of all you need to learn HTML, Javascript. Then go for server side programming. Are you familiar with OOPS concepts ?
|
|
|
|
|
First u must understand the basic web programming, my suggestion u must know about the HTML First and Javascript..And if u already simmilar with the HTML and Javascript Syntax, u can start build your first web application..After that u can learn about web programming using PHP, ASP.Net, and more..
Good Luck
Regards,
Tomi
|
|
|
|