|
Hi All,
I want to develop a dynamic slider in jquery for that i need that jquery must get all images file names from the folder dynamically not static can any one help me out???????
|
|
|
|
|
jquery cannt do that without the help by http server
|
|
|
|
|
I don't know who downvoted this, but I have voted you back up. Whoever it was their rep was small, so my upvote will more than counter.
First, jquery alone can't do this for you, it needs to get the information from the server (assuming the files are on the server). You'll need to do some googling as a full solution will take time but:
- On the server you need to create a JSON result with the paths of the files
- On the client side you need to use jQuery's ajax/[^] function to get the information
As you are using AJAX I'd suggest the server responds with the next Image url (don't forget loops round at the end). This means the Client needs to send the current url (or some identifier) so the server knows where the client is in the list. If an empty or unknown url is passed to the server, return the first element, that way the slideshow can bootstrap itself easily. If you are using MVC3/4 the server component is easy, these can return a JSON result directly. With ASP.NET webforms, it is a little harder (see http://stackoverflow.com/questions/2422983/returning-json-object-from-an-asp-net-page[^]) but not very hard.
There is a reasonable amount of work in all this, it might be worth getting one of the many on-line sliders and taking them apart to see how they work (or just using them if one fits!).
|
|
|
|
|
|
Hi,
I am using the following code to sign out from my web application:
Session.Abandon();
Session.Clear(); at the same time I want while signing out to remove all pages related to my website from browser history?
how can I do this?
|
|
|
|
|
There seems to be a trick with javascript, see http://forums.asp.net/p/1132444/1806386.aspx[^].
But I'd also mark the cookies expired, and check for valid cookies on every page. Also use no-cache and expires directives for every page.
|
|
|
|
|
Response.ExpiresAbsolute = DateTime.UtcNow.AddDays(-1d);
Response.Expires = -1500;
Response.CacheControl = "no-cache";
May this will help u.....
|
|
|
|
|
1 its a BS structure. ASP.NET(C#).
2 when the record on the server database is updated, how to inform the client this changes?
3 the effect is just like a new EMAIL is arrived,then client pop a small window or play a informed sound.
in my opinion, it is Ajax!
in javascript, use a setinterval function. in this function use XMLHTTP to read database eriodically. if the record is updated then give the client some message.
I want to know is there any other better solutions?
|
|
|
|
|
wangerpang wrote: in my opinion, it is Ajax!
Correct. Do you have a timestamp-field? If yes, you can use ASP to generate an RSS-feed that contains the timestamp of the last modification. You can poll that using Ajax as you already suggested.
It would OTOH be a bad idea to update each client on each database-change; that way lies madness.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
You should probably take a look at SignalR - it's solved many of the problems you're about to run into if you hand crank it....
It's good though - my first play with it for a typical chat app resulted in one of our devs running away screaming "Witchcraft - it's WITCHCRAFT I TELLS YOU!!!!!"
C# has already designed away most of the tedium of C++.
|
|
|
|
|
Hello I am using vs2008. In that when i use Crystal Report in ASP.Net site it ask me for Database, username & password when i view it in browser? So what is the solution of this???
|
|
|
|
|
First of all you should correct your subject. there is no meaning of your subject.
are you using any external image in your crystal report ?
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
|
how to generate a link and send it by mail and when receiver receives this mail and when he first time click on this link then link has downloaded and then this link will automatically expire from the receivers mail?
|
|
|
|
|
Member 8600123 wrote: how to generate a link
Paste a Guid behind your query-string.
Member 8600123 wrote: send it by mail
Research the POP3-protocol, the internet is littered with examples
Member 8600123 wrote: when receiver receives this mail and when he first time click on this link then link has downloaded and then this link will automatically expire from the receivers mail?
Add abovementioned Guid to your database. Add a bit-column called "hasBeenSeen". Set the bit when the user requests abovementioned query-page with the corresponding Guid.
If you bring it as a story, then yes, sounds complex. If you divide it in smaller tasks, it becomes work.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
1. generate a link to a webpage with some query string parameter to uniquely indentify the link.
2. have a DB entry for "fresh/stale" it will be fresh till user has not visited the link, it will become stale once user has visited the link.
3. have a field for link generation time. if the link is not visited for say 6 hours after the generation. it will be considered as stale.
so when use want to generate link
1. create link, put fresh in DB, put current time.
2. when user visit the page check if the (linkstatus = fresh && genrationtime + 6hours < currenttime)
3. if above is true link is valid, perform operation n mark status as stale.
4. if 2 is false then tell the user link has expired
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.
|
|
|
|
|
how to create a password protection on user level access means user can enter their password then first of all matgh the pwd to the user then show only their roles?
|
|
|
|
|
|
|
hi
Q1)
How to get the text "TestText " from below in code behind />.
"<input type='radio' name='rdoC' value ='21' />TestText
Q2)
How to find in child node of treeview by the value?<br />
Something like treeview1.findnode but to find in all childNodes aslo(not only in parents).
modified 18-Aug-12 3:42am.
|
|
|
|
|
Hi,
this[^] may help you for answering your first question
this[^] will help you for 2nd answer.
Google is really powerful tool to search anything, you only need a perfect searching string.
Hope next time you do search and then raise your question
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
Hi all,
In our ASP.Net application we are using Entity Framework 1.0, when I am trying to get data from entity framework, I am getting the following error (The underlying provider failed on Open and in inner exception login failed for user). And I am using SQL server 2008 R2 and Windows Authntication. In some forum, it is suggested to create User Id and Password for the AppPool and then add the same user id and password to the database also then change the connection string. That is not an option for me. My SQL Server is remote for my application from the development itself. I dont have local SQL Server, only client on my machine and Windows authentication is a must for me.
Can anybody please help me in resolving this issue at Entity Framework side or .Net side insteam of changing something in the Database, because its not owned by us.
Important: After I debugged it for a while I found that Database value is coming as empty string for the context's connection string object. Is it expected behavior entity frame work. Please can some body explain me. What would cause entity framework to get database name as empty string? Please help me in resolving this issue. and whats the importance of <dataConfiguration defaultDatabase="LocalSqlServer" />, is the database value picked depending on this? Should I change its value if I just have the client on my machine and SQL Server Database instance is running on the remote server. But still I connect the SQL Server using Windows Authentication. Please somebody help me in resolving this. And I am getting the following exception also:
System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: Login failed for user 'WADS\LNIDPC002580D$'.
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
--- End of inner exception stack trace ---
at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
at System.Data.EntityClient.EntityConnection.Open()
at System.Data.Objects.ObjectContext.EnsureConnection()
at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
at System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<t>.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at DataAccessLayer.MessageObjectAdaper.GetMessages(Guid messageid) in D:\LNI Applications\Washington Stay at Work\SourceCode\StayatWork-VS2010\DataAccessLayer\MessageObjectAdaper.vb:line 46
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Are the development machine and the DB server on the same domain?
|
|
|
|
|
Hi,
No they are not on the same domain, so does it matter? Can you please tell me what should I do if they are not on the same domain? And we are using Windows authentication.
Thanks in advance my friend.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Since the application pool user is not on the same domain, windows authentication won't work. How will SQL server know about your app pool user? It does not exist in Active Directory.
You need to enable SQL authentication or make your machine join the domain which has the SQL server.
|
|
|
|