|
Cheers!!
Brij
|
|
|
|
|
I want to export textbox value into pdf file in asp.net
|
|
|
|
|
Dear Punit,
Try this may this help you.......
using CrystalDecisions.CrystalReports.Engine;
using System.IO;
public partial class rpt : System.Web.UI.Page
{
private ReportDocument BidEstimates;
protected void Page_Load(object sender, EventArgs e)
{
string RptPath = Server.MapPath("file.aspx");
BidEstimates = new ReportDocument();
BidEstimates.Load(RptPath);
//ExportFormatType.PortableDocFormat is Use For PDF documents......
BidEstimates.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "ExportedReport");
}
}
!- F - R - I - E - N - D - S -!
|
|
|
|
|
|
Hi All,
In my application user filter,serch items in the gridview but when he/she click the button then all item serched items he losed.
I want to disable back button.for this I m using following code
<script type="text/javascript">
function noBack(){window.history.forward()}
noBack();
window.onload=noBack;
window.onpageshow=function(evt){if(evt.persisted)noBack()}
window.onunload=function(){void(0)}
</script>
but it breaks for go to previous page but in this situation user is in same page.
thnks to all.........
|
|
|
|
|
As I think, the best way to disable the back button is "don't create the history of the page". Because may be in some browser's, disable code will not work.
Here is the code to remove the history of a particular page:-
<%
Response.Expires = 0
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1)
Response.AddHeader("cache-control", "private")
Response.CacheControl = "no-cache"
%>
Hope this will help you......
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
What part/tag of the .aspx page or (event handler) code behind does this code fits?
|
|
|
|
|
you can put this code on above the HTML tag of your .aspx page.
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
|
Your welcome
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
Thnks For Reply
I have used this code
but it is going to back......
in all browsers(IE,Mozila)
|
|
|
|
|
This code has to be used on previous page.
Means, if you want's to disable the "back" button of page "zxc.aspx", so you have to put this code in previous page of "zxc.aspx", from which you have come to "zxc.aspx". i.e. if you have come from "test.aspx" (on click of any link) to "zxc.aspx", then you have to put this code on "test.aspx" page.
Try this. This will definitely work in all browsers.
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
Thnks Dear,
In my application user is always in same page.because he is filtering,sorting and serching items in grid then grid is showing data according to filtering,sorting and serching but it open in same page always
not in other page......
Thnks....
|
|
|
|
|
i like to display report names in a data list and when the user clicks open the corresponding PDF file.
all the reports are in PDF format.
Report 1
Report 2
Report 3
Report 4
Report 5
how can i do this?
i am saving pdf files path in database(http://www.mysite.com/reports/Report1.pdf)
my current code shows the report name but when i click it doesn't go anywhere.
<br />
<asp:datalist id="DL1" runat="server" ItemStyle-BackColor="#c7c7c6" ItemStyle-BorderColor="#c7c7c6" CssClass="Titles"><br />
<ItemTemplate> <br />
<asp:HyperLink Runat ="server" NavigateUrl ='<%#DataBinder.Eval(Container.DataItem, "ReportURL")%>' ID="Hyperlink1"> <br />
<%#DataBinder.Eval(Container.DataItem, "ReportName")%> <br />
</asp:HyperLink> <br />
</ItemTemplate> <br />
</asp:datalist> <br />
code behind
<br />
Private Sub GetReports()<br />
<br />
Dim objConnection As SqlConnection = New _<br />
SqlConnection(ConfigurationManager.ConnectionStrings("MyDbConn").ToString())<br />
<br />
objConnection.Open()<br />
<br />
Dim myCommand As New System.Data.SqlClient.SqlCommand()<br />
myCommand.Connection = objConnection<br />
<br />
myCommand.CommandText = "SelectReports"<br />
myCommand.CommandType = CommandType.StoredProcedure<br />
<br />
<br />
Dim param As New System.Data.SqlClient.SqlParameter()<br />
<br />
Dim myAdapter As New SqlDataAdapter(myCommand)<br />
<br />
myAdapter.Fill(DataSetReports)<br />
<br />
<br />
Dim reader As SqlDataReader = myCommand.ExecuteReader()<br />
<br />
DL1.DataSource = DataSetReports<br />
<br />
DL1.DataBind()<br />
objConnection.Close()<br />
<br />
End Sub<br />
modified on Monday, January 25, 2010 1:21 AM
|
|
|
|
|
No difference between link button in datagrid and link button in datalist.
Something else is causing problem to u.
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:50am.
|
|
|
|
|
Hi
I was using HttpWebRequest and HttpWebResponse in .NET
It was working fine. my problem begins when i have to use
HttpsWebRequest and HttpsWebResponse in .NET
Please help me.
Thanks in advance.
|
|
|
|
|
sumit7034 wrote: my problem begins when i have to use
HttpsWebRequest and HttpsWebResponse in .NET
What problems are you facing?
Best wishes,
Navaneeth
|
|
|
|
|
Dim httpurl as string 'This is my http base url for which i have to create webrequest
Dim tmpURLConnectionOpenView As HttpWebRequest = CType(WebRequest.Create(httpurl), HttpWebRequest)
''''''''''''Set Cookie in header for Getting Xml
tmpURLConnectionOpenView.Headers.Item("Cookie") = CookieValue
Dim tmpBufferedReaderOpenView As StreamReader
tmpBufferedReaderOpenView = New StreamReader(tmpURLConnectionOpenView.GetResponse.GetResponseStream())
Dim ReturnedXML As String = ""
ReturnedXML = tmpBufferedReaderOpenView.ReadToEnd()
tmpBufferedReaderOpenView.Close()
Now in httpurl I am using https based url and now the above code does't work
|
|
|
|
|
I require to develop a project based on crawling which can basically search as a normal search engine but instead of getting output as URLs i need the Data inside the URLs to be Generated as a file which has all the data to be pasted in it.
Is there anyway of Extracting the Google Search...
|
|
|
|
|
Google uses the URL like http://www.google.com/search?q=search-term[^]. You can construct this kind of URL with your own search term and send a request. You will get all the search results as string. Use a regular expression to identify hyperlinks from this and send request to each link separately to extract it's contents.
Best wishes,
Navaneeth
|
|
|
|
|
How can You extract Contents from a URLs
nayansharma1@gmail.com
|
|
|
|
|
Can a java application call a WCF service?If Yes can any one help me how to do it?
I have created a WCF service in .net .
I have simple java application.
I want to use WCF service in Java application..
|
|
|
|
|
It should be possible based on how you are exposing the WCF service. If you expose it over HTTP, you should be able to consume it from any application/any platform.
|
|
|
|
|
Thank you for replying.
But I want to know how to read WCF service in Java application.
|
|
|
|
|
When you expose your WCF service over HTTP you will be able to extract WSDL and Reference map for your service. You can use it in your JAVA application just like any other classic web service's WSDL and configure it to consume the same.
My experience is close to 0 on JAVA so I'm not in a position to help you with the details.
|
|
|
|