|
Hi,
I am having problems with exporting datagrid data to excel. I am getting the popup with error "Internet explorer cannot download default.aspx . IE was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again later." When I searched for the error in google, some have said that it happens if the site is SSL configured and have no-cache meta tag. The solution they offered is to remove no-cache tag. I did remove the meta tag but still it is giving the same error. The site is running on ASP.NET 2.0. Please let me know how I could solve this.
Thanks,
sridhar.
|
|
|
|
|
Once try this
datatable dt=new datatable();
dt=objndf.getdata();
Response.AddHeader("content-disposition", "attachment;filename=" + ListName + ".xls");
Response.ContentType = "application/vnd.xls";
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
GridView gv = new GridView();
gv.DataSource = dt;
gv.DataBind();
gv.RenderControl(htw);
Response.Write(sw.ToString());
Response.End();
gv.Dispose();
|
|
|
|
|
hi,
I want to create a copy of same page when i click a button it has to add to the solution explorer page
|
|
|
|
|
Have you tried the solution explorer context menu item named "Copy" or it that too obvious?
only two letters away from being an asset
|
|
|
|
|
When the user click a button it has to create a page and it must add to the solution explorer ok
|
|
|
|
|
When the user of your web application clicks on a button you want a copy of the page to be added to the solution explorer? Is this correct?
Not possible.
only two letters away from being an asset
|
|
|
|
|
OK, then you need to ask how to fix it. The most sensible thing to do is probably to just kill a session when someone logs in again, otherwise they can be locked out while waiting for a timeout.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
The Ajax Toolkit has some very intuitive examples for you.
Ajax Toolkit[^]
Cheers
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
Hi,
I have a requirement where i have the xml file in the clientside.I need to update the xml file into the database where i make use of dataset ..Is there any method for accessing the clientside xml file into the dataset.
Any help is appreciated..It's an urgent requirement for me...
|
|
|
|
|
I think one way is to Uploading the Xml file to server side store it there then read the file in the dataset pass dataset to Database if it stores successfully delete xml file from server
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... "
|
|
|
|
|
|
One way is to Uploading the Xml file from Client to server side store it on Server. then read the xml file in to dataset, pass dataset to Database if it stores successfully delete xml file from server
A.Surendar Reddy
9848362333
|
|
|
|
|
hi friends
how to create password strength in javascript
i refered in google but some is not good
if u have any good link plz give me
regards
saravanan
|
|
|
|
|
Sorry but i am not clear What is password strength ?
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... "
|
|
|
|
|
|
|
I am trying to prevent the multiple login by the user. To do that i keep the data in the database on login and when logout i delete the data.
But if there is some error and session is timeout the deletion can not be done.
the session_End event of global.asax do not work. I use the sessionstate mode ="InProc"
|
|
|
|
|
You should set a timeout of your own on the database, so that logins time out in your system also.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i have already done that too but it gives the problem in various cases.
|
|
|
|
|
uttambro wrote: but it gives the problem in various cases.
What problem?
Regards,
Satips.
|
|
|
|
|
|
hi,
create sessions with userid then if another user is trying
to use it means it will give errors when the session value
is same.
check the session before creating the sessions.
session("userid")=uttambro
all the best
Sathesh Pandian
|
|
|
|
|
|
go to add reference select com tab their u can find Microsoft XML V3.0 select and add to your reference.
I think your problem has solved.
Thanks
Warm Regards
Prakash-B
|
|
|
|