|
Hi
i have been developing windows application using vc++ for so 2 years suddenly company is taking web related project and just venturing into asp.net 2.0 . i just dont like it. i dont click due to lack of interest . I dind c++, vc++, c# windows applications more appealing. i wonder how I can generate interest in it. or should I change the job.
happy weekend
lee
Leya
|
|
|
|
|
I think you should try to become familiar with ASP.NET technology because it is cool technology...
I Love T-SQL
Don't torture yourself,let the life to do it for you.
|
|
|
|
|
right said...
using C# with ASP.net makes it more productive and real coool..
Ashish Sehajpal
|
|
|
|
|
It really worth for (he/she) learning ASP.NET technology...
I Love T-SQL
Don't torture yourself,let the life to do it for you.
|
|
|
|
|
yang__lee wrote: i just dont like it.
why ?
yang__lee wrote: i dont click due to lack of interest
First try to learn it, then you will be fan of asp.net .
yang__lee wrote: I dind c++, vc++, c# windows applications more appealing
you know C#, then you can easily learn asp.net with C#.
yang__lee wrote: i wonder how I can generate interest in it
just try to learn it.
yang__lee wrote: should I change the job.
thats depends on you. if you want to be a windows application developer then you should . or if you want to be a web developer also, then just try to learn it.
Good luck !!!!
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|
|
Hi all,
how to disable previous dates in Ajax Calendar control?
i am unable to find the events in AjaxCalendar control.
please help me.
Murali
|
|
|
|
|
I'm not sure there's a property for you to use. This means you'll probably need to grab the AJAX toolkit and edit the JavaScript for the calendar control yourself.
|
|
|
|
|
Hi,
I want to open only one PDF file using singleton pattern.I have written a code as follows on button click event:-
FileInfo objFile;
string strFileName;
strFileName = "User Manual - Quality Feedback System.pdf";
objFile = new FileInfo(Server.MapPath(ConfigurationSettings.AppSettings["App_Name"]) + "\\" + strFileName);
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + objFile.Name);
Response.Flush();
Response.WriteFile(objFile.FullName);
Response.End();
The problem with the above code is that it opens more than one PDF file if button is clicked more than once.How can I make sure that one PDF file gets opened using Singleton design pattern.I am clear with the concept of singleton pattern but I am not able to implement this concept in my problem.Please help.
|
|
|
|
|
are you loading the pdf file where the button exists?
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
Pranav Thakur wrote: The problem with the above code is that it opens more than one PDF file if button is clicked more than once.How can I make sure that one PDF file gets opened
Disable the button so that it can't be clicked again?
Pranav Thakur wrote: I am clear with the concept of singleton pattern
That seems unlikely given your post.
led mike
|
|
|
|
|
If you would apply the singleton pattern to this, it would mean that only one user could open the PDF file. Then you would have to restart the web application before another user could look at it...
I assume that what you really want to do, is to limit the usage per user, not per application. The problem is that the method that you use to open the file effectively prevents any attempt to check if the file is already open or not. The server code has no means at all of checking this, and you would have to open a window using client side code to have a chance to determine if there is already a window open or not. Even then, it depends on how the file is opened by the browser. If it's not opened in a browser window, but in a separate application (i.e. Adobe Reader), you can't determine if the file is still open or not. I'm not certain that it's ossible even if it's opened in a browser window.
So, what you want to do falls somewhere between "maybe working sometimes" and "impossible". Either way it's definitely not possible to implement the way that you suggest.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Ok, my purpose was to understand singleton pattern with some live example.Can anyone please explain this singleton pattern with suitable example.
|
|
|
|
|
Singleton Pattern is used when only one instance of a class is needed to provide services. In other words, only one instantiation. Here is an example:
public class SingletonClass
{
private static SingletonClass _myInstance;
//Private constructor so clients can not instantiate
private SingletonClass
{
}
// Clients call this when they need an instance of this class
// Needs to be static as it can be called without instantiation or instance of this class
public static SinletonClass getInstance()
{
if (_myInstance == null)
{
_myInstance = new SingletonClass();
}
return _myInstance;
}
}
The whole idea is the class checks whether an instance is available, if yes it returns it, else creates and returns it.
Let me know if you have questions.
|
|
|
|
|
Hi all,
I am trying to set the text property to the asp:hyperlink control using
frmHourRegistration.hlProject.Text="Test"
But I am gettting the error as "Method not supported"
What I am doing wrong here ?
|
|
|
|
|
try
hlProject.Text="Test"; in your codebehind if hlProject is the id of the hyperlink
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
Thanks for the reply Sylvester george ,
It works well in the code behind. But i want to populate from VBScript function. How can I ?
|
|
|
|
|
Anyway that you have not mentioned in the question.
this is the code for you
<script type="text/vbscript"><br />
HyperLink1.innerText = "abc"<br />
</script>
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
This is my code
Sub btnProjects_Click<br />
Dim retValue<br />
If frmHourRegistration.chkShowAll.checked=true then<br />
retValue= window.showModalDialog("test.aspx",window, "dialogWidth:550px;resizable:yes")<br />
If IsNull(retValue) Then<br />
frmHourRegistration.txtProject.Value=Empty<br />
frmHourRegistration.hlProject.Value=Empty <br />
Else<br />
frmHourRegistration.txtProject.Value=retValue(0)<br />
frmHourRegistration.hlProject.Text=retValue(1)<br />
End If<br />
End If <br />
End Sub
|
|
|
|
|
Hi friends
I am able to send mail to the id of same domain but not to other....
this is the code and below of the code is error
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.From = new MailAddress(frmEmail);
message.To.Add(new MailAddress(txtEmailAddress.Text));
message.Subject = " From "+ Label1.Text + " Your Booking Information " ;
message.Body = booking_body;
SmtpClient client = new SmtpClient();
client.Host = hostname;
client.UseDefaultCredentials = false;
System.Net.NetworkCredential auth = new System.Net.NetworkCredential(user_name,password);
client.Credentials = auth;
client.Send(message);
ERROR:
Syntax error, command unrecognized. The server response was: mr.sindhutiwari@yahoo.com relaying prohibited. You should authenticate first
please tell me where i am going wrong
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
you can set the relay property of SMTP server by following steps
open IIS
Right click on default SMTP server, then select properties
gott Access tab, there you will find Relay button, there you set the Relay restrictions.
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
Can you send e-mail to local address but not web address like yahoo and hotmail?
|
|
|
|
|
my mail server is mail.abcd.com so i am able to send mails to any id of this domain like xyz@abcd.com but when i tried to send it to other ids error raised
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Hi
I have just tried implementing a new control for RSS feeds for my website
The control worked fine locally but when I put it on the server it returned the above error message.
Anyone knows why this would be?
cheers
|
|
|
|
|
that means server unreachable from your server. Try to open the port to access particular host
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
So what your saying is that there is a port on the server which is blocking rss feeds from other websites
|
|
|
|