|
Use a variable in the code behind and access it via a property that increments it
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Alternative to christian's suggestion
<%# Container.ItemIndex + 1 %>
|
|
|
|
|
i want to select a folder or a directory through folder browser in asp.net
|
|
|
|
|
You can't, no such thing exists in HTML, and that means the only way to do it, is to write a browser plug in, which is code that your users have to install, and will not be anything to do with ASP.NET.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Parwej,
thanks for reply, But where this control will get added ?
i want to add this control at specific position .
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Then put the panel on that position and add into that panel.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Web.sitemap should contain the URL of the page where sitemap control resides
|
|
|
|
|
hi,
Thanks ....i got it..
alex.
|
|
|
|
|
Don't delete your post, that just sucks.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Everyone,
I am using a web part in a page for the first time.To try how it works i did in a sample page where i first added a webpart manager and a webzone with a label control with some text.
When i try to run i get a run time error saying
"When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
I dont have sql server in my local machine but should it be needed.I am not trying to connect to database. Then why i couldnt run.
Kindly clarify me
-- modified at 3:28 Wednesday 3rd October, 2007
Thanks,
Srikanth
|
|
|
|
|
Hi,
In my web application i want to maintain list of number of user is online.
If one of them close browser without sign out then he/she will not be displayed in list.
And also i want to restrict multiple login by one user in different browser.
Kiran Banker
|
|
|
|
|
banker_kiran wrote: If one of them close browser without sign out then he/she will not be displayed in list.
You can do this with AJAX. Otherwise, you have to wait for their session to time out.
banker_kiran wrote: And also i want to restrict multiple login by one user in different browser.
Easy, have an 'is logged in' property on the user table, if they are logged in, either log out the old session ( better ), or refuse login.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: Easy, have an 'is logged in' property on the user table, if they are logged in, either log out the old session ( better ), or refuse login.
Is it a good practice on believing javascript for this ? In a worst case scenario, what will happen if user system got hanged and need a restart ? So the flag there in user table still show he is online, and prevents him from logging again.
I think there is no efficient methods for this. What do you say ?
|
|
|
|
|
If system is hanged, now he/or she has shutdown system,
now he/she wants to login once again then.
how do i change flag,
kiranbanker
|
|
|
|
|
N a v a n e e t h wrote: Is it a good practice on believing javascript for this ?
Well, AJAX is the only way you can find out if the browser was closed. It's wise to add code to manually clear sessions you know have timed out, also, if you must do this at all.
N a v a n e e t h wrote: So the flag there in user table still show he is online, and prevents him from logging again.
That's the main reason that I said it's better to kill the old session and allow a new login to take precedence.
N a v a n e e t h wrote: I think there is no efficient methods for this. What do you say ?
Yes, it's messy, no matter how you look at it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: Yes, it's messy, no matter how you look at it.
Yes it is.
It's not possible to believe on session_end also, which won't be fired all time, and it's specific for InProc.
I have seen some examples which explains this in much more efficient way by making use of cache. Cache timeout will be set as session timeout time and assign a callback function when cache timed out. Inside this function we will be able to update the flag.
This looks much closer to the problem. ?
|
|
|
|
|
With AJAX, you can capture a client side event when the browser is closed, and send a message to the server. That's what I was referring to. But, it's still messy. Turn the power off, that's the obvious example that you cannot code for.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi, Thanks for Reply
Can I check that current session_id is live or dead.
If i get that then i can compare it with session id stored in database,
if it is still live then i can restrict user from login.
kiranbanker
|
|
|
|
|
Many times answered for the same question by different people. Try doing a serch on this discussion board.
|
|
|
|
|
To maintain online users, you should go with database. On closing browser using javascript onUnload event check the window size and if less than or equal to zero update the logout flag in database as false thru AJAX. On every time login show the online users with that flag as true.
Be simple and Be sample.
|
|
|
|
|
I am using iframe in menu designing,i am getting menu in all browser like,firfox,IE6,IE7,Netscape.But in Safari Browser i am unable to see the menu.
so i need help on this,the menu should work on all the Browser.
|
|
|
|
|
hi
I m using FCK editor For Description Field in my application.and Assign Required Filed validator To that Filed.the problem is that if FCK editor contains a value then also the required filed validator error message is display..
Jintal Patel
|
|
|
|
|
Change CausesValidation="true" to CausesValidation="false" and then check whether u get the same problem.
|
|
|
|
|
hi
FCK editor Dose'n have CauseValidation Property
Jintal Patel
|
|
|
|
|
Hi,
My application requirement is that i need to navigate from Page1 to Page2 and from Page2 to Page3 Or directly from Page1 to Page3. For transferring from Page1 to Page2 i am passing the following page path in Server.Transfer "GridCollection/GridPages/GenDGSelect.aspx", this works fine. But when we transfer from Page2 to Page3 we pass the following path "GridCollection/GridPages/GenDG.aspx" we get the error "Error executing child request ...". The path is proper and ideally it should work.
Surprisingly when i navigate from Page1 To Page3 using the above mentioned path it works fine.
Also when i change the path of Page3 to "../GridCollection/GridPages/GenDG.aspx", transfer from Page2 to Page3 works fine but the same fails while transferring from Page1.
I am totally confused out here, please help me out.
Thanks,
Anees
|
|
|
|