|
Have you tried hiding the row?
|
|
|
|
|
yes.i delete the record only in datagrid not database
regards
saravanan
|
|
|
|
|
why dont you try it with follow code?
select collumname from tablename where not collumname=something
ignore value you want to delete
or
create a view or a table content your value, databind it to your component and delete anything you want ^^
|
|
|
|
|
Assuming you are using a DataTable and binding the grid to it you can always remove the record from the DataTable without effecting the database.
only two letters away from being an asset
|
|
|
|
|
I have encontered a performance issue that I am not able to resolve. I have a simple form with some dropdownlist and text boxes (server controls). When I click the save button, it will perform a simple update in a table. The weird thing is that it takes about 3 to 4 seconds to post back. Saving the information in database takes less than a second. I set up a trace and the idle is between Begin Raise PostBackEvent and End RaisePostBackEvent as is shown below:
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000383 0.000383
aspx.page Begin LoadViewState 0.000410 0.000027
aspx.page End LoadViewState 0.000911 0.000501
aspx.page Begin ProcessPostData 0.000933 0.000023
aspx.page End ProcessPostData 0.001130 0.000197
aspx.page Begin ProcessPostData Second Try 0.001213 0.000083
aspx.page End ProcessPostData Second Try 0.001237 0.000024
aspx.page Begin Raise ChangedEvents 0.001255 0.000018
aspx.page End Raise ChangedEvents 0.001280 0.000025
<b>aspx.page Begin Raise PostBackEvent 0.001298 0.000018</b>
<b>aspx.page End Raise PostBackEvent 3.517342 3.516044</b>
aspx.page Begin PreRender 3.517393 0.000051
aspx.page End PreRender 3.517547 0.000154
aspx.page Begin SaveViewState 3.519734 0.002188
aspx.page End SaveViewState 3.519846 0.000111
aspx.page Begin Render 3.519867 0.000021
aspx.page End Render 3.522489 0.002622
Any help on how to solve or improve the performance it is really appreciated.
Albert
|
|
|
|
|
How large is your viewstate?
|
|
|
|
|
View state shouldn't be an issue. It is under 22kb.
Regards,
Albert
-- modified at 15:57 Tuesday 28th November, 2006
|
|
|
|
|
Well, you know where to look; the post back event uses 3.5 seconds, that's where almost all the time is spent. If saving the information takes less than a second, what do you do other than that?
---
b { font-weight: normal; }
|
|
|
|
|
That's the weird thing. I am not doing anything other than call my update function. When I put a custom message Trace.Warn("Before ButtonClicked handler.") This is what it displays:
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000412 0.000412
aspx.page Begin LoadViewState 0.000440 0.000027
aspx.page End LoadViewState 0.000944 0.000504
aspx.page Begin ProcessPostData 0.000967 0.000023
aspx.page End ProcessPostData 0.001165 0.000198
aspx.page Begin ProcessPostData Second Try 0.001258 0.000092
aspx.page End ProcessPostData Second Try 0.001282 0.000025
aspx.page Begin Raise ChangedEvents 0.001301 0.000019
aspx.page End Raise ChangedEvents 0.001331 0.000030
aspx.page Begin Raise PostBackEvent 0.001349 0.000019
Before ButtonClicked handler. 3.498082 3.496733
aspx.page End Raise PostBackEvent 3.541860 0.043778
aspx.page Begin PreRender 3.541911 0.000051
aspx.page End PreRender 3.542067 0.000156
aspx.page Begin SaveViewState 3.544194 0.002127
aspx.page End SaveViewState 3.544302 0.000108
aspx.page Begin Render 3.544323 0.000021
aspx.page End Render 3.547021 0.002698
So I wonder what else happends between Begin Raise PostBackEvent and my actual postback event?
Regards,
Albert
-- modified at 15:57 Tuesday 28th November, 2006
|
|
|
|
|
Is that the first line in your event handler?
Do you have any other event handlers? Page_PreInit? Page_Load? Page_PreRender?
---
b { font-weight: normal; }
|
|
|
|
|
I have some overridable functions but I check them if it is a postback before performing anything. So from that side I know there is not extra trip to the server it is just what happend before the postback event, where the 3 to 4 seconds occurs.
If I found what was the cause, I'll definetly let you know.
Thanks for your help anyway.
|
|
|
|
|
Is there any way in C# to evaluation and Expression created in reporting services? Example evaluating the expression =Globals!ReportName + ".rdl" which would return MySample.rdl.
I know this is a very simple example and I would like to evaluate very complex expressions.
It looks like the expression is in VB.NET with a few addins like Globals!ReportName, Globals!ExecutionTime, etc. Therefore I could create a sample VB.NET project and make my C# code compile a VB.NET executable with the expression inside VB.NET project with the "addins" replaced with their text representation, but this would be a lot of work. Thats what I am trying to avoid.
Has anyone come up with a solution?
Chris
|
|
|
|
|
Just incase if anyone is wondering I had to create a class that would compile the VB.NET assembly with the expression code to get back a value.
Chris
|
|
|
|
|
Hi everyone!
I need help understanding how to add overlays and tiles over my google map... is there a way to overlay only one image instead of mapping the url's of each tile? Many many thanks in advance!
Nila
"...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea
|
|
|
|
|
I have to run a crystal report within a specified date range and display this date range in the header of the report.
So, for example, I may be grabbing all data between 10/1/2006 & 10/31/2006. I would then need to place on the header of the report "Period: 10/1/2006 - 10/31/2006". These two dates would be specified within an asp.net textbox before the report is generated.
How can I pass these 2 dates to display on the report?
Thanks.
-Goalie35
|
|
|
|
|
|
im studying asp.net, i write a web page by using asp.net, it run on my computer so well, but when i try public it on web service which server support asp.net it cant run, it also correct on my web.config
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
but it does not work.
this is the file i just upload. i uploaded all dir of program
http://www.bambooproductall.com/chandoi/WebForm.aspx
any one can help me.................
___________
tran nguyen
|
|
|
|
|
tran, did you compile your code before uploading it to the server?
For example, in visual studio, you can debug your program on your machine with no problem however when you're ready to upload it to a server, you need to switch your "Solution Configuration" dropdown from "Debug" to "Release", then select "Build" --> "Rebuild Solution".
This will compile your project (your vb, c#, j#, or whatever your coding in) into a single DLL file, which can be located in your "Bin" folder. Upload your projects' DLL file to the "Bin" folder on the server and then upload your aspx file to its propper folder.
Also, since we're discussing troubleshooting options, ensure that the server you're uploading to is not only asp.net compatible but is also compatible with the version of asp.net you're using (i.e. a server with only the 1.1 .NET Framework will not run a project created in the 2.0 framework).
-Goalie35
|
|
|
|
|
thank for help but it still does not work, i complile it , check version, (i use .net 2003) , correct web.config file, in my conputer it run very well, but on web it does not work!
___________
tran nguyen
|
|
|
|
|
What's the actual error you're receiving?
|
|
|
|
|
Copy the error message, and post it here.
|
|
|
|
|
http://www.bambooproductall.com/mysite/WebApplication6/bin/WebForm1.aspx
this is my web, you can copy and paste it in brower and see my failt
or this is my failt
<!--
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
-->
i try to correct my failt by correct web.config like it said but no effect
this is my project, i only create 2 text box and 1 button
http://www.freewebs.com/quetien/imageforblog/chandoi.zip
im using .net 2003, it run good on my computer, i only dont know how to use it on web
thank for advance
____________
tran nguyen
|
|
|
|
|
Are you sure that the virtual directory has been set on the server? Also make sure there is an application name associated with the directory.
|
|
|
|
|
Hi,
Im having problems getting the value from a column in my GridView. I Have tried all of the following methods and a few others but none return the value and most just give Object not found errors.
<code>protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{//test message
ShowMessageBox("CHANGING");
//Label temp=null;
//temp.Text = (GridView1.FindControl(Label1.Text)).ToString();
//Label11.Text = GridView1.FindControl(Label1.Text).ToString();
//Label11.Text = GridView1.SelectedDataKey.Value.ToString();
//Label11.Text = GridView1.UniqueID.ToString();
//Label11.Text = GridView1.SelectedDataKey.Values.ToString();
//Label11.Text=GridView1.DataKeys.ToString();
//Label11.Text=GridView1.SelectedRow.Cells[0].Text;
}</code>
Any help would be great. Im wondering if the problem is anything to do with the fact im using a masterpage for the template of the actual page im working on????
Or is it coz im not doing it the corect way for ASP.Net 2.0 ????
Thank
|
|
|
|
|
Is ShowMessageBox("CHANGING"); a method or have you confused it with console app?
Nila
"...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea
|
|
|
|