|
i am using crystal report in asp.net 2.0.
the report is showing perfectly when clicked on report button,
But after showing the report if i clicked on print or export or any button the report is invisible.
Its very urgent.
Thanks in advance.
Sandy
|
|
|
|
|
Sounds like clicking on print or any other export buttons trigger page postback. You need to re-bind the crystal report document object to the report viewer in the Page_Load event when a postback occurs in order to use export and print functionality.
Similar discussion here: Report dissapear on postback[^]
|
|
|
|
|
I am using asp.net 2.0 with vb.
I have created a dataset(.xsd) and added a datatable in that. through query i am filling the value to ds.
Then i added a rpt file.
In the form i added one crystal report viewer.
but i dont know how to load the crystal report using that values. (code for the crystal report).
Please help me out. its very urgent.
|
|
|
|
|
|
|
Hi!
Can someone please help me on how to read a VBScript command when a user enter it on a textbox. This logic is similar to this How to run PowerShell scripts from C#[^]. Thanks in advance.
|
|
|
|
|
Read the contents of a textbox?
string zeText = textBox1.Text
To execute them, use the MSScriptControl.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
I have a task to upload excel file on server and then read data from multiple sheets, specific rows and columns and display it on web. I have completed uploading and displaying data from 1st sheet only. Please someone can help me out. Thanks
|
|
|
|
|
Once is enough, no need to repost. Have patience and someone will reply.
Further, at any given time you can use 'Edit' link to edit your question if needed.
|
|
|
|
|
I have a task to upload excel file and then display multiple sheets data on web. I have completed uploading and reading excel file and data is displaying on web but only from 1st col and rows, whereas I need to pickup data from specific row and column. Some one can help me out please and send me a complete code.
|
|
|
|
|
How can I hightlight full row in gridView on row click event and display rowID in label
|
|
|
|
|
You can do the following by:
1. Inject Javascript function on mousehover/onclick & mouseout of the link in a grid row.
2. Using JavaScript, show a div/text that contains the needed details
3. Using JavaScript, hide the div/text onmouseout.
For injecting JS, you need to use RowDataBound of GridView, something like:
protected void GridView_RowDataBound(Object sender, GridViewRowEventArgs e)
{
DataControlRowType rtype = e.Row.RowType;
if (rtype == DataControlRowType.DataRow && rtype != DataControlRowType.Footer
&& rtype != DataControlRowType.Separator && rtype != DataControlRowType.Header
&& rtype != DataControlRowType.Pager)
{
e.Row.Attributes.Add("onmouseover", "ShowDiv(this);");
e.Row.Attributes.Add("onmouseover", "HideDiv(this);");
}
}
Try!
|
|
|
|
|
Hi i think you need not to highlight the row using click event you can highligt it using selectedindexchang event
|
|
|
|
|
SelectedIndexChange event for a grid row? I doubt that.
|
|
|
|
|
hello
i have problem when i try to publish my web application
i publish my web application folder in my ftp server
but when i try to build deploment package i have one error and asp.net show this message
The value is not a valid connection string or an absolute path
Keyword not supported: 'provider'
|
|
|
|
|
|
ok thank you
i'll try it now
|
|
|
|
|
How to declare connection string into web.config file ?
habib
|
|
|
|
|
There's a ConnectionStrings section that you can add an individual connection string into. You can see a sample here[^].
|
|
|
|
|
Place something like this in your Web.Config file root:
<connectionStrings>
<add
name="NorthwindConnectionString"
connectionString="Data Source=serverName;Initial
Catalog=Northwind;Persist Security Info=True;User
ID=userName;Password=password"
providerName="System.Data.SqlClient"
/>
</connectionStrings>
Here, have a look at details: MSDN: How to: Read Connection Strings from the Web.config File[^]
|
|
|
|
|
|
What question are you answering? Your answer has absolutely nothing to do with the question, and is merely spamming the site to link to an external site. Consequently, I have voted to remove your answer and your account.
|
|
|
|
|
Just a quick question.
Is this test logical or possible in ASP.NET? If so, under what scenario(s) would you
expect to see such a positive result of the test.
Thanks
if (Request.HttpMethod == "POST" && !IsPostBack)
{...}
Just because we can; does not mean we should.
|
|
|
|
|
I ain't no web-programmer, but sounds like homework, and I know where the documentation is, so shouldn't be too hard to come up with something. Let's try.
HttpRequest.HttpMethod[^]Gets the HTTP data transfer method (such as GET, POST, or HEAD) used by the client. Docs also state it's a String , so the first part of the evaluation looks correct. The English implies that the Request was a POST action on the server.
IsPostBack looks like a property, not a method. Guess it must be part of the Page[^]. Gets a value that indicates whether the page is being rendered for the first time or is being loaded in response to a postback. Ah, interesting. So, the block would be executed if:
- It's being POST-ed
- It's not a postback (meaning, the page is being rendered the first time)
The action is determined in the Form ;
<form name="input" action="html_form_action.asp" method="post"> ..and that is why I kinda like MSDN. Hope this helps a bit
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Thanks for the reply, not quite the answer I was hoping for, but thanks anyway.
p.s. its not "homework" in the traditional sense but rather me attempting to expand my knowledge on my own time.
Just because we can; does not mean we should.
|
|
|
|