|
sandesh khare wrote: ScriptManager.RegisterStartupScript(this, this.GetType(), "Success", builder.ToString(), false);
up->updatepanel
ScriptManager.RegisterStartupScript(up1, up1.GetType(), "hello", "alert('Hello!')", true);
ClientScript.RegisterStartupScript(this.GetType(), argScriptId, builder.ToString(),true);
These all I have tried but nothing seems to be working.
This would work only if the Page postbacks. But in AJAX, no postbask is going to happen.
You have try with Client Scripting provided by the Script Manager like,
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(funcBeginRequest);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(funcEndRequest);
function funcBeginRequest(){
}
function funcEndRequest(){
}
Similarly for Page onload (StartupScript) can also be handler using add_pageLoad() method.
Refer Client Scripting help in www.asp.net
|
|
|
|
|
BOTs - running in my mind wrote: This would work only if the Page postbacks. But in AJAX, no postbask is going to happen.
Hi Venkat,
Here i am getting confused, even if you are using ajax postback is going to heppen it will go to page load and you can see isPostback property that will show you true ...
In what sence you are saying that postback is not going to happen ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
playing with bugs ) wrote: Here i am getting confused, even if you are using ajax postback is going to heppen it will go to page load and you can see isPostback property that will show you true ...
In what sence you are saying that postback is not going to happen ?
Hi Sandeep,
You are talking about Server-side Page Load. But I mentioned the Client Side page load (onload event), since the StartupScript is going to do the same.
|
|
|
|
|
Yup OK that's what i got confused
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hello......
I want to make Internet Explorer/other browser Homepage of my any webpage through Given link. Just Like google give link button to make your homepage....
Thanks...
raj
|
|
|
|
|
You want to do via the Asp.Net ?
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
ya i want to do via Asp.net. but if it is possible in JavaScript then i can use js file in Asp.net
|
|
|
|
|
You can try this :
document.setHomePage("http://www.yourwebsite.com/");
Note: I am not sure about IE7
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
This Function have not supported in .cs file.and js also...
|
|
|
|
|
|
I am using VS 2005 . My website (C#, ASP.NET 2.0) worked ok. But after I run it several times, i got an exception when loading the report
The maximum report processing jobs limit configured by your system administrator has been reached
Then I restart my pc, and it works again.
Can anyone tell me what is the problem in my project? Do I need to configure anything?
Thanks!
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
As per my understanding,
You did not close or dispose the Report Document. So multiple report are documents open in report engine so that's why it's raising exception.
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
I was implementing the authentication and authorization in my project . My problem is is there any common method through which i can receive the name of the page(Current page name).I am asking , due to the reason that i have form names and user names in the database , while the user try to acess any form , the website checks the authorization .I am soing this on every page load , i mean on page load i am sending to database a query , which checks the authorization.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Creat a Base class and inherit with all web pages.
In the Base class you can check authorizatino or whatever commom for all pages.
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
Is there any inbuilt function to perform this task.
I am saying this because in order to achieve the task as per ur suggestion , first i will create a class there i will declare the formnames and finally i will send a query to database for the particular form of a user whethe that is authorized or not , then i will return the value whether that user is authorized to access or not to the calling funciton in the web page , i will return the value to the calling function in web page because , i can't use the respose.redirect function in class file.
So far what i did is . i am checking the authorization on each form load.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia Gupta wrote: i can't use the respose.redirect function in class file.
You can use that by HttpContext.Current.Response.Redirect()
Sonia Gupta wrote: Is there any inbuilt function to perform this task.
Nope. Inherit all your pages from a base class and do the checking there. You can override OnInit or Page_load in this class and do the checking.
|
|
|
|
|
suppose in the address bar i am manually writing to access a particular page without log in , from there , it is Being navigated to the login page,after logging in , can i find which page i was trying to access ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Yes it can be done by setting the requested page to a cookie.
|
|
|
|
|
i have a dataset , which contains 120 rows in the table.
Is there any way to upload the rows at once , without comming back to client an then going back to server 120 times ?
The database is SQL Server
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Dataadapter provides Bulk update.
adapter.Update(dataSet);
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
Sonia Gupta wrote: without comming back to client an then going back to server 120 times ?
? If you put a loop and execute it, it won't come back to the client. Or use adapter.Update() .
|
|
|
|
|
can i use the pameterized queries while using the adapter.update ?
I am saying this because , i am doing the duplicacy checks while inserting the records.
while populating the Datatable with rows , that time too i am using doing the duplicacy check.except one thing like
i have master table and child table
in master table i have name field and id
and in child table i have subject field and master table id
so the data is of following type
Sonia Maths
Sonia English
Sonia Physics
....
....
in the datatable.
so subject are comming under Sonia
on the subject i am putting the duplicacy check but the check on name will be done at the back end , reason is , the moment i insert the first record of Sonia it will insert the name in the master table and the pertaining suject in the child table ,
then the next record should come under the same id (and it will pick the soina id and will insert the record under that id of Sonia.) , i mean under sonia.
That's the reason i am checking the name dupicacy at back end
Now my question is how i should use the parameterized queries(in order to use the stored procedures) while using the adapter.update.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" +
file.Name);
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.End();
By this code we get download dialog box.There are three buttons
cancel,open and save. How to find out whether user had pressed cancel or
open/save.
|
|
|
|
|
Can you tell me why you need to trap the these buttons ?
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
actually i want to log in the database that the file is downloaded or opened and not if it is cancelled. Please if you have any ideas pls let me know.
|
|
|
|