|
I would like to know How to run client side - server side - client side functions in a row...
Actual situation is like this: I have a check box and a button and on the click event of the button i will run a db method to export data to excel. If the checkbox is clicked then I return all rows else I return only 100 rows. All this happens without a postback.
So, when I click on the checkbox, I am saving the checked status in a hiddenfiled and using that value in the code behind button click event handler. Now, if the check box is clicked, then I want to return all rows and uncheck it automatically. Since there is no postback, it is not unchecked even if do it from code behind or invoke javascript function from code behind.
I can't give the code since it is a part of some complex implementation. Any help in this regard is highly appreciated.
Cheers
CNU
|
|
|
|
|
CNU wrote: Now, if the check box is clicked, then I want to return all rows and uncheck it automatically. Since there is no postback, it is not unchecked even if do it from code behind or invoke javascript function from code behind.
Use Javascript. Without a postback, it'll be have to be done on the client.
I can't give any code, since it's complex. Look at the Ajax-example of W3Schools.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
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.
|
|
|
|