|
In fact if it will be redirected to the same page then also the purpose will be served.
Apurva Kaushal
|
|
|
|
|
Indeed.
|
|
|
|
|
i dont want to do that since i have to display the id from database onto the page.
|
|
|
|
|
The id can be passed via query string to the new page. Cross page post back can also be used.
|
|
|
|
|
If you refresh a page that is a result of a postback, the same data will be posted again. That means that the same events fire again.
You can either keep from using postbacks, handle the situation when the event fires again, or don't reload the page to update it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
I am using ajax dynamic populator to populate data by calling service method from
javascript .I am getting webservice call failed:500 message.can i add any retry method in
javascript to call the service 3 times if you are not getting any response or this call
failed exception and a custom message 'please try again' if there is an web service
exception.thanks in advance and waiting for the answer and thanks once again.
-Mahesh chandra
|
|
|
|
|
umaheshchandra wrote: .I am getting webservice call failed:500 message.can i add any retry method in
javascript to call the service 3 times
Catch this exception and call the requesting function again. Set a counter variable and increment it for each try.
|
|
|
|
|
Thanks.But the webservice call failed exception is not catchable in javascript.that was the problem.do post if you know anyother options.
|
|
|
|
|
Hi all,
I have a datagrid with Song title's and i have a checkbox in each row ,which all are the checkboxes checked by the user he/she want to add those songs to the realplayer playing list and start playing the first song
How can i achevie the same...
Now i have done the same with single selection
Thank You
|
|
|
|
|
reogeo2008 wrote: Now i have done the same with single selection
You want to handle multiple records checked in the checkboxes, if so then what you can do is to iterate through the datagrid items and find the checkbox which are checked and then take the actions what you want.
Apurva Kaushal
|
|
|
|
|
I just wanted to get the checked items added to the realpayer playlist.
Addint to the player list is pbm for me
|
|
|
|
|
I am not sure of how to add songs to real player list. What I thought that you just want to get the records selected through checkboxes in datagrid.
Apurva Kaushal
|
|
|
|
|
HI guys,
I want a textbox which only accept integer data. And this textbox will be used in web application not in windows application.
Thnks for any suggestion.
Arun Sahoo
|
|
|
|
|
This[^] was my first hit on google when I searched.
|
|
|
|
|
|
My dear friend,
I am not using any AJAX features. What is the alternative idea without using AJAX?
Arun Sahoo
|
|
|
|
|
As Navaneeth mentioned in the post before, you could try to use JavaScript. Just follow the link he provided.
|
|
|
|
|
function checkkey1()
{
if((window.event.keyCode>=33 && window.event.keyCode<=47)||
(window.event.keyCode>=58 && window.event.keyCode<=190))
{
window.event.keyCode=0;
}
}
Use keypress event as onkeypress="checkkey1();"
The above code works perfectly in IE
|
|
|
|
|
Hi, I am using the forms authentication with users and roles. Iam configuring the web.config files in all the necessary folders together with the global.asax file. These are working fine. the problem is that the Context.User value becomes null when i navigate from the users folder to the administration folder. Any one has a suggestion on why this is happening please and how can it be tackled? thanks
|
|
|
|
|
Hi Experts,
I would like to know if there's any way I can write a session instead of using
NavigateUrl="~/ReportView/CentralReportPoint.aspx?Report=audBUnit">
instead of passing values like this can i write a session like session("report") instead? Cause of security reasons I would like to store it as a session instead of displaying for users to see
Thanks in advance Cheers~
|
|
|
|
|
|
Abhijit Jana wrote: Use Query String
Isn't he using it already?
|
|
|
|
|
Ohhh.... Sorry... I want to mean Use Query String Encryption
|
|
|
|
|
Yes. Change the hyperlink button to a LinkButton. Create session["report"] in it's click event and redirect to ~/ReportView/CentralReportPoint.aspx . In this page, read the value from session.
|
|
|
|
|
Thanks for the replies =) I got that just when you replied!
Now I've got another bug in the website which I don't know how to approach this. I loaded into the page then when i click logout i am supposed to change the session to "0" with the logout button code below.
But when I manually enter my link back to CentralReportPoint.aspx, I get the report that I loaded previously before i Logged out. Is there any way to solve this?
Protected Sub btnLogOut_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogOut.Click
Login1.UserName = ""
Session("username") = ""
Session("login") = "0"
Session("status") = "0"
Session("report") = "0"
FormsAuthentication.SignOut()
Login1_Authenticate(Login1, New AuthenticateEventArgs())
'Response.Redirect("Default.aspx")
End Sub
At my CentralReportPoint.aspx I also check if the session is valid if not it will transfer back to the default.aspx but it doesnt seem to do so when i manually enter the address after. If I were to try entering the address before i initialise a login at start, It transfers me back to the default page but not when i log out
If (Session("report") = "0") Then
Response.Redirect("../Default.aspx")
Else
Dim report As New ReportDocument
report.Load(Server.MapPath("../Report/" & Session("report").ToString() & ".rpt"))
report.SetDatabaseLogon("AGIREADWRITE", "password")
CrystalReportViewer1.ReportSource = report
End If
|
|
|
|