|
And to you. It's xmas here in an hour. We're madly wrapping stuff, as usual,
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Wishing You A Merry Christmas Boss !!
cheers,
Abhijit
|
|
|
|
|
thanx for the response & merrry chrismas
|
|
|
|
|
I am currently working on a website that is an advertisement portal for businesses. Advertisers can create an account, select various options for listing (State, caregory, etc) and upload a graphic is measured in a multiples of an "unit". An "unit" is an image or a flash file that is 180px wide and 120 high. An advertiser can choose multiple units that are horizontal or vertical, i.e, 2 single units aligned horizontally or 2 single units aligned vertically.
I have gone to the point where the the website is working fine. I am stuck at a point I am going to lay out the "units" and display them properly, without any empty space between them. As an example, if we had 4 advertisements, a horizontal 2 unit ad, a vertical 2 unit and 2 single unit ad, like so -
|
2 unit ad | 2
------------------| unit
| | ad
1 unit | 1 unit |
ad | ad |
I am currently storing the advertisements units in a database with attributes that are used in the web form to build a table (i.e., colspan, rowspan, etc). I am not sure if this is the right approach, I fear it is not. I shall be very grateful if I got some advice.
Thanks, Indy
|
|
|
|
|
Hi,
m working on a application in which i want to find the online users and offline users.I hv created a table in database which is being updated after successful login of each user,but my problem is that I want to update that table after each User's Session End event.But Session_End() event is not firing.I m having only way to write the code for Logout button,but I want to update the table if a user closes his browser or session ends automatically.How to work with Session_End()
Help me...........
|
|
|
|
|
first thing you cannot capture event if browser is closed by user...
second thing your session on end event will only work if your session mode in configuration file is set to inproc.
umerumerumer
|
|
|
|
|
mr_muskurahat wrote: first thing you cannot capture event if browser is closed by user...
That's wrong. session_end will be fired when a session abandoned or the specified timeout reaches. It will fire even if the browser is not active AFAIK.
|
|
|
|
|
I think,when user just close the browser then Session_End is not fired.Have you went through it ever.
Cheers!!
Brij
|
|
|
|
|
Brij wrote: when user just close the browser then Session_End is not fired
Yes that's right. But it will be fired later when the timeout reaches.
|
|
|
|
|
Thanks for you info.I'll check it
Cheers!!
Brij
|
|
|
|
|
N a v a n e e t h wrote: Yes that's right. But it will be fired later when the timeout reaches.
100% Correct !!
-------------------------------------------------------------------
Hey Navaneeth, Wishing You A Merry Christmas
cheers,
Abhijit
|
|
|
|
|
Thanks. Wishing you and your family the same.
|
|
|
|
|
There is a best practice for this issue.
You develop your mainpage with two frames one is hidden and one is main with 100% height.
All your project works at 100% frame. And at 0% frame you write a javascript code to open a popup at client side window.onunload event (body.onunload does not work for ie7 tabs). And at that opened window means that user left your site.
But it is still impossible to capture if user closed computer via power button.
|
|
|
|
|
Is your Session_start eventy is fired everytime at the time of starting the session.
Cheers!!
Brij
|
|
|
|
|
div_gusain wrote: I want to update that table after each User's Session End event.But Session_End() event is not firing
How you came to a conclusion that session_end is not firing?
|
|
|
|
|
Hey div_gusain,
Just few month back , I had face the same problem and done some work around. Hope you will like this
If you are using MasterPage then use following code on the OnUnload Event of Master Page
onunload="DeleteUserLog()"
Here is DeleteUserLog Funtcion ,
function DeleteUserLog()
{
if(window.event.clientX < 0 && window.event.clientY <0)
{
window.open("CloseSession.aspx", "OpenWindow_Close_Session",'left=12000,top=1200,width=10,height=1');
}
}
CloseSession.aspx is a temporary popup file, that will do the rest of the job for you !!!
<code>if(Session["UserID"] != null)
{
}
string strPopupScript = "<script language="javascript">self.close();</script>";
Page.ClientScript.RegisterStartupScript(typeof(Page), "PopUpScript", strPopupScript);</code>
Let me know if this helps you
cheers,
Abhijit
|
|
|
|
|
Hello everybody,
Can please tell me how to get Multiline Textbox in a ASP.NET mobile form.
Any other solutions. I have to enter multiple lines into text box.
Thank you.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
|
Looks like framework configuration issue. Check the event viewer to see what is the error.
|
|
|
|
|
On my web form,I have applied a MasterPage,which contains a user control. This user control in turn contains a link button. I want to set this link button as the default button on my web form.
I found 1 free dll on internet which gives this method : - DefaultButton.SetDefaultButton(textboxControl,ButtonControl);
But this method, somehow, does not allow link button (only Buttons & ImageButtons are allowed).
Please Help.
Thank you .
|
|
|
|
|
Have you tried the DefaultButton property? Something like
<form id="form1" runat="server" defaultbutton="yourLinkButton">
|
|
|
|
|
Yes,I have tried this in a separate sample project & it worked.But I am confused about ,on which page should I apply this in my project,B'coz here, the link button is inside a user control which is placed on the master page.And this master page is applied to my webform().
I tried this on the user control's tag,but it din't work.
Thank for ur reply.
But I still stuck,please help.
|
|
|
|
|
Hey,I got it!!
I took all the required controls inside a panel,and then set its property defaultButton to a button(say "Button4"), made it invisible and called linkbutton's Clink Event on Button4_Click.
Seems simple.
Thanks a lot...
|
|
|
|
|
That was tricky. But I assume you can use the same button and change it's style like a link button by applying some CSS. Then you don't need to hide the button.
|
|
|
|
|
Yeah,I had tried that earlier.But then it was giving a diferent effect to the viewer and since there are other link buttons too,so all of them should look alike.That is why,I had do it like this.
But anyways,Thanks a lot for your immediate responces.
|
|
|
|