|
good morning,
i can use a gridview in controlpanel and create a table by using sqlserver and i connected that table to the gridview.but i can use a textbox,if cursor is focus on the textbox then only the grid view is display and any data is selected on the gridview that data should be dispatch to textbox.
plz send a solution to my problem.thank u.
|
|
|
|
|
Sounds like you need to write some javascript to do what you're trying to explain.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I'm using asp.net and sql server, i have to time field type call login and logout i want to findout between that how many hour he spend...
Ex:
Login Time: 11:50:39
Logout Time: 12:35:03
1.how is find logout?
2.if System Problem then to store logout time automatically stored logout time.
3.i am closeing the webpage (not using proper logout) store logout time automatically.
any solution ?
please Suggest me.
|
|
|
|
|
nithydurai wrote: .how is find logout?
Don't you have a logout button?
nithydurai wrote: .i am closeing the webpage (not using proper logout) store logout time automatically.
Method 1
You need to write code for this in session_end event. If you are using InProc sessions, session_end will be fired. It will be fired when the session timeout reaches not immediately when user closes the browser.
Method 2
Handle JS close event, do AJAX call to update the logout time. This method is not reliable as JS can be turned off at client side.
Method 3
Assume your session timeout is 20 minutes. Create a SQL job which periodically checks the table and if the allowed time limit exceeds (current time > login time + 20 minutes) just update the logout time column.
BTW, It is very tough to keep the accurate values in all these methods.
Hope it helps
|
|
|
|
|
|
nithydurai wrote: can you give any example
Example for what? This is something big topic than to explain in a forum post. I hope the methods which I explained was clear. You can try it and come back if you have any issues.
|
|
|
|
|
can you give any links or material
|
|
|
|
|
I have looked at storring the logout time to keep a history, but I do not believe it is possible without javascript.
|
|
|
|
|
can you use sqlconnection in javascript? if u can give some example coding....
|
|
|
|
|
Any body can help me ...How to Decompile .aspx file to get source codefile ?????
Thanks in advance
|
|
|
|
|
Your question is not clear. What do you meant by de-compiling aspx files?
|
|
|
|
|
hello dear,
I have a precompiled website project.
So how can I decompile this precompiled website project to its original source file?
Thanks
|
|
|
|
|
Well, if you have the assemblies with you, use reflector[^] to disassemble it. I have seen a plugin for reflector which writes the code to a file. But I don't remember it's name right now.
|
|
|
|
|
Thanks.... I will look into this
|
|
|
|
|
I did see the post by "Martin Lottering". This is a windows control. Could you please provide me Multi select drop down with check boxes for Web Application?
Thanks in advance
Suresh
|
|
|
|
|
suri_tummalapalli wrote: I did see the post by "Martin Lottering". This is a windows control.
Care to provide a link so people know what you are talking about?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
how to refresh a folder using ASP .net ?
i am rewriting a .pdf file in my folder and in case od deletion
i wanna refresh my folder..
than x
|
|
|
|
|
amit sahu20 wrote: i wanna refresh my folder..
Why ?
amit sahu20 wrote: i am rewriting a .pdf file in my folder and in case od deletion
Just Relaod the PDF file.
|
|
|
|
|
|
I need a code that should browse the file folders(functionality like FileUpload control)and select the file from the dialogue box.
|
|
|
|
|
I'm sure you do.
You can only replace the built in control via a java applet, not in ASP.NET.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I need a code that should browse the file folders(functionality like FileUpload control)and select the file from the dialogue box
|
|
|
|
|
Hi
i have 3 web pages in my website as first one login.aspx, second one home.aspx third one info.aspx, if i enter into the site the default page is login.aspx, after login.aspx, home.aspx will come and after home,aspx info.aspx will come. This is the normal flow of execution. . But i want a URL like, with that URL if i enter the site, i should able to open the page info.aspx directly and before opening the page info.aspx it should check my login credentials using login.aspx. Can you suggest any ideas for this and if possible give me full length code in asp.net using c#.
|
|
|
|
|
Have a look at http://aspnet.4guysfromrolla.com/articles/020205-1.aspx
it gives you a nice url/parameter manager.
You could specify in the inital url which page you want to go in after login.
for example: localhost:1885/DevelopmentWebsite/login.aspx?redirect=info
when you authenticate the user you can check the redirect param and make your redirection based on that value.
|
|
|
|