|
Dear All,
I have added a small piece of javascript code to create countdown timer in the Online Test aspx page. But whenever i click on next button in the aspx page the javascript also get refreshed and stops the countdown. As i need to navigate through the records and display the questions in the aspx page, i need to post back on click of next button. can you please guide me to proceed with the countdown timer in my aspx page.
Thanks and Regards,
Sushanth_CP
|
|
|
|
|
So you're counting down to a certain time... Now if you keep this time (or datetime) in a session variable, you'll be able to calculate how to 'further-countdown' right?? This makes your javascript continue in stead of start over and over again...
|
|
|
|
|
Thanks for your reply.
But how can i retrieve the value of the session variable into the javascript. Pls help me in this regard.
Thanks and Regards,
Sushanth_CP
|
|
|
|
|
You can't, but you can set the session variable as javascript in your page...
use the Page.ClientScript.RegisterClientScriptBlock function to write javascript to your page..
|
|
|
|
|
You can also access the session value in javascript by setting it to a hidden field and then access it in JS.
|
|
|
|
|
Thanks for the information...
it will be greatful if u can provide me with more information on hidden field and JS access.
Thanks and Regards,
Sushanth_CP
|
|
|
|
|
Dear all
can any body help me when I try to refresh only the AdRotator control. I used tag to do it, but its refreshing the whole page. But I want to refresh only the AdRotator control part. Not the other parts in the web page. I tried it by putting it in panel and by putting it in web user control. In all the cases its refreshing the whole form. Please advoice me in this regard.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
I suppose you cannot refresh a control only. You can only refresh pages containing controls, which you've already found out. If you want to rotate ads, either use JavaScript, or place the ad-rotator in a seperate page (using an IFrame for example) and refresh that... I hate frames though, so i'd rather choose JavaScript..
|
|
|
|
|
use AJAX
Best Regards
3ala2
|
|
|
|
|
put your control in an iFream tag
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
it's iFrame actually
Best Regards
3ala2
|
|
|
|
|
Dear could you please give me some piece of code for that.
Thank you.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Dear could you please give me some piece of code for that.
Thank you.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
I need to send the current Web Page(including datas) to be sent as HTML Mail on click of Send Mail Button.
(i.e).My page has lot of Input Variables,On click of send mail button i need to send the same page along data and Html Format of the Current Web Page to be sent as HTML Mail.Is there is any way to save the current page as HTML and can be sent as mail.
Sathiyaraj Ganesan
|
|
|
|
|
Dear all
I am able to open a window using buttin click and few lines of java script code. But I am unable to pass the values of this second or child window browser to the first browser or the parent browser. Can any one of u advice me or give me little much of code to achieve this task.
U can mail me to : aleem076 know how to do it.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Have you read this[^] page?? It tells you a lot about passing variables to child windows and back...
|
|
|
|
|
I tried with that site, its showing about the car racing friend, can you please show me the right way please.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Hello All,
Can we close all IExplore instances running on client machine from using JAVASCRIPT? If yes can somebody provide me the details?
-- modified at 0:06 Monday 4th December, 2006
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Ofcource you'll not be able to do 'stuff' in a clients process thread, thank god!!
|
|
|
|
|
I'm trying to access XML files stored on another server via my ASP.NET 2.0 Web Application. I've tried the UNC path and even a mapped drive letter. I know this isn't a coding issue but security issue. Do I need to install IIS on the other server and setup the ASP user account to have access?
Brent
|
|
|
|
|
That's one possibility, which I wouldn't choose.. If you can reach the 'other' computer from within your network, I'd solve the security issue in stead of installing an additional application in order to solve your problem.
|
|
|
|
|
I have an ASP.NET form with about 20 textboxes and several dropdown lists. Is there a way to send all of the information to my database handling routines - other than creating 30+ parameters?
Doug Thomas
|
|
|
|
|
Hi ,
yur can use model class for that. create one class which contains all set and get property and then create object of that calss that object will contain all parameter and finally pass this object to the database .
please let me know if u required more help i will send u code .
"It is not enough to have a good mind. The thing is to use it well."
Thanks
Jitendra
|
|
|
|
|
Thanks - code would be helpful. I come from a Visual FoxPro background and some of this is slow going...
Thanks again
Doug Thomas
|
|
|
|
|
hi,
in your model class two property is defined like this
private int caseId;
private string dbnumber;
public int CaseId
{
get{return caseId;}
set{caseId=value;}
}
public string DBNumber
{
get{return dbnumber;}
set{dbnumber=value;}
}
this is your two property in model class and u can access this two property by using model class object like this
Model.Case objModelCase = new Model.Case();
case is the model class and objModelCase is the object of case class
objModelCase.DBNumber=txtDrNumber.Text;
objModelCase.CaseId=txtCase.Text;
and finally u can paas this objModelCase object to database.
i think this will solve your problem.
"It is not enough to have a good mind. The thing is to use it well."
jitendra
|
|
|
|