Jump to content


Check out our Community Blogs

mith

Member Since 14 Nov 2009
Offline Last Active Aug 22 2012 09:18 PM
-----

Topics I've Started

Start application before user log out of OS

22 August 2012 - 03:50 AM

Hello,

I want to make a program which store data, when user log into and log out of windows.
First part was pretty easy - i made scheduled task in taskschd.msc and add action which trigger wile user log in. Problem is with 2nd part because in taskschd.msc i can't find trigger "user log out"

Can anyone help me solve this problem?

Mith.

ASP problem with PlaceHolder

20 August 2012 - 05:16 AM

Hello,

I created a dynamic table which store data from my database, now i want to make it selfupdated every few seconds so i will not have to refresh page manualy, to do so i used timer and ontimedevent method it looks like:

protected void btnGenerate_Click(object sender, EventArgs e)
	{
		aTimer = new System.Timers.Timer(10000);

		// Hook up the Elapsed event for the timer.
		aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);

		// Set the Interval to 2 seconds (2000 milliseconds).
		aTimer.Interval = 2000;
		aTimer.Enabled = true;
	}
	private static void OnTimedEvent(object source, ElapsedEventArgs e)
	{
		contactlist ccc = new contactlist();
		ccc.CreateDynamicTable();
}
After click on Btn my timer start and call for method CreateDynamicTable() first call is going well but after 2 seconds (timer is set like this) i get exception
Object reference not set to an instance of an object.

in the 2nd line:
private void CreateDynamicTable()
{
getUserInformation();
PlaceHolder1.Controls.Clear();
int tblRows = Rows;
int tblCols = Columns;
Table tbl = new Table();
PlaceHolder1.Controls.Add(tbl);

for (int i = 0; i < tblRows; i++)
(...)
}

and the xml that loading place holder
<div>
    <asp:Button ID="btnGenerate" onclick="btnGenerate_Click" runat="server" Text="Show" />&nbsp;<br />
        <br />
        &nbsp;<br /> <br />
        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
        <br />
        <br />
    </div>


Can any1 give me a clue what is this about..?

Http Rest Api

25 July 2012 - 10:50 PM

Hello,
Im developing an app which use HTTP REST API i load response to string which looks like that:

string report = "<html><head><tittle>JSLEE OC WebSerbice</title></head><body>
<h3>JSLEE webService received REST request:</h3>
<p>HttpRequest..............</p>
<p>X: 52 10 28 <p> Y: 32 12 32 </body></html>"

i want to load value of X and Y to other variables, how can i do that?

[C# Outlook Add-In] How To Get Into Xml Button?

18 July 2012 - 02:09 AM

Hello !

I have created a add-in application for outlook 2010 in which i created a new tab and i put ther new button - all made by .xml file.

Now i want to get to created button values to be able to change its name after click. how can i do that?

xml:
<button id="buttonTest" label="buttonTest" onAction="Clickvol2" showImage="false"/>

where clickvol2 is method which suppose to change value - now its empty becouse my lack of knowlege..




Ps sorry for my english.

JDBC problem again

23 January 2012 - 10:11 AM

Hello again !
i have another problem with JDBC, how can i make a SQL statement with one of the value = null? i mean i want give one of foreign key a null value and after i run the statement, application just hang i mean i cant click on GUI buttons, when i try to close frame nothing happens
any tips?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download