|
Hi,
I want to access same page same time from different users. Is it possible using Session. Also I don't want to use database once i create users.(I dont want to use flag if someone is login etc.)
Also if I want to restrict user not to access page same time. what can i do for this also.
Thanks
sjs
|
|
|
|
|
This mostly depends on your browser. Some browsers will start completely separate instances which know nothing about each other, others will share their session freely. (I haven't seen any modern browsers which do not share their credential data). Can't you login twice?
|
|
|
|
|
Hi
I have a problem when try to download mp3 file to the Client get that error "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."
and here is the code
Response.ContentType = "Music/mp3";
Response.AppendHeader("Content-Disposition", "attachment; filename=music");
Response.TransmitFile(sPath);
Response.End();
Hany M. Magdy
Software Engineer
cairo. Egypt
|
|
|
|
|
Response.ContentType = "Music/mp3";
Response.AppendHeader("Content-Disposition", "attachment; filename=music");
Response.TransmitFile(Server.MapPath(sPath));
Response.End();
Also you can use WriteFile method insted of TransmitFile method.
Hope this may help u....
|
|
|
|
|
thanks for answering but it have the same problem just i use Visual Studio 2008 Express Web Developer Edition.
Hany M. Magdy
Software Engineer
cairo. Egypt
|
|
|
|
|
|
wann know if a event is available to catch if someone has left the the page or not. So I can remeber him to save his things...
Thx forward.
modified on Monday, May 3, 2010 7:12 AM
|
|
|
|
|
dont get it... Please Explain
|
|
|
|
|
-Muc_ wrote: how can i query as if the site is abandoned and the person has forgotten save?
Your Qs is not clear
|
|
|
|
|
Can you please explain your question or provide some details.
|
|
|
|
|
|
Why u require an event just apply validation on the controls of your page
By using two ways,
1. Using Javascript
2. Using .Net Validation Controls
Hope this may help u.........
|
|
|
|
|
-Muc_ wrote: wann know if a event is available to catch if someone has left the the page or not. So I can remeber him to save his things...
There is know such event.Either you can capture browser close event from Javascript or session timeout if you are using session.
|
|
|
|
|
Hi all,
I've got a problem to read data into multiple columns. I only retrieve one column from a database and automatically I get one column in my gridview, but that's not what I need, I need to get the data spread over multiple columns.
For example:
-> This is what I've got at the moment:
| data1 |
| data2 |
| data3 |
| data4 |
| data5 |
| data6 |
| data7 |
-> This is what I need:
| data1 | | data2 | | data3 | | data4 | | data5 |
| data6 | | data7 |
Does anyone know how I can do this?
Thanks in advance!
Excuse me for my bad english.
|
|
|
|
|
I think You should use Datalist for this case where you can set the RepeatColumns property and display the data.
|
|
|
|
|
Why you are not using Repeater Control then ?
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
how to disable back Button and menu of browser using javascript
|
|
|
|
|
Hi,
There are lots of answer you will find in Google.
Have a look[^]
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
for disabling back button
You can do this by multiple ways,
<body onLoad="history.go(+1)">
<a href="somwhere.asp" onclick="location.replace(this.href);return false;">TEST</a>
onLoad="if(history.length>0)history.go(+1)"
for disabling menubar
You can do this by using Javascript to set page to open in Full screen mode.
Place this script within HEAD tagsif (this.name!='fullscreen'){
window.open(location.href,'fullscreen','fullscreen,scrollbars') }
For demo, Link check
|
|
|
|
|
Gr8
I require the same stuff.
Help me a lot.
Jinal Desai - LIVE
|
|
|
|
|
Oh thanks then give me some points
|
|
|
|
|
done
Jinal Desai - LIVE
|
|
|
|
|
iam using asp.net with c#;
iam having 5 textboxes
textbox1==username
textbox2=how many images on top of the page(ie enter integer value)
textbox3=how many images on bottom of the page(ie enteger integer value)
textbox4=how many images on left of the page(ie enter integer value)
textbox5=how many images on right of the page(ie enter integer value)
and a button to create
when user click on button then new page is created with username and image controls
are displayed on top,bottom,right ,left what ever he has submitted in the form and
then user can upload the images with file upload control . when he clicks any iamge
he should get the option forupload image and there should be two options previous image(the current what we have clicked)
and the new image what we have browse
how to do this can you give me example which helps me
|
|
|
|
|
I'm not sure if you can create a page, as in a physical .aspx file dynamically. But, it is possible to create and place controls during run-time.
You have to have a base page i.e. a blank page with the required panels [Left/right/...]. When the user clicks on the button on the user input form, get the values from the textboxes and use it to loop and create controls. You can create controls like this
[ControlType] control_LoopCounter = new [ControlType]()
Set the appropriate properties and add the control to the required panel.
HTH!
|
|
|
|