|
Use windows scheduler.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi,
You can schedule triggers on database based on time condition.
Or
You can execute a function that check the current date value after a specified time period and if old date and new date is not equal then you can execute your code.
Regards
Atul.
|
|
|
|
|
y u cant go for scheduled tasks?
i acheived using that
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
If your database is SQL Server, I would create a SQL Agent job that runs on a schedule to scan the table. Then you can use database mail to send the emails.
My other signature is witty and insightful.
|
|
|
|
|
Hi,
I am a starter in asp.net. i've created a project containing a folder called "Login"
with some pagesin it. When i run the project and type a page name in the browser address bar it lists all the other pages in it. I want to block it and redirect it towards a single page named Login.aspx in that folder.
Plz Help.
|
|
|
|
|
When you type the URL in the list bar, it will list all the previously visitied pages.
It cannot be blocked till you delete the history.
|
|
|
|
|
If I understood correctly, you want to restrict the user to access any other page until he does not go through the Login process. Right?
You can use a session variable(say Session["IsValidatedUser"]) and check its value on each page load, if its not set than redirect to the login.aspx
P.S. : A nice way would be to implement a class which can be used to derive all the web pages.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
May be you could on to "Directory browsing" Option in ISS. In web.Config you can set for making a page as default,
<authentication mode="Forms">
<forms forms="401kApp" loginUrl="/login.aspx" />
</authentication>
|
|
|
|
|
s baran is correct, go with web.config file
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Hi
How can i get the value from a database to a checkbox ?
I want to retrieve a single field from the table in a checkbox. I can do it using Checkboxlist but there is no point using checkbox list for a single field.
Thank You
|
|
|
|
|
You have a single checkbox ? So you return true or false from your SQL call.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
If Graus is correct...,Then u have to go for like this...,
get the values from table and assign in to one variable like this:
act=ds.Tables[0].Rows[0]["active"].ToString();
if (act == "False")
{
ChkAct.Checked = false;
}
else
{
ChkAct.Checked = true;
}
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Hi
Thanks for the reply.
But what i am trying to ask is - For Instance there is a country table and i just want to retrieve France from the database and to be displayed as a checkbox in the web form.
For this do i have to set a text property of the checkbox to France or is it possible to get it populated from database itself.
Like for checkboxlist you have something like below:-
checkboxlist1.DataSource = getvaluefromdatabase;
checkboxlist1.DataTextField = "asd";
checkboxlist1.DataValueField = "wer";
checkboxlist1.DataBind();
|
|
|
|
|
Hi,
How to use save File Dialog Box in asp.net+C#.net. Any related Controls?
First thing is that any save file dialog box is there in asp.net.
Regards,
Palanivel
|
|
|
|
|
Ya is there and you Google it. Do you want to upload a file to a server ... Correct. Server control is there.
|
|
|
|
|
Thanx. When I click the button (ie)it should show like the save file dialog and ask for file name to save and store the full path in a string type variable in asp.net with c#. its urgent.
|
|
|
|
|
|
NO This feature is not use in ASP.net
If you want to save any file then make a dynamic link.
And when clicking on this link it will ask to save file.
Regards
Atul
|
|
|
|
|
You're wrong. Passing a file through a binary write, will create a save file dialog.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I have an application developed using Visual Studio 2005 and VB.Net which displays data from an Access database. I can launch it from within a GIS system (Manifold) by doubl-clicking a point on a map drawing. This passes parameters and the name of the .aspx page to lunch so as to display the data on the database associated with the point. The application is run on a PC under localhost
The problem is that unless I have already launched the ASP.Net Development Server the .aspx page will not display - get not able to display type of error message. Is there some way I can ensure that Asp.Net Development Server is always launched - either every time the PC is switched on, or by some code is the home page of the application?
Also:
a)is there a way of always making the ASP.Net Development Server run irectly under the root localhost port at present it usually is Port 1347.
b) If I deploy the application to another PC which does not have Visual Studio loaded, what do need to ensure the PC has installed to run .aspx pages?
|
|
|
|
|
I think you are using the built-in wev server which comes with VS 2005. This web server will be launched only when you run the web application from VS 2005. Instead, you can use IIS to host your web application.
Windows XP based PCs have IIS ver 5.x. You can use that to deploy you application so that you don't need to lauch everytime.
|
|
|
|
|
Ramesh - thanks for reply. I've investigated further and the problem seems to be with the fact that the Access database is opened. When I open the GIS application, because the GIS links to the Access database, the database is opened. When I try to open the .aspx page with localhost
ie, using Internet Explorer,
http://localhost/HA4Com/chamber.aspx?cname=2977-001
get error message file already in use
Exception details: System.Data.OleDb.OleDbException: Could not use; file already in use
If however I use the VStudio Development Server:
http://localhost:1347/HA4Com/chamber.aspx?cname=2977-001
it works Ok. Looks like VStudio development Server happy that Access database already open, but IIS is not.
Any way I can make localhost/IIS to accept the database already opened?
|
|
|
|
|
I can use Session on login.aspx.cs.
so I used like this.
// Session["Id"]= id;
and I can see components of Session, when I type "Session".
but I can't use that another aspx.cs. page, for example, board.aspx.cs.
There are only two values. SessionPageStatePersister and SessionParameter.
That is all;;
I don't know why...
please let me know..
|
|
|
|
|
that class file is not inherited System.Web.UI.Page class ? If it is then you will be getting Session while development.
|
|
|
|