|
download problem from Secure Sockets Layer enabled site(https)
I got error message this
"
internet explorer was not able to open this internet site.this requested site is either unavailable or cannot be found .please try later"
i ca't download file
i am using following code
to download the file
string outputFile = "test 1";
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "inline; filename=test.xls" );
Response.AddHeader("Pragma", "public");
Response.AddHeader("Cache-Control", "max-age=0");
Response.Charset = "";
EnableViewState = false;
Response.Write(outputFile);
Response.End();
it's working normal http site,
in https site it's not working ,means i deployed as Secure Sockets Layer enabled site, error happen
mohamad rafi
modified on Thursday, December 11, 2008 5:25 AM
|
|
|
|
|
Hi,
could you please provide more information (code etc.), so that we can help you better.
Regards
Sebastian
|
|
|
|
|
Gridview having some values say column1 have name and column2 have empid. I need to check all this empids and
make sure that they start from 1 and are in order.
No number is missed out in middle. If missed out, then an alert should be shown that saying the order is not proper.
Any help please.....
I have the values in Dataset but, how can i show the alert in asp.net ?
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
For showing an alert you have only option to use Javascript alert you can register it for the alert message and for checking the proper sequence you can check it in RowDataBound event.
Cheers!!
Brij
|
|
|
|
|
I have tried this code.....can you suggest anything else...
protected void gvCRMODField_RowDataBound(object sender, GridViewRowEventArgs e)
{
GridViewRow gvCRMOD = gvCRMODField.Rows;
if (gvCRMOD.Cells[2].Text != null)
{
///Logic here
}
}
I cannot find any method......please help me....
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
take a varaible in viewstate.increase it one by one and check from the actual value like
object temp = DataBinder.Eval(e.Row.DataItem, "empid");
and check it temp from the viewstate's value if flase register an javascript alert.
Cheers!!
Brij
|
|
|
|
|
sajan ss wrote: ASP.NET,C#.NET Programmer
This appears increasingly unlikely to me.
If you're telling the user that the data they entered is invalid, you can use a custom validator, or you can use an alert. If you're checking the data in the DB, you can just use a label. Is the user entering data ? If so, just reject data that doesn't follow your rules. Hell, it's fundamentally broken that you have such a rule and you don't just auto generate the ids according to the rule set.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i wont to no ho ican insert image into database sqlserver and retrive in my page
thank you
|
|
|
|
|
If you try to search in Google you will get at least 100 articles written on the same.
Apurva Kaushal
|
|
|
|
|
There is two way, you can store image path on database, or can store image directly in DB.
But How ? Just Try google. You will find lots of codes
|
|
|
|
|
arnds20078 wrote: wont to no ho ican insert image
I guess it's because you can't spell that you can't use google. Try 'SQL Server store bitmap ASP.NET'
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Better if you use imagepath in DB which won't increase the size of database.Check feasibilty according to number of images
Cheers!!
Brij
|
|
|
|
|
i think this link help u
http://adventures-in-csharp.blogspot.com/2008/03/using-sql-database-images-in-aspnet.html
|
|
|
|
|
scroll bar moves up as the image changes in the addrotator.what should be done to keep scroll wherever I want.The images are filled dynamically by XML file.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
This is because when the image changes, the page postback and your browser window is refreshed.
so to avoid that you should use the AJAX Update Panel Control. and set the trigger of Update Panel. and after that your scroll bar will be not affected by image changes in addrotator.
you can find the video tutorial on ajax.asp.net website.
|
|
|
|
|
How can i get the functionality of IE browsers Previous and Next Button in Asp.net button.I used Javascripts History.back() but it works only for the same page.If the page chages it does not work.So How can I get this functionality.
|
|
|
|
|
You have to do it manually. One way is that you can use breadcrumbs for this.
Apurva Kaushal
|
|
|
|
|
Well, you can only use javascipt, unless you only want to move between pages in your own site, and history.back() should always work. Creating your own breadcrumbs works better, you can avoid going back to a postback on the same page that way, for example.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i m selecting data from database now while adding these datas to a dropdown list i want to add some alias of it.Eg-database returns 2 values
'STS' and 'CAT' now insteade of adding these to values to the dropdownlist i want to add 'STATUS' for 'STS' and 'CATAGORY' for 'CAT' in the dropdownlist. how can i have to write the code in the databinding event or databound event of the dropdown list.
|
|
|
|
|
Don't you have these values (Status and Category) defined there in your database? Get these values from there itself.
Apurva Kaushal
|
|
|
|
|
From where u are geeting these Values 'Status' and 'CATAGORY' for
'STS' and 'CAT'
you have to assign these values to Text Field of ListItems of DropDownList
|
|
|
|
|
Hi
I'm using vs2008, if anyone can please help me
I want to open the print dialog of the crystalreportviewer programmatically if possible??
so in other words , fire the print button on the viewer
Thanks in advance..
|
|
|
|
|
I have used httpd.ini file for ISAPIs in Classic asp which dynamically get the url for .asp file. How I can use this file with asp.net.
|
|
|
|
|
You can't. What does it do ? You can write HTTP handlers in ASP.NET.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
These are html url for asp files when the name of the asp page match with the html url it get that url and the viewer doesn't see the original url. SEO also use prefer it in search point of view.
Example :
Rewrite /www.websitename/sitemap.html /sitemap.asp [I]
sitemap.asp is the original url while it will display sitemap.html.
|
|
|
|