|
So putting a timer control on a page which has controls which autopostback is not a good idea yeah?
How annoying, I will have to scrap the timer control.
Be good if you could re-load the page without the whole code running
|
|
|
|
|
|
Hi in my image click i am hiding one TD column in my table and assigning another image url to my image...,
Everything working fine...,
But After hide if i click the changed image it have to show the TD column...,Its not working fine....,
How to do that...,
This is my code for hiding the TD column:
function centerimgclick()
{
var ch=document.getElementById('CenterImg');
if(ch.src="Images/LeftHide.jpg")
{
document.getElementById('LeftTD').style.display='none';
document.getElementById("RightTD").style.width='100%';
document.getElementById('CenterImg').src="Images/LeftExpand.jpg";
return;
}
else if(ch.src="Images/LeftExpand.jpg")
{
document.getElementById('LeftTD').style.display='block';
document.getElementById("RightTD").style.width='80%';
document.getElementById('CenterImg').src="Images/LeftHide.jpg";
return;
}
}
and calling this script in my image click like this:
<img id="CenterImg" src="Images/LeftHide.jpg" onclick="javascript:centerimgclick();"/>
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Instead of document.getElementById('LeftTD').style.display='block';
Have you tried:
document.getElementById('LeftTD').style.display='table-cell';
Hope this helps,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
hi all,
I used this site a reference for many thing . I got answers from other,s post itself .Rarely i posted questions
Now i am facing a problem . I were using module variables in application .Now we chnaging to session varibles
I am using an object of a class in each webpage . since i dont want to declare that object in each function i am declaring at the form level
when i was using module variable it was not giving any error
i changed it to session variable . Now it s giving an error
error is pasted below
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.
so i added EnableSessionState="True" to page directive . then also it is giving error
this is the code that gave the error
Partial Public Class Chart
Inherits System.Web.UI.Page
Dim ObjCls As New MVCTM.ClsFetchApply("", Session("country"))
Dim OraMod As New MVCTM.ModMain(Session("country")) Dim dt As New DataTable()
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
when i changed the declaration in to form load it is not giving any error
Partial Public Class Chart
Inherits System.Web.UI.Page
Dim dt As New DataTable()
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ObjCls As New MVCTM.ClsFetchApply("", Session("country"))
Dim OraMod As New MVCTM.ModMain(Session("country"))
Can any one suggest me a solution
thanks & regards
nevviin
|
|
|
|
|
Hi...
You can't get the Reference of session before pageload... that means in Pageinit
|
|
|
|
|
hi
thanks for reading my post .
Is there any way to create an instance of the class using session varibale at form level ? or I have to declare for each function ?
thanks & regards
nevin
|
|
|
|
|
nevincm wrote: Is there any way to create an instance of the class using session varibale at form level ?
No. When the Page object is created it's too early to use Session variables, as it's determined later if the page is sessionless or not.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Can you not say something like:
Dim ObjCls As MVCTM.ClsFetchApply
Dim OraMod As MVCTM.ModMain
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ObjCls = New MVCTM.ClsFetchApply("", Session("country"))
OraMod = New MVCTM.ModMain(Session("country"))
|
|
|
|
|
Hi All,
In a .aspx page i run some heavy javascript code that takes 7-10 seconds to be completed,before starting
this processing i display a .gif image,In this image a dot automatically rotates.This image shows the user that
processing is being done and he should wait.Rotation of dot is in-built in this image.
But when javascript code runs,in image this dot stops rotating.
i just know that this happens due to heavy javascript code.
Please provide some solution or some other alternative.
Thank You.
"Every thing matters in this world but what you think,it matters more.
When thinking changes,the whole world changes."
|
|
|
|
|
The event for button click on my firstpage.aspx:
session["username"]=TextBox1.Text;
Response.Redirect("~/second.aspx");
second.aspx
page load event:
if((string)Session["username"]==null)
Response.Redirect("~/firstpage.aspx");
else
Response.Write("Welcome");
log out button click event of second.aspx:
Session["username"]=null;
Session.Abandon();
Response.Redirect("~/firstpage.aspx");
Code is working and i am redirected to firstpage.aspx after clicking log out button but when i am clicking back button of browser i can also access second.aspx which i dont want.What should i do to restrict the access of the second page after logging out???
|
|
|
|
|
Check whether u can access the controls of secondpage.aspx after logout or u just see the page.
I think if you try to access any control of secondpage.aspx, u'll be redirected to firstpage.aspx and will be asked for username & password.
|
|
|
|
|
If you are not already using it, I highly recommend the asp.net login control.
Its very good and allows you to do lots of things such as the above.
|
|
|
|
|
He is right, login cotrol is better option.
|
|
|
|
|
nagendrathecoder wrote: , login cotrol is better option.
Not always. It will always better to use your own custome login control.
cheers,
Abhijit
|
|
|
|
|
One thing you can do:On clientclick of Logout button clear the window.history".It'll solve your problem
Cheers!!
Brij
|
|
|
|
|
but in my program i am checking my users with their userid and password from sql server database so login control i think is out of scope.Second, After authentication i am maintaining the session but unable to log off what could be the solution?
|
|
|
|
|
Error Msg panel is not coming when updatePanel is applied on page else it is showing.Error msg is like pop up on a page.
can any one suggest me solution for this.
|
|
|
|
|
I have no clue what you are trying to say here.
Let me try and reword it a bit better.
When you add an UpdatePanel to the page, your MsgPanel is not being showed and the MsgPanel is works like a popup, to show a error.
Is this what you are trying to say????
|
|
|
|
|
Hey guys, I looked around for a some kind of walkthrough or tutorial for using flash files in an asp.net page but couldn't get any ! can you help me out and guide me to a reference or something !
thanx
Mr.K
|
|
|
|
|
use Object Tag of asp.net
cheers,
Abhijit
|
|
|
|
|
could u be a little more specific ?
Mr.K
|
|
|
|
|
try this
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="265" height="150">
<param name="movie" value="<code>FilePath</code>" />
<param name="quality" value="high" />
<param name="bgcolor" value="none" />
<param name="wmode" value="transparent" />
<embed src="<code>FilePath</code>" quality="high" wmode="transparent" bgcolor="none" width="265" height="150" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
</object>
cheers,
Abhijit
|
|
|
|
|
Hi,I am developing an webpage which runs on a barcode scanner.There I have given one TextBox in which the scanned input will come.I want the cursor to be moved automatically to the next control as soon as the scanning is complete.Right now,the user scans and then presses Tab key to go to the next control.
ARINDAM
|
|
|
|
|
hey buddy ! dunno if this is what u lookin' for, but when your scan is completed using this code you can go to the next control.
control.focus();
|
|
|
|