|
I guess you need to tell us which line fails and show us the ASPX as well.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hello,
I have a department and an employee table. I populated a radio button list with all the department codes.
By default a Gridview will display all employee record. And, when I will select one department code on the radio button list, the GridView will only display employee record(s) with the same department code(s).
This is working fine with the ff:
protected void radioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
SqlDataSource2.SelectParameters.Add("deptCode", radioButtonList1.SelectedValue);
SqlDataSource2.SelectCommand = "SELECT [iD], [firstName], [lastName], [dateOfBirth], [deptCode][position] FROM [F201] WHERE ([deptCode] = @deptCode)";
}
But, I think that, when there will be to many employee records, this will slow the loading. Is there any other way to display these record to a Gridview without re-querying to the table?
I am new to Asp.Net, any suggestion will be very much appreciated.
|
|
|
|
|
How many is too many?
Is your Gridview paginated? that could help in loading time. You could write sql stored procedure to help with the database performance too.
Sath Garcia wrote: display these record to a Gridview without re-querying to the table?
The only way is to load all the records and write javascript code to manupliate your gridview. But don't think this is going to be easy code.
Yusuf
|
|
|
|
|
Thanks man,
Yes the gridview is paged. I set it to 20. Anyway, I guess I am gonna be sticking to what i did for the main time, besides, it is not really that "many" records. I was just looking for any other alternatives to further speed up the apps
I guess I'll start digging for javascripts too
thanks again.
|
|
|
|
|
Good Day All
My Employer is using .NET 2.0 and we have VS 2008 installed. In a Way he is Saying am giving you latest tools to give me a solution. Now we have big long runing .NET 2.0 Project, and as Developer we need to grow in the product by exploring the technologies presented in 3.5.So my question is is it Posible to Add a .NET 3.5 technology on 2.0 ? and how ?
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
simple answer...no. Best thing is install 3.5. Its free.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
You really did not take time to understand my question
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
|
hi JMummery
Thank you for your advice. Thats cool
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
can anyone tel the code for servertime..will .ToLocalTime get the server time..
scarface
|
|
|
|
|
try this
Label1.Text =Convert.ToString(DateTime.Now);
Hope it Helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
Hi all,
I am using asynchronous page processing,. My problem is that, page logs in and logs out for the first request and after re-logging in page there is no problem..How to maintain authentication for the page...
How to solve this....
Thanks in advance..
|
|
|
|
|
I can show my report (CR of VS 2005)in my development machine (Asp.Net 2.0 with C# code behind). But after deploying in my server, toolbar images are not displaying in the report.
It is showing as red color (X). I googled and tried some thing to rectify it. But, my problem is not solved so far. Any body can release me. It is urgent pls.
Balasubramanian K.
|
|
|
|
|
check the aspnet_client folder. Place it in the project root folder.
The miracle is this--the more we share, the more we have.
|
|
|
|
|
Actually, it is in c:\inetpub\wwwroot. But what i did is, I created one virtual directory under my project and give link into the aspnet_client. Even though it is not displaying
Balasubramanian K.
|
|
|
|
|
first be sure, it is only problem of aspnet_client folder. Type to copy and paste this folder into your project.
The miracle is this--the more we share, the more we have.
|
|
|
|
|
Yah..I've placed aspnet_client folder in to my project. Even though, the images are not displaying
Balasubramanian K.
|
|
|
|
|
we can call server side method with the help of Icallback like ClientScript.GetCallbackEventReference(this, "column", "ShowResult", null).
in this way i can call server side method. please tell me anyone that how can i call gridview related method like "GridView1_RowEditing" or "GridView1_RowUpdating" just by Icallback API. it will be great help if some one help me with sample code or url from where i can get the exact code as i required.
tbhattacharjee
|
|
|
|
|
hi
when some one enter the url such as " http://10.10.15.57:1230/CMS/admin/Login.aspx"
then my login page should be shown.
what type of make settings in IIS so that some enter the ip address and page path
so that they get the page.
Note: i know this is asp.net forum but person who are developer that might know
so plz do not make comment such that "this is asp.net forum".
Regards
Keyur Satyadev
|
|
|
|
|
Try to use server variable SERVER_NAME.
The miracle is this--the more we share, the more we have.
|
|
|
|
|
keyur_satyadev wrote: http://10.10.15.57:1230
OK the thing is, this is not IIS. Its inbuilt web server of visual studio. that you cannot access from remote computer (other then your computer).
so you have to create a virual directory in your IIS. and copy the files from your project folder to that virtual directory. And then you can type.
i.e. http://10.10.15.57/< your virtual directory >/Login.aspx
to setup IIS you can either seach here or on google for the procedure, I think there is one article for setup IIS for asp.net website.
|
|
|
|
|
I get this error
Server Error in '/WebSite16' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30288: Local variable 'Classifieds' is already declared in the current block.
Source Error:
Line 8: Dim classifiedsAPI As New Classifieds()
Line 9: Dim classifieds As Classifieds = classifiedsAPI.Classifieds(pictureID)
Line 10: Dim Classifieds As DataSet1.ClassifiedsRow = classifieds(0)
Line 11:
Line 12: ' For new categories, images are JPGs...
Source File: C:\Documents and Settings\Paul Quinn\My Documents\Visual Studio 2005\WebSites\WebSite16\Classifieds.aspx.vb Line: 10
Show Detailed Compiler Output:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE> "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINNT\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Code.kgxnjivk.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINNT\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINNT\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web_dfz-mkmz.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /out:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.dll" /debug- /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.0.vb" "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.1.vb" "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.2.vb" "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.3.vb" "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.4.vb" "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.5.vb" "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.6.vb"
Microsoft (R) Visual Basic Compiler version 8.0.50727.1433
for Microsoft (R) .NET Framework version 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
C:\Documents and Settings\Paul Quinn\My Documents\Visual Studio 2005\WebSites\WebSite16\Classifieds.aspx.vb(10) : error BC30288: Local variable 'Classifieds' is already declared in the current block.
Dim Classifieds As DataSet1.ClassifiedsRow = classifieds(0)
~~~~~~~~~~~
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Can anyone help me please
|
|
|
|
|
What dont you get?
"Compiler Error Message: BC30288: Local variable 'Classifieds' is already declared in the current block."
|
|
|
|
|
The error means what it says. Specifically:
1 - VB was designed for stupid people. It's not case sensitive. classifieds and Classifieds in VB would refer to the same thing. So would CLASSIFIEDS and cLassIfIEds.
2 - using case difference to create two different variables in the one block is even nastier than having a dataset called DataSet1. If you want your code to be unreadable, there are programs that do that for you AFTER you wrote the human readable version.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi Christian,
Sounds like you like flaming VB, you must be in the C camp then. I disagree VB was not designed for stupid people. I know C and VB, i use both almost every day. Personally I prefer VB as it looks less messy to the reader. Self documenting code (well almost).
Its all about using coding standards in this case and the variables have not been properly thought about, a very easy mistake for someone hat is still learning the basics or has had no real life commercial experience.
Regards
Julian Mummery
Please Visit my FREE Bug / Fault Logging Website at FaultLogger.com
|
|
|
|