|
Hi All,
i have created dynamic button and adding them to the panel, when i click the button it refresh and buttons are vanish, i want to handle event of button to show value in textbox
|
|
|
|
|
You have absolutely no idea about how ASP.NET events and dynamic controls works. ASP.NET will not maintain viewstate for the dynamic controls if it is created after the viewstate events. Please read about viewstates and ASP.NET page lifecycles.
|
|
|
|
|
|
|
i am developing a web app and i wud like to use AJAX . I am receving one other page and dispaly on my page but other page events does not work here.
Plz help.
|
|
|
|
|
prakash_adysoft wrote: I am receving one other page and dispaly on my page but other page events does not work here.
I didn't understand you problem. can you please explain it clearly?
prakash_adysoft wrote: i am developing a web app and i wud like to use AJAX
If you are new in AJAX, please start with AJAX in W3School[^]
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
i am developing a web app and i wud like to use AJAX "Adrotator control" for both images and swf files, Where cud i find these controls for free.
Plz help.
|
|
|
|
|
Subin Alex wrote: AJAX "Adrotator control"
Adrotator is not part of AJAX framework, right? Here[^] is a KB article which explains how to use it.
|
|
|
|
|
but i saw the AJAX controls for asp.net2.0 with "update panel control" suporting the Adrotator cntrol.
|
|
|
|
|
I am trying to design a CacheManager class that will automatically repopulate the cache item once the dependency changes or when it timesout without using the CacheItemRemoveCallback delegate. If anyone has developed anything similar to this and has some ideas please share them with me.
Thanks,
Steve
|
|
|
|
|
As with Session, Application, and app.config values why not just create static class such as CachedItems and do something like this?
For example, why not just do something like this?
<br />
public static class CachedItems<br />
{<br />
<br />
private static DateTime cacheExpirationDateTime<br />
{<br />
get<br />
{<br />
if (DateTime.Now.Hour < 8)<br />
return DateTime.Today.AddHours(8);<br />
else<br />
return DateTime.Today.AddDays(1).AddHours(8);<br />
}<br />
}<br />
<br />
public static YourType YourObject<br />
{<br />
get<br />
{<br />
Object x = System.Web.HttpContext.Current.Cache["YourObject"]<br />
if (x == null)<br />
System.Web.HttpContext.Current.Cache.Add("YourObject", getYourObjectMethod(), null, cacheExpirationDateTime, Cache.NoSlidingExpiration, CacheItemPriority.AboveNormal, null);<br />
<br />
return (YourType)x;<br />
}<br />
}<br />
<br />
}
I didn't get any requirements for the signature
|
|
|
|
|
Steve Holdorf wrote: or when it timesout
Why do you want to refill the cache when it time out? It will make the timing out mechanism kinda pointless.
|
|
|
|
|
I did not make this clear in the first post. What we are doing is a file cache for a web config file. Now, when the xml file changes we want to insure that the new file object (containing the config file) is updated, which I have done using properties. Also, we want to do the update on expire timeout. I see your point of not needing to update on timeout and have explained this to my boss but he feels that this is necessary? Anyway, thanks for the help.
Steve
|
|
|
|
|
Of course using the CacheItemRemoveCallback is not for refilling the cache item once called, this I know. What I do not know is what the use of the CacheItemRemoveCallback delegate is for. Can anyone give me an example?
Thanks,
Steve
|
|
|
|
|
hi
Error: ActiveX component can't create object: 'Scripting.FileSystemObject'
i detected this error in my application.
i tried to reregister the scrrun.dll
i tried to gice permission to this kind of object in the registery
i reinstalled the windows script
but the error still occur
Any advice please
regards.
dghdfghdfghdfghdgh
|
|
|
|
|
show us your code.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
ellllllllie wrote: i tried to reregister the scrrun.dll
what happend after that?
ellllllllie wrote: Error: ActiveX component can't create object: 'Scripting.FileSystemObject'
Please post the code.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
I need a process(say,timer) to start running for every new entry of a row in a database.I have no idea where to begin.Any suggestions?
|
|
|
|
|
sounds like you are looking for a stored procedure which runs for every INSERT on a given table.
|
|
|
|
|
yeah,almost.Well,to be more detailed...Im running a system where a user logs in his/her complaints and everytime a new complaint is registered, I need a timer to begin at the server-side.My database is running on SQL Server and the code for the system has so far been written in VB .NET
How do i proceed?
|
|
|
|
|
why do you want to run a timer for every new entry? It sounds overkill to me. Imagine how many timers you will be running.
Can you modify your table schema? I'd add two or more columns
1. StartTime - This is the time when the record was entered
2. ModifyTime - [You may not need this one] This is the time when the record was modifed
3. EndTime - Time when you want to stop timer.
Then at any given time you can compute time from those three columns.
If you can not modify your table, consider adding new table to hold for your those times.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Yeah,it does look like overkill to me too.I already have those columns in the table.and i can always add few more if needed.but the point is that at the end of that time i need a process to run.This process is the same for all entries.How do i make it do that?
|
|
|
|
|
liz3 wrote: but the point is that at the end of that time i need a process to run
well, your requirement are a bit blurry to me. Let me see if I got it right. What you want to do is whenever there is an entry to the table you want to run a timer then when some known time elapses, you want to execute something, right?
First you can not do this using asp.net, period.
you have two choices, you can write a standalone application, or even better windows service run your timer and what ever action you want. Or you can do it entirely within SQL server. For this you have to write a trigger and sql job.
I prefer to write standalone application or service rather than do it in SQL.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I must have missunderstood your problem the first time.
Let me give an example:
1) Trouble ticket is created at 9:00am
2) At 15 minutes after the ticket is created you need to check to see if it has been assigned to a suppoort representative, if not contact a supervisor as part of an escallation procedure.
Is this something like what you are trying to solve ?
One way to solve this is write a Windows service that checks the database at 2 minute intervals to see if escallation logic needs to be run. You would compare the start time of the trouble ticket and the status to determine what action is required.
|
|
|
|
|
thankyou! i'll try it out!
|
|
|
|