|
joshi reddy podduturi wrote: but i want to use timer control in ASP.Net
There isn't one.
joshi reddy podduturi wrote: but i could not find the same control in Asp.Net tool box.
Because there isn't one.
You need to write a timer in javascript. You can use AJAX to send messages to the server from your timer, if you want to, as Mark said. But, you are going to have to write actual code. To be honest, it's beyond me why anyone would drag and drop a timer from the toolbox in any C# application, it's not a UI element, it's something you control in code. If you want to be a programmer, you need to be willng to write code.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
When the other answerer said java, he meant javascript. You can store DateTime.Now in the session and check it on postback to see how much time has elapsed, but any sort of timer that causes an action eeds to be written on the client side.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It's not necessary for a complete postback, an ajax call could be made from the client to obtain the time and url, or action, to take upon expiration.
only two letters away from being an asset
|
|
|
|
|
That much is true, but this guy wants to drag and drop something, you want to complicate thngs with AJAX ? I suspect that writing a JS timer is scary enough for him.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
m sachin here..
now i m working into libraty management system.In this system i have use .net with C# and database connectivity with microsoft access.now if user wants to register then it should enter his id.And if some new student enter id which is already registered then it should give an error so how can we do that..
please send me code or method
MIRCHI IS VERY TIKHI
|
|
|
|
|
The best option will be to take uid as a uniqueidentifier in sqlserver.
and handle the sqlexcetion in try catch block..........
another way is use DataReader to read data with sqlcommand select * from tablenaem where uid='"+tbuid.Text+"'"
if(dr.Read())
{
Response.Write("already exist");
}
else its okay.............
try this it may be helpful 2 u..........
Deepak Nigam
|
|
|
|
|
hello dear!!!
i m studing in B.E IT in 7th sem.
i need some asp.net project to study porpose so plese send me if u have good project which can improve my knowlege
MIRCHI IS VERY TIKHI
|
|
|
|
|
malcolm smart here dear!
Why don't you write a libraty management system in which you have database connectivity with microsoft access and if user wants to register it should let him unless his id is registered before then tell him it is so that is what you can do. Dear.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Oh dear!
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
Buy a book, or read the articles on this site. Seriously....
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I am developing ASP.Net application in VS2003. From when user login, I am maintaining one session variable.
Session["user"] = t1.text; some think like this. and making it null and abandon when logout is clicked.
Session["user"] = ""
Session.Abandon() ;
When I run my code on localhost I dont have any problem. every thing works perfectly. but when I deploy my application to main server then aumatically my session get expires , I mean session variable is becoming is null. This does not happen regularly. It happens after few transactions. Even unable to replicate when exactly this is happening. I kept timeout 20 minutes.Then also even while operating it expires.
I am already frustrated with this issue by chanding <sessionstate> in web.config and many replacements in my code. but no use.
Can any please guide me?
Thanks In Advance
|
|
|
|
|
Check your cookies settings, ASP.NET handles the session in cookies, if your browser doesn't allow cookies then you will have problems like those you mentioned.
Let me know if that fix your problem.
Greetings,
Felipe
|
|
|
|
|
Hi,
Thank you for ur reply. but if it is because of cookie, it should not even work on localhost. but Its working fine on localhost. The problem is coming only when I deploy the to server. and browse it.
I have allowed all the cookies(by making the security level low). but still the same problem occurs.
Can you please guide me?
Thanks In Advance
|
|
|
|
|
I kept timeout 20 minutes.Then also even while operating it expires.
You can also set the session timeout in IIS.
Then u will solve ur problem of session expire.
like
IIS->defaultwebiste->(Urapplication)properties->homedirectory->configuration->options
Here u can set the session timeout.
Try this.
kissy
|
|
|
|
|
Kissy, Thank you very much for ur reply. But I am not getting problem at my local IIS. Its only coming when I deploy to main server. So I need to set the property at the server side. How can I set this at server side. Can you guide me? Do u think this problem is because of this property? If you think please guide me how to set this at server(which is not with me). Do I need to consult Administrator?
Thanks in Advance
|
|
|
|
|
You will see this behaviour if your session is running in-proc on a multi-processor system, or in a web-farm/web-garden. What you need to do is change the sessionstate to run under either SQL Server state, or as stateserver. Supposing that you are using the state server, then you need to start the ASP.NET state service on the server and add the following to your web.config.
>sessionstate
mode="stateserver"
cookieless="false"
timeout="20"
sqlconnectionstring="data source=127.0.0.1; user id=user; password=password"
server="127.0.0.1"
port="42424"
/>
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I'm working on a website on a machine running Vista, and using VS2005.
Even though IIS7 is installed, I am NOT running this site under IIS - I am running it from within VS2005.
When I run the site, it goes through some code to load a connection string the root web.config file. There is only one web.config file associated with the site, so there's no conflicts with trying to load an overriding file that may/may not exist.
When it tries to load the web.config file, I get an exception stating the following: Failed to access IIS metabase .
I have a co-worker that is also running Vista that doesn't have this problem. I have other co-workers that are running XP that do not have this problem.
Despite the fact that I'm not running under IIS, I've tried using aspnet_regiis -i , and even with the -ua to unregister asp.net, and then -i to re-register asp.net.
I'm going to go now and completely uninstall .net 2.0, and then reinstall it, but I'm not optimistic in a positive outcome. If this doesn't work, it's looking like I'll have to do a complete reinstall of this crapware they call Vista/.net, and then all my apps, etc, etc...
I'm not a happy camper. If .Net can be knocked over so easily, it still remains categorized as "crap" in my book.
Does anyone have any super-secret advice?
-- modified at 11:15 Wednesday 24th October, 2007
It seems as if you can't uninstall .net 2.0 from Vista, so that avenue is pointless. The more I use Vista, the more pissed off I get.
I've googled this problem to freakin death, and I haven't been able to find ANYTHING that will resolve this problem for me.
-- modified at 14:33 Wednesday 24th October, 2007
I just got done completely uninstalling VS2005, and then reinstalling it, and I still get the exception.
-- modified at 15:44 Wednesday 24th October, 2007
I'm running VS2005 as administrator.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
If you arent already try running VS as administrator, can be done by right clicking on the link or shortcut and selecting run as administrator. I know this solved most of the problems i had running the 2005 version of VS under Vista.
You could always upgrade to 2008 - Even though its only in beta i have found it to be much more reliable than the existing version of VS - and have had no compatibility issues when converting fairly complex solutions over.
|
|
|
|
|
SHatchard wrote: f you arent already try running VS as administrator
I'm running as administrator.
SHatchard wrote: You could always upgrade to 2008
No, I can't. Doing dev work with beta tools is (IMHO) the next best thing to "stupid". Besides, I learned from other people's experiences with installing VS2005 beta that it causes nothing but heartburn later on down the road. Microsoft's release code is dicey enough, and I really don't want to add to the "excitement" by using beta code as well.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I know this may sound dumb, but have you tried creating a virtual directory and running the solution from IIS?
I'll second your opinion that Vista is still in a crappy state and that's why it might just be some bug with the local VS web server.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
I never run anything from the built in web server ( is it called Cassini ? ), because I've found it's really only good for the most basic of sites. I set up IIS, browse to my site, and attach the debugger if I want to set breakpoints.
And yes, I also hate vista. My latest peeve is that the file browse dialog has a drop arrow next to the file path, if I push it, it shows me a bunch of URLs. How retarded is that ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
John - are you running this as an administrator, or have you run Visual Studio as the Administrator? They are two slightly different things. This failure is normally associated with VS DEV running in normal mode even though you are running as an administrator. To fix this, right click on Visual Studio and select Run as administrator from the context menu.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
hello
one question
i have to do a page for looking for space avaible of the day to programming citations.
mi store procedure can be someo
select xfiel , x2 field from xtable
in my tier logic i can drive all reference business logic
where is better drive my logic in store procedure o in class in .net
thank for the time
regards
|
|
|
|
|
That depends a bit on what you include in the term business logic.
Most business logic belongs in the code. Some logic (like for example creation of related records) can be done in the database.
The database should have some sanity checks and containts to guarantee basic integrity of the data in case the logic in the code fails.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|