|
Thanks for the reply.
I simply forgot to build the table at the post back before the event handler runs.
Sometime this stateless, connectionless model aggravates me.
"When you have made evil the means of survival, do not expect men to remain good. Do not expect them to stay moral and lose their lives for the purpose of becoming the fodder of the immoral. Do not expect them to produce, when production is punished and looting rewarded. Do not ask, `Who is destroying the world?' You are."
-Atlas Shrugged, Ayn Rand
|
|
|
|
|
Hi all,
I was a doing a webapplication in visual studio .net 2003. I have to access an MS Access database but it shows some error like this..The Microsoft Jet database engine cannot open the file 'c:\inetpub\wwwroot\WebMed\med.mdb'. It is already opened exclusively by another user, or you need permission to view its data. . But it was working fine in another machine.
Can anyone help me.
Thanks in Advance
Sebastian
|
|
|
|
|
Make sure the ASPNET and IUSR_[MachineName] user accounts have permission to read the file.
|
|
|
|
|
now i am using windows XP and file system is FAT. then can you say how to set this property.
Thanks
SEbastian
|
|
|
|
|
right click the file -> properties -> security tab -> add button
|
|
|
|
|
I have some reports that generate a collection of objects i am binding into a Repeater object. This works fine, however the report contains a number of boolean values for example CanSelect, CanDelete, CanEdit, CanView.
I want to use these conditions to display / hide the relevant links, but i'm not sure how to go about this.
Any recommendations?
Cheers Chaps
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Hi,
I am developing a web base project using c# in Visual studio 2005. I want to use a Session which expires after 7 or 8 hours or may be much more than that. Is it possible to increase the time of expiration for session OR set its value never expire? If anybody of u knows please share with me.
Thanks a lot,
Abubakar Malik
|
|
|
|
|
Check your web.config file and see the time out settings. If you still have a problem then have a look at this msdn link[^]
|
|
|
|
|
Ya, It works on my PC, Thanks
|
|
|
|
|
Hi all, iam using a program that does monitoring on users actions, this program generates an html table that contains all logs. I need to read this table and insert it row by row to an access database where i can do my queries. I need help doing this!!!
So far i have managed to read this html file in a stream reader, i need to know how to iterate through this stream reader and insert each td in its row.
thsnks
|
|
|
|
|
can i have sample application using any "ASP C# .net" + "Commerce Server 2002".
|
|
|
|
|
Hi all,
I use an infinite for loop in my code to do some tasks and use thread.sleep to wait for some time and restart the loop again.
for(;;)
{
// do something.
thread.sleep(time);
}
i use around 5 hrs for the sleep and it works fine for two or three days, but after that i get an exception "thread aborted". i think that its because of memory problem. Any idea how to catch up this prob?
thanks in advance.
Ali
|
|
|
|
|
Wow, why are you using an infinite loop on purpose? What are you trying to do, maybe we can suggest an alternative for you.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
i actually wanna run a cron job, and i wrote a windows service for this, and used a timer and set the time. but what happens is that, i have written a code to mail an indication to my email id for each start up of the execution, and after that i do some database operations and mailing services. but the database operations work out only when i start the service, and dont work out in each execution [ after timer time is elapsed ], the only mailing service is working out [ i get indication on each 5 hrs and all other users get their emails ].
any idea?
thanks,
ali
|
|
|
|
|
An infinite loop is generaly for some core process that happens continuously until an exit condition is reached, with maybe a few millisecond sleep.
<br />
do<br />
{<br />
<br />
<br />
} while(!ExitCondition)<br />
Try looking at the System.Threading.Timer class for things that have a large time lapse in between invocations.
In addition, a ThreadAbort exception indicates that another process closed the thread, and the Abort is raised. You might what to check what has a handle to the thread, and could possibly close it.
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
i actually wanna run a cron job, and i wrote a windows service for this, and used a timer and set the time. but what happens is that, i have written a code to mail an indication to my email id for each start up of the execution, and after that i do some database operations and mailing services. but the database operations work out only when i start the service, and dont work out in each execution [ after timer time is elapsed ], the only mailing service is working out [ i get indication on each 5 hrs and all other users get their emails ].
any idea?
thanks,
ali
|
|
|
|
|
The only thing i can suggest is to add some tracing around the DB logic part and see what it is doing. There is no reason that a DB Query should not work on an event.
T
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
i am creating a directory using code
<br />
string path="C:/My Documents/";<br />
Directory.CreateDirectory(path);<br />
directory is created successfully and i can view it in my c drive, now if i tries to upload a file using code
<br />
if (FileUpload1.HasFile)<br />
{<br />
path += FileUpload1.FileName;<br />
FileUpload1.SaveAs(MapPath(path));<br />
}<br />
it produces an error message showing "virtual path 'C:/My Documents/fileName' does not exists" while path do exists in my drive. any suggestion about the reason of this error.
Thanks in advance.
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
Mappath is used to get the physical path from a virtual one. In your case you already provide the physical path so you don't need to use the beforementioned method.
|
|
|
|
|
thanks, it worked
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
Hi All,
I've some textboxes as for Name,Age,DateofBirth but as run this project it leave something yellow background for the Name textbox. And i don't want to have this color by default ....
Can anybody let me know how to do it
|
|
|
|
|
Use the following...
<asp:TextBox id="TextBox1" BackColor=White />
Koushik
|
|
|
|
|
Sorry <asp:textbox id="TextBox1" backcolor="White">
this line of code is not working properly ...........
plz any other way to solve out my problem
|
|
|
|
|
try this textbox.style.backgroundColor ...
<< >>
|
|
|
|
|
This colour may be because of google tool bar's autocomplete property. Try uninstalling this tool bar if it is installed in your machine.
Regards
Sebastian
|
|
|
|