Click here to Skip to main content
15,927,344 members
Home / Discussions / C#
   

C#

 
AnswerRe: newbie trying to open c# .sln in visual studio Pin
Henry Minute23-Jun-09 3:35
Henry Minute23-Jun-09 3:35 
QuestionBackup and restore of mysql through C# Pin
mariamkhaqan23-Jun-09 2:14
mariamkhaqan23-Jun-09 2:14 
AnswerRe: Backup and restore of mysql through C# Pin
Manas Bhardwaj23-Jun-09 2:29
professionalManas Bhardwaj23-Jun-09 2:29 
GeneralRe: Backup and restore of mysql through C# Pin
mariamkhaqan23-Jun-09 22:48
mariamkhaqan23-Jun-09 22:48 
GeneralI need to restore my database in C# windows application. I am using sql yog enterprise as database... Pin
santhosh1985april14-Feb-10 23:37
santhosh1985april14-Feb-10 23:37 
GeneralI need to restore my database in C# windows application. I am using sql yog enterprise as database Pin
santhosh1985april14-Feb-10 23:37
santhosh1985april14-Feb-10 23:37 
QuestionDetail View in DatagridView in c# Pin
Zeeshan Ahmed Memon23-Jun-09 1:40
Zeeshan Ahmed Memon23-Jun-09 1:40 
QuestionImplementing Timer Functionality in Online Test Application Pin
jjinagavenkatesh23-Jun-09 1:38
jjinagavenkatesh23-Jun-09 1:38 
I am using Ajax Timer control in my OnlineTest Application.

suppose if exam duration 45 mintes means i am adding 45 minutes to server time and i am subtracting with current server time and i will get 45 minutes with that i am reducing time in the form of seconds

like 45:59,45:58.

I am using ASP.Net 2.0,Ajax1.0, MS Access Database.

but during postback means if i click on "Next" button(next question will appear in the next page)

that time i am not able to maintain time what ever time it has taken during postback again from that i am able to continue again..please could u help me regard in this



this is my aspx page

<asp:UpdatePanel runat="server" ID="uppnlTimer" RenderMode="Inline" UpdateMode="Conditional">

<triggers>

<asp:AsyncPostBackTrigger ControlID="tmrTest" EventName="Tick" />

</triggers>

<contenttemplate>

<asp:Timer ID="tmrTest" runat="server" OnTick="tmrTest_Tick" Interval="1000">

</asp:Timer>

<asp:Label runat="server" ID="lblStartTime" Text="Start Time:" CssClass="lbl" />

<asp:Label runat="server" ID="lblStartTimeValue" CssClass="lblbold" />

<asp:HiddenField ID="hid_Ticker" runat="server" Value="0" />

</contenttemplate>

</asp:UpdatePanel>

this is Code behind code

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DataSet dsServerTime = new DataSet();
DataSet dsExamTime = new DataSet();
dsServerTime = objOnlineTestPaperBAL.GetServerTime();

dsExamTime = objOnlineTestPaperBAL.GetServerTimeWithExamDuration(ExamTime);
if (dsServerTime.Tables[0].Rows.Count > 0)
{

string serverTime = dsExamTime.Tables[0].Rows[0]["ExamTime"].ToString();

minutes = Convert.ToInt32(serverTime);

hid_Ticker.Value = new TimeSpan(Hours, minutes, seconds).ToString();

if (Session["time"] != null)
{
string time = (string)Session["time"];
string[] str1 = time.Split(':');
minutes = Convert.ToInt32(str1[1]);
seconds = Convert.ToInt32(str1[2]);
lblStartTimeValue.Text = Convert.ToString(minutes) + " : " + Convert.ToString(seconds);
hid_Ticker.Value = new TimeSpan(Hours, minutes, seconds).ToString();
Session["time"] = hid_Ticker.Value;
}
else
{
lblStartTimeValue.Text = Convert.ToString(minutes) + " : " + Convert.ToString(seconds);
}
}
}
Session["TestStart"] = System.DateTime.Now;

}



please help me regard in this....
AnswerRe: Implementing Timer Functionality in Online Test Application Pin
Gary Stafford23-Jun-09 15:39
Gary Stafford23-Jun-09 15:39 
QuestionLabel issue in Vista Pin
musefan23-Jun-09 1:18
musefan23-Jun-09 1:18 
AnswerRe: Label issue in Vista Pin
Christian Graus23-Jun-09 1:24
protectorChristian Graus23-Jun-09 1:24 
GeneralRe: Label issue in Vista Pin
musefan23-Jun-09 1:30
musefan23-Jun-09 1:30 
QuestionWhat's the best collection Pin
CodingLover23-Jun-09 0:56
CodingLover23-Jun-09 0:56 
AnswerRe: What's the best collection Pin
Christian Graus23-Jun-09 1:01
protectorChristian Graus23-Jun-09 1:01 
AnswerRe: What's the best collection Pin
DaveyM6923-Jun-09 1:10
professionalDaveyM6923-Jun-09 1:10 
AnswerRe: What's the best collection Pin
kb-boxer23-Jun-09 1:53
kb-boxer23-Jun-09 1:53 
AnswerRe: What's the best collection Pin
Rob Philpott23-Jun-09 2:16
Rob Philpott23-Jun-09 2:16 
AnswerRe: What's the best collection Pin
Mirko198023-Jun-09 2:17
Mirko198023-Jun-09 2:17 
Question[Message Deleted] Pin
yams251023-Jun-09 0:36
yams251023-Jun-09 0:36 
AnswerRe: WPF.... GRID.... !! am lost Pin
Christian Graus23-Jun-09 0:57
protectorChristian Graus23-Jun-09 0:57 
AnswerRe: [Message Deleted] Pin
EliottA23-Jun-09 3:32
EliottA23-Jun-09 3:32 
QuestionWinRTP on .NET C# Platform for streaming Pin
ray_ronnaret23-Jun-09 0:09
ray_ronnaret23-Jun-09 0:09 
QuestionMS Chart - Problem to display the records in Range Column Chart Pin
Jegansinna23-Jun-09 0:01
Jegansinna23-Jun-09 0:01 
QuestionDatagridview [modified] Pin
mjelten22-Jun-09 23:55
mjelten22-Jun-09 23:55 
QuestionA better way Pin
Sevententh22-Jun-09 23:44
Sevententh22-Jun-09 23:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.