|
So you want to pop up one window and close the window which opened it? Surely that can be achieved by just navigating to the new page? (miraculously the old window page will be gone!)
return 5;
|
|
|
|
|
Hi All,
In my application im going implement the MVC, I've created common routing rule for my some dynamic page in the global.asax, but there are some additional static pages in my application (more than 20 pages) (ex- contact us, help, abouts us), what i want to know is, should i call MapRoute method (i have write it below) for each pages, or is there any solutions for this. please help me.
routes.MapRoute(
"Contact Us",
"{controller}/{action}",
new { controller = "ContactUs", action = "Show"}
);
Thanks,
|
|
|
|
|
How to send email from local system to internet using asp .net 2,0?how to configure smtp?I googled a lot.But that code is not worked in asp .net 2.0..Help me
|
|
|
|
|
|
Please check this Article over here,
Send Email in ASP.Net 2.0[^]
This is the basic version and this might help you to start with.
If you find any problem then post here with details.
Believe Yourself™
|
|
|
|
|
|
Code that given by u is worked..Thanks a lot.But the mail go to Spam only,not in inbox.How to send mail in inbox?
|
|
|
|
|
Firstly, are you sending spam?
Secondly, read something like this[^]
return 5;
|
|
|
|
|
I have page.
@Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="workgrant_Default" %>
@ Register Src="~/userControl/TopHeader.ascx" TagName="TopHeader" TagPrefix="TopUc" %>
<body>
<TopUc:TopHeader ID="TopHeaderId" runat="server" />
i do debug and i find out that userConrol was called after main page called.
So Is there any way to call userControl page first?
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
The user control is not a page that can be called on it's own. It must be placed on an aspx page in order to work, so no, you cannot call the usercontrol "page" first.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
No, you can not call the user control before the page. The page contains the user control, so it needs to be constructed first.
Why do you want to call the user control first anyway?
|
|
|
|
|
Hi All,
I got a work to upgrade existing asp.net code.
In this i came to see HttpContext,HttpResponse class.
Then I done research and found that it can be used to avoid querystring and can be used only for server.transfer.
Please let me know the exact use of httpcontext?
Thanks in advance.
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
|
|
This articles mentions using Context.Item to move information between froms when using Server.Transfer, however this techniques is very outdated and not recommended. Server.Transer(string, boolean)[^] should be used instead to preserve the forms collection and pass it along.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
I have a Windows service which is hosting a WCF service and integration with an ASP.Net application. I have installed the service by using the installutil utility. But when I have tried to start the service in Services panel in the Control Panel. Its starting and stopping immediately.
Can anybody help me sarting the service and it should run untill I stop it manually. When I start it its giving me the below error.
"The CalculatorWindowsService service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."
Please help me in this in any ways by giving any links or any sort advice any thing. Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis, MO - USA
|
|
|
|
|
It could be any number of reasons but without seeing any of the code you've used it would difficult to pinpoint. Perhaps an exception is being thrown? Perhaps you've coded to it stop after execution?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
Here is the code that I have written, can you please look at it and tell me where I am calling stop method when I am calling the start method. I am not doing it. Even if I remove the Console.WriteLine and Console.ReadLine also there is nothing differnce. Its giving the same message and stopping it. any sort of help is appreciated. This is the code in my service. If you need code from the IninitalizeComponent or from the ProjectInstaller I can give it here. Can you please help me in this I am new to the windows services.
public partial class MyNewService : ServiceBase
{
public MyNewService()
{
InitializeComponent();
if(!System.Diagnostics.EventLog.SourceExists("DoDyLogSourse"))
System.Diagnostics.EventLog.CreateEventSource("DoDyLogSourse","DoDyLog");
eventLog1.Source = "DoDyLogSourse";
eventLog1.Log = "DoDyLog";
}
protected override void OnStart(string[] args)
{
eventLog1.WriteEntry("my service started");
System.Console.WriteLine("my service started");
System.Console.ReadKey();
}
protected override void OnStop()
{
eventLog1.WriteEntry("my service stoped");
System.Console.WriteLine("my service stoped");
System.Console.ReadKey();
}
protected override void OnContinue()
{
eventLog1.WriteEntry("my service is continuing in working");
System.Console.WriteLine("my service is continuing in working");
System.Console.ReadKey();
}
protected override void OnPause()
{
eventLog1.WriteEntry("my service is Paused");
System.Console.WriteLine("my service is Paused");
System.Console.ReadKey();
}
protected override void OnShutdown()
{
eventLog1.WriteEntry("my service is Paused");
System.Console.WriteLine("my service is Paused");
System.Console.ReadKey();
}
}
Thanks & Regards,
Mohammad Abdul Aleem
St Louis, USA
|
|
|
|
|
your OnStart() needs to set the "hey i'm started flag" and then continue doing something until told to stop or pause by the OnStop() or OnPause()
"If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
|
|
|
|
|
Hi,
Thanks Ahmed for the reply.
Then I have two questions 1. how can I write on to a console application and then 2. how should I call stop method from start method
Means how can I control start and stop methods in Wnidows service or how can I make my windows service to execute for each 10 minutes.
Any link or any example would help please. Thanks in advance.
Thanks & Regards,
Mohammad Abdul Aleem
St Louis MO
|
|
|
|
|
there are many examples on codeproject of windows services. I suggest you type "windows service" in the above search box and do some reading...
"If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
|
|
|
|
|
Hi Ahmed,
I have searched all of them but no where I found to start my service and stop it till I say stop. I couldnt find this example. And is there any way that I can write the out put of the windows service in to console or file or on messagebox. I need this help.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
My suspicion here is that you've hit a permissions issue. Looking at your code, you've attempted to create an event source - if I'm right, your service does not have the permissions to manipulate the event log. Change the event source to write to Application instead.
|
|
|
|
|
Hi Pete,
Can you please help me and eloborate little bit, I am not getting any idea about I have been searching for it. How should I write to application instead of on the EvenLog. Any links or any sort of help would help me. Thanks in advance Pete.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
He meant write the to the Application Event Log, look at your event viewer.
Honestly it seems you need much more help than is possible here. Perhaps take a class at a local community college.
I know the language. I've read a book. - _Madmatt
|
|
|
|