|
In case of a Http error 500, how to retry the AJAX call one more time before displaying the error to the user
|
|
|
|
|
do that call again.. buddy...
but you need to create a new Object of XMLHttpRequest to make the call again.... .
Just when obj.status == 500 create a new object and call ajaxobj.send(null)... or whatever you need.
|
|
|
|
|
Hi friends,
I have a datagrid with various radiobuttons binded in it. on clicking the radiobutton im using an to load the related page.
And also im doing the sorting on the data grid on clicking at the header of the grid column.
My problem is once i click on the radio button, i can able to see the page through <iframe>. After that, When i try to sort the grid the values in the grid are sorted out but the page i loaded through the radio click event disappears. The radio button which i clicked alone retains...
again if i click the same radio button or different one the page appears..
I need to retain the page as well after sorting.
Kindly help me on this.
Thanks in advance
Ashok
|
|
|
|
|
i am using a usercontrol page.working is to logout...
if anybody have the proper code than mail me at...
rahulshrma@gmail.com
|
|
|
|
|
asp.net provides you login controls if you follow them then you need to write even a single line of code....
Government Dyal Singh College Lahore.
|
|
|
|
|
i am not using login control..
i simply want a code by which when i click the signout link the page goes to login page and then there is no way to go back..
|
|
|
|
|
Hi,
R u facing any specific problem ot u want complete code?
Regards
Anil Pal
|
|
|
|
|
me want a complete code..
|
|
|
|
|
that will cost you lakh crore....
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[^]
|
|
|
|
|
actually when i click the signout link it goes to the login page but after when i click the browser back button it comesw again to the previous page...
|
|
|
|
|
you can do this using js
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[^]
|
|
|
|
|
merahul wrote: if anybody have the proper code than mail me at...
rahulshrma@gmail.com
No one will send you the code like this way. If you have some specific problem then ask here, every body will help you.
merahul wrote: i am using a usercontrol page.working is to logout.
You want to create a user control for logout?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
merahul wrote: if anybody have the proper code than mail me at...
rahulshrma@gmail.com
Wouldn't it be simpler if we just sent it to your professor?
Jon
Smith & Wesson: The original point and click interface
|
|
|
|
|
ha ha....
gud joke...
but i am not in the mode...ok..if u have it then tell me otherwise donot waste my time...
|
|
|
|
|
merahul wrote: ok..if u have it then tell me otherwise donot waste my time...
excuse us? who is wasting out time with silly questions then?
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[^]
|
|
|
|
|
merahul wrote: if u have it then tell me otherwise donot waste my time
Yes, I have exactly the answer you are looking for.
Jon
Smith & Wesson: The original point and click interface
|
|
|
|
|
Usage of static variables in web pages looks really cool. But I have a minor requirement over it. "static" shares the variable across all the users. Is there any similar qualifier that restricts the variable associate with the instance specific usage? that doesn't get shared across multiple users? It will be nice if we have something like "user-static". . Just checked,There's no such thing. let's take the usual way,sessions.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Stick it in the Session then.
|
|
|
|
|
Hi,
I have a class file: dbtest and a have create a static public function that returns values from database.
Since its an static public function so i can access it as dbsale.function().
Now I wanted to know the disadvantages of this approach when say there are some 1000 call at a time for this function.
I have searched a lot and found examples of using static public functions but no where I found it to be used for calling a database operation.
Thanks in advance.
Regards
Vijay V.
Yash Softech
|
|
|
|
|
hi,
Now what u want?
Regards
Anil Pal
|
|
|
|
|
I wanted to know the disadvantages of this approach when say there are some 1000 call at a time for this function.
Vijay V.
Yash Softech
|
|
|
|
|
I think I can equate this multi-user thing to a multithreaded environment. You can use public static functions, there will be no problem. But if you are using static objects inside your function, then there's a one. There are big chances your static objects get overwritten with calls from other clients. If you are using local objects or instance members inside the function, then there wouldn't be any problem.
This is all a guess. I haven't tried this in Asp.net
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Thanks ViNic for your reply.......
Can u focus on the following code is this one is correct?
BinaryTree.cs file inside appcode
public class BinaryTree
{
public static ArrayList dlist = new ArrayList();
public static void FetchDownlineID(long uid)
{
BinaryTree bt = new BinaryTree();
bt = BinaryTree.fetchIdInfo(uid);//fetches user info
if (bt.Aid > 0)
{
dlist.Add(bt.Aid);
BinaryTree.FetchDownlineID(bt.Aid);
}
if (bt.Bid > 0)
{
dlist.Add(bt.Bid);
BinaryTree.FetchDownlineID(bt.Bid);
}
if (bt.Cid > 0)
{
dlist.Add(bt.Cid);
BinaryTree.FetchDownlineID(bt.Cid);
}
}
}
now this function is called on pageload as user's open page & result is bind to gridview...
as follows----------
public partial class User_DownlineLists : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
bindGridView();
}
protected void bindGridView()
{
if (Session["User"] != null)
{
long id = UserDetails.FetchUserId(Session["User"].ToString());
BinaryTree.dlist.Clear();
BinaryTree.FetchDownlineID(id);
Sort();//this function sort list datewise
GridView1.DataSource = BinaryTree.dlist;
GridView1.DataBind();
}
else
{
Response.Redirect("~/Home.aspx");
}
}
}
Vijay V.
Yash Softech
|
|
|
|
|
No, This looks truly bad to me.
VijayVishwakarma wrote: public static ArrayList dlist = new ArrayList();
public static void FetchDownlineID(long uid)
You might have read a "rant" from me just above your message. That says why you should not do it. Though every member would create a new object of your BianryTree, it's dlist would be shared.
VijayVishwakarma wrote: if (bt.Aid > 0)
{
dlist.Add(bt.Aid);
When one client does the above code, Another client could potentially execute the below code.
BinaryTree.dlist.Clear(); .
You get the idea?
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
Thanks a lot....
Vijay V.
Yash Softech
|
|
|
|