|
how to use the window service for autorefresh the datetime in asp .net with c#
|
|
|
|
|
For page auto refresh use this:
120 represents 120s (2 minutes) and index.php represents the page you wish to refresh!
|
|
|
|
|
can you give example for window service or web service
|
|
|
|
|
nithydurai wrote: use the window service for autorefresh the datetime in asp .net with c#
I am sorry, but this doesn't make any sense. Do you know what a windows service is ?
|
|
|
|
|
i have created a table from that table i want to transfer some data to tally for that i have Generated a xml for that specific table and to connect with tally m using RTSlink but i have to pass tally xml tag in xml in RTSLink so how to map xml tags with tally xml tgas in c#asp.net please help me
|
|
|
|
|
You have many classes available to manipulate XML. Use XMLDocument , XMLWriter etc.
Read the data from your table, use XMLWriter to create a XML file which matches the tally's required format.
|
|
|
|
|
use XMLWriter to write a file on disk.. .which is of same Schema as tally understands, and then invoke the tally import from xml...
I dont know tally but u can use RTSLink dll to import or export tally programatically...
see
http://www.rtslink.blogspot.com/[^]
and
http://www.rtslink.com/[^]
This will do your work easy.
Abhishek Sur
|
|
|
|
|
In my page i am creating a set of controls dynamically for adding attributes for a product.
Initially it will show a add attribute button. On clicking that first set of textbox to enter attributes will be shown.
Also a add more button will be showing .
On clicking the addmore button another set of textbox will be added to the pane keeping the first one there.
I have handled the code in the page event to keep the first one when adding the new one.
This will check the request object contains the attribute field and if present it will be added first.
if (Request["ctl00$ContentPlaceHolder1$TxtAttribName" + i] != null)
{
add the requested content with same name.
}
I am getting this worked fine. But some times when the response from server is slow i am not getting the first one which are added from request object
Do anyone can help me in this?
|
|
|
|
|
Harikrk wrote: if (Request["ctl00$ContentPlaceHolder1$TxtAttribName" + i] != null)
{
add the requested content with same name.
}
This is not a good method. You will end up with viewstate issues.
I suggest to use GridView/DataGrid with textboxes placed on template columns. When "Add more" button is clicked, add new rows to the grid's datasource and rebind grid.
This makes the process easy and ASP.NET manages viewstate for the dynamically created textboxes along with the parent control (GridView/DataGrid).
|
|
|
|
|
yaah N a v a n e e t h is right..
the controls dynamically created will be stateless...
and also u have hardcoded the client id ... which may cause you problems if you change the id of masterpage or use dynamic masterpages... in future..
Using Grid instead will solve your problems.and also easier to handle
Abhishek Sur
|
|
|
|
|
I am using MDB file in my appln. Physically, I opened that mdb file. When I use that mdb file in my application, I want to check that whether that mdb file is opened separatly or not. How to check it. Plz help. Tnx in adv.
Balasubramanian K.
|
|
|
|
|
You can use MS Computer Management console programmatically for this.
Try the links:
MMC Programmer's Guide
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mmc/mmc/contextmenu_object.asp
MMC Reference:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mmc/mmc/mmc_interfaces_and_methods.asp
Abhishek Sur
|
|
|
|
|
Tnx for your reply...Actually, I've opened mdb file exclusively. I want to check whether it is opened or not...Actually I am getting an error File cannot be accessed. It is in use.
Balasubramanian K.
modified on Thursday, August 28, 2008 10:08 AM
|
|
|
|
|
|
Is it possible to use API in asp.net web application.API is created in windows application
|
|
|
|
|
Yes when the API is not using any windows application specific methods.
|
|
|
|
|
hi every one
Plz tell how to to convert rtf file to html .
Looking forward to hear from you
thanks... gaurav
|
|
|
|
|
|
thanks for reply my mail id is:
guptagaurav212@gmail.complz forward that.
thanks....
|
|
|
|
|
Hi,
How to logout if the authentication is single signOn.
Our appication has ASP session & ASP.Net session both, I tried clearing ASP.Net session first & then calling ASP logoff page to clear ASP session but not working.
I have tried deleting cookies, abandon session, forms.authentication.signout. but nothing is working.
when I click logout instead of showing login page it opens up the main page.
Some body pls help me. I m breaking my head from past one week.
FutureSE
WhiteHawk
|
|
|
|
|
|
Does Application.Quit() work for Web application also. should i place this code in logout.aspx?
FutureSE
WhiteHawk
|
|
|
|
|
FutureSE wrote: Does Application.Quit() work for Web application also. should i place this code in logout.aspx?
I am lost completly.
|
|
|
|
|
have you used Application_BeginRequest event of Global.asax to check weather the session state is active and also the user is authenticated....
u can use session guid to check.. and whenever it fails to get the guid, you can transfer the page to login again from that event...
hope this will do...
Abhishek Sur
|
|
|
|
|
Global.asax is empty
every thing is authenticated at SSO & web server(application)
One more observation :If sm body try to login who dont have access, it gives err, after that you try to access any page it gives the same error. it wont promt login page. one has to close the brower & open.
sm where user authentication info is stored by sso. I need to clear that to logout.
Nihal Chand
|
|
|
|