|
One thing you can do,If you want to show the data in your webapplication,let the windows service do the data processing job,Create a webservices that will monitor the database,and once your processing is done by win service you can show oit on your web page..
|
|
|
|
|
ya I Thought about that But how can I get the live data through windows services. Is it possible to run the windows service through the web application button click event. And other question is that I have must be add the my dialer ActiveX into my windows services when we add that activeX into my windows application then user able to dial and recive a call through dialer
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
As you said that your widows services is processing the data.After processing it you can put it in some kind of temporary database,and Monitor the DB from your webservice and show it on your webapplications or you can put some async call which will access the DB and show data on your webpage.
Windows service should always be running on the system and process the data when gets some data.
Deepak the Cool wrote: Is it possible to run the windows service through the web application button click event
NO
|
|
|
|
|
hi every body;
i create a project, i want get facebook any html page source code with c#.net code.
i try a this code;
-------------------------------------------------------------------------------------------------------------------------------
try
{
WebRequest request = WebRequest.Create(TextBox1.Text);
// If required by the server, set the credentials.
request.Credentials = CredentialCache.DefaultCredentials;
// Get the response.
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
// Display the status.
Console.WriteLine(response.StatusDescription);
// Get the stream containing content returned by the server.
Stream dataStream = response.GetResponseStream();
// Open the stream using a StreamReader for easy access.
StreamReader reader = new StreamReader(dataStream);
// Read the content.
string responseFromServer = reader.ReadToEnd();
// Display the content.
Console.WriteLine(responseFromServer);
// Cleanup the streams and the response.
reader.Close();
dataStream.Close();
response.Close();
TextBox2.Text = responseFromServer;
}
catch (Exception ex)
{
Response.Write("<script>alert('" + ex.Message + "')</script>");
}
-------------------------------------------------------------------------------------------------------------------------------
this code is running every web page but not running on facebook i think facebook need connect with code. this event possible or not possible?,
can you help me.
|
|
|
|
|
maqromedia wrote: this code is running every web page but not running on facebook
What are you talking about?
only two letters away from being an asset
|
|
|
|
|
ya, what are you talking about?
|
|
|
|
|
skipmano wrote: ya, what are you talking about?
You are replying to a wrong Person !
|
|
|
|
|
Can you bit more specific to the error..
I dont think that it won't run...
|
|
|
|
|
I am using windows Vista with IIS 7. I created an asp.net application with passsowrd recovery control that sends password to user by email. But each time I try to recover a password, it shows an error message "An existing connection was forcibly closed by remote host". I have also installed a 3rd party tool SmartMail smtp server, but I do not know how to configure it in web.config file of my application.
Please tell in detail as I dont have any idea of using smtp server.
|
|
|
|
|
this question has nothing to do with ASP.NEt. I expect most people just use a commercial mail server, and don't set up their own, so you really need to ask the people who sold you the third party dll for help.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I need date of birth in a form through three dropdownlistbox,one is day,second is month,third is year,and Date of Birth is stored in one column "date" in database.
|
|
|
|
|
ssweetu wrote: I need date of birth in a form through three dropdownlistbox,one is day,second is month,third is year,and Date of Birth is stored in one column "date" in database.
What problem are you facing to doing that ? Take the selected item from three dropdown list, and then concate them store them as date in DB.
|
|
|
|
|
If you don't know how to do this, then you don't know enough to do any ASP.NET, really. so, you should buy a beginner book and read it. You should also distinguish between sites where you post your code and ask for help, and where you post a spec and pay people to write stuff for you.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi..
I have stored procedure to display listofdays by using year and month.My Storedprocedure filter all the Listofdays by leapyear and by month it will display listofdays.
In my stored procedure i used two parameters month & Year.I want to bind lisofdays spro in code behind with two parameters and how i call this listofdays method to my dropdownlist??
I am using below methods for binding the data into datatable.
Getdatatable Method
sqlconn = GetConnection();
cmd.Connection = sqlconn;
da = new SqlDataAdapter(cmd);
dt = new DataTable();
da.Fill(dt);
return (dt);
Calling My Spro
cmd = new SqlCommand("ndi_sp_GetDaysOfMonth", sqlconn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@Month",DbType.Int16));
cmd.Parameters.Add(new SqlParameter("@Year", DbType.Int16));
return GetDataTable(cmd);
The method is correct.??If so when i put breakpiont and checking its not filling the data in datatable.
Hope someone reply to my message..Thanks in advance
|
|
|
|
|
The obvious question is, is your stored proc correct? Is the SqlCommand being executed properly but no data is being returned?
Seems critical thinking and debugging skills are a lost art.
only two letters away from being an asset
|
|
|
|
|
Yes..I Tested and executed my spro.Its working.When i am adding parameter values year and month..its displaying listofdays according to month and year.
|
|
|
|
|
Ok, so what else could you test? Apply some thought processes. It will develop your skills and may lead to an answer without having to ask people to solve it for you.
only two letters away from being an asset
|
|
|
|
|
I have a master page in my application and there is one heade and footer. The issue is when the child pages contain less content, the footer comes up, else it comes down. Is there any way that I can made it as static? Means I want to display the same at the bottom center.
Probably it will be some settings on CSS/HTML. Can anybody please provide any link or examples to that. I tried to put align="center" in <tr>, but doesn't have much effect. Can anybody provide any suggestion?
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
One thing is that you appear to be using tables to define the structure. You should be using CSS instead. Create a container, such as a div, for the content that is sized as appropropriately. You will of course need to have it scroll the content or you'll still have the same problem.
only two letters away from being an asset
|
|
|
|
|
meeram395 wrote: The issue is when the child pages contain less content, the footer comes up, else it comes down. Is there any way that I can made it as static?
why you are not fixed the table width and height ?
|
|
|
|
|
Why use a table at all? A proper application of CSS will accomplish the same thing and render faster.
only two letters away from being an asset
|
|
|
|
|
Add the following styles to the footer class:
position: fixed;
bottom: 0;
However, this will probably not give you the result you want.
You probably want one of 2 effects:
1. header and footer always visible, body has vert scroll bar.
to do this use the fixed and top/bottom styles for the header/footer and set overflow to auto or scroll.
2. footer is at bottom of window if body less than window height, else it's at normal location at bottom of (scrolled) page.
need to use javascript e.g. something like http://www.ben-griffiths.com/project/jquery-position-footer/[^] ... although this solution is overly complex and doesn't handle ajax added data.
...cmk
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack
|
|
|
|
|
void Session_End(object sender, EventArgs e)
{
}
this method call when session timeout but i want when user close the explorer
then
void Session_End(object sender, EventArgs e)
{
}
call
thanks
|
|
|
|
|
You still have the earlier question in this page itself. It would been easier for people to understand the background too.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|