|
Hi ,
Sorry , this question is into sql.How to replace null values of a sql left join result.Is there a way to do it in query itself ?
|
|
|
|
|
General Database is the correct forum for this one.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
The value is in the cache for more than a minute, does it have something to do with the datatype being saved? I already tryed utcnow but the result is the same, and also, i tryed using a timespan of 1 minute and guess what... not working either, i dont think its my machine, because it doent work either on my server
If you have the time, check it please
I know i could use the NoBot control in ajax but i really want to know whats wrong with this
Private Function IsRobot() As Boolean
Dim IP As String = Me.Request.UserHostAddress
Dim key As String = "Contact_" & IP
Dim obj As Object = Cache(key)
Dim Counter As Integer = 0
If obj Is Nothing Then
Cache.Insert(key, Counter, Nothing, Now.AddMinutes(1), Cache.NoSlidingExpiration)
Else
Counter = obj
End If
If Counter >= 5 Then
Me.lblError.Text = "Too many emails"
Me.lblError.Visible = True
Return True
End If
Cache(key) = Counter + 1
Return False
End Function
Thanks for your time
Alexei Rodriguez
|
|
|
|
|
In my application i want to keep one session objects value for a long time.I have used <sessionstate timeout="60">.But it is not working properly.can any one give some idea how to keep the value for atleast 6 to 8 hrs.
thanks in advance
|
|
|
|
|
The safest way is to write them to a database - that way you can have long timeout periods simply by using a timestamp on the record.
|
|
|
|
|
Thanks for the response.I am storing the user id in the session object.now multiple user can login at the same time.Now if i store the data in the data base.How do i identify each users request.
|
|
|
|
|
santu321 wrote: I am storing the user id in the session object
santu321 wrote: if i store the data in the data base.How do i identify each users request
You've answered your own question... by storing the userid in the database with the session state!
|
|
|
|
|
increase the session time in your web.config file...
timeout="enter your required time here"
(or)
use database to store the session
|
|
|
|
|
Thanks for response.I am storing the user id in the session object.now multiple user can login at the same time.Now if i store the data in the data base.How do i identify each users request.
|
|
|
|
|
|
You can also use the profile wich is saved in the database and is user level, also it remembers the user even if they close the browser (it relies on cookies to identify each user)
Alexei Rodriguez
|
|
|
|
|
thanks for the response.but cookies is not reliable for every situation.
|
|
|
|
|
how can i make an image move to end of window(left) and to move back(right)
using javasript....
|
|
|
|
|
Do a quick google search with "move image javascript"...
I won’t not use no double negatives.
|
|
|
|
|
The simplest way is to use
<marquee><img src="..." /></marquee>
But it would be better if you could write javascript to do this.
|
|
|
|
|
That only works in IE
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Really ? I remember in the late 80s, a friend used that tag to make his page look terrible, so that people using IE would move to netscape to read it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: a friend used that tag to make his page look terrible
Yaa... It looks terrible when a page uses Framesets and Marquee.... ...
I never use this as well.
|
|
|
|
|
why asp.net is called as technology and not a language.
Mahaesh
|
|
|
|
|
Asp.NET is actually uses those languages like C#, VB.NET as backend code. Thus other than html and server side controls.. everything to manipulate them is entirely done by those languages.
There is no special language defined as such for ASP.NET. So it is actually a technique of writing Web applications using backend languages....
|
|
|
|
|
Smells like homework...
Please post a specific question, such as, "I'm getting this error..." and post your code. General questions should be restricted to Google.
|
|
|
|
|
Dear all,
I am using mutliview control in my aspx page.In one multiview I have a grid and the grid columns I am adding based on the data fetched from back end.That means columns for that grid is dynamic.And also grid contains controls like text boxes.Which populated dynamically.
The problem is when I navigate using multiview link.Dynamic grid data is disappearing.
PLease help me in above regard.I need to persist the grid status even when i will navigate in the multiview.
Thanks,
Srinivas Mateti
|
|
|
|
|
If you are creating the grid dynamically, you will need to recreate it everytime from Page_init event.
|
|
|
|
|
Thanks its working now....
|
|
|
|