|
can any one guide me that i have a update panel on page
which contains two drop down list country and city on selected index change i am loading cities .
on local machine and lan it works fine ....
but when i host this application on server and try to change country i takes around 3 minutes to load cities i have tried my best to identify the problem.. but failed does any one have idea how to resolve this problem....?????
umerumerumer
|
|
|
|
|
this problem is for server peformance
as your request is taking a lot time to get completed
|
|
|
|
|
ok thanks for reply then what do you recommend in order to solve this problem????
umerumerumer
|
|
|
|
|
Hi,
I have a formview that uses a sqldatasource.
In the insert item template of the formview I have a file upload control that the user uses to upload an image to the database.
Then on the click event of the insert button I take the image and push it over to a byte array so that I can insert it into the database.
Then I want to update the insert sqlparameter with the byte array to be saved to the database.
The problem that I'm facing is that the column type in the database table is that of image, but when i try to set the sqltype of the insert parameter there is no image option under the TypeCode enum.
I can't insert the image as string nor as object cause it gives me an sqlexcpetion of converting from string to image type. The error is as follow : "Operand type clash: nvarchar is incompatible with image"
Any ideas on how to get this working?
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
images are binary type so you can do this by binary format
|
|
|
|
|
Hi,
I have developed a asp.net project using frame work 2.0, & i add some class files in appcode folder & i want to create dll for appcode only which is having some class files
modified on Friday, February 20, 2009 7:06 AM
|
|
|
|
|
What are you actually asking ?
i want to create dll of appcode only if i publish website it create to all dll
Can you please read this and tell me if it make sense. Before you post , please make sure that what you wrote will be understandable to another person.
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
|
|
|
|
|
If I understand what you are asking... What you would need to do is:
1) Add a class library project to your solution
2) Move your classes from app_code to the class library project
3) Add a reference to the class library to your website
4) Add a reference to the namespace to the web.config so you don't have to add a using to every page
<page>
<namespaces>
<add namespace="MyDll" />
..it may take some debugging but this will get you most of the way there.
Regards,
Jeff
|
|
|
|
|
dont worry about that, just publish your site (Build > Publish Web Site)...it will create dlls for every page code
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
|
|
|
|
|
I have a series of dropdownlists outside the datagrid control. I'm looking for a tutorial or a point in the right direction to learning how to filter the datagrid with these controls.
If anyone knows a good place to start let me know, its much appreciated.
|
|
|
|
|
please describe your question in detail. what exactly do u need.
|
|
|
|
|
I'm looking for a way to drilldown i think it is the datagrid.For instance
When the page loads the default dataset with all the info is retrieved.
then the user can filter the data using dropdowns. But they can search between parameters eg. id > 34 id <544
|
|
|
|
|
when you retrieve data from database assign that datatable to default view and then filter with prarameter you want and then bind it with grid
|
|
|
|
|
when we are executing the project we are getting the error as below
could not load file/assembly crystaldecission.crystal reports.engine version-10.2.3600.0................ in VS2005.(web.config)
|
|
|
|
|
yes are you missing .dll that you have mentioned here..
first you look in your project that reference of this assembly is added or not????
if added then it should exist in your web.config file
umerumerumer
|
|
|
|
|
Hi all,
Iam using caching in my asp.net application..I have used the code
Cache.Insert("Ds", DsiReports)
I have inserted a dataset in cache which contain records...
wheh i use the below the code.(Cache.Item("Ds")) contains nothing
If Not IsNothing(Cache.Item("Ds")) Then
DsiReports = Cache.Item("Ds")
End If
wheh i run the same code in my near by and other system the cache contains data..In my system cache is not wrking ..
How to enable cache in my system??
pls give some suggestion...
I searched in google but it didnt work
|
|
|
|
|
|
Hi,
I use a gridview with checkbox & emailid for sending newsletter, which bind with sqlserver 2000 table, that contains more than 2000 records, so when page load it takes so much time. Please send me better solution for sending newsletter.
|
|
|
|
|
It's better if you load the database in the Cache when application starts and then use the cached database.It'll help in better performance
|
|
|
|
|
I believe you are using paging feature for displaying 2000 rows in grid view.
Transfer 2000 rows across the network will take long time and application becomes very slow.
Instead of that you can write a stored procedure, which will fetch only those rows which are supposed to display on a particular page ( suppose if page size is 20 and User clicks on 3rd page your stored procedure should fetch the rows from 41 to 60 records)
you can find variety of stored procedures on the net for doing this, just Google.
Satish
|
|
|
|
|
bind with SqlDataSource, much faster than doing things manually
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
|
|
|
|
|
hi i want to populate gridview with list of files within a directory which is a part of my project. and when user clicks on any file name then that file should open. I am using ASP.net with C#.
i have pupulated the grid view with list of files but when i click on the file name it gives an error.
Can anybody help me out of this.
thanks in advance.
modified on Friday, February 20, 2009 5:23 AM
|
|
|
|
|
Make the gridview field that the file name appears as a template field and try to get the path first.If u r storing all the files in one palce or folder means it is easy to get the path.First get the cell value and then append the path,here i am giving one eg it may help u(U have only the reference of the file in the dataGrid)
here i am getting the cell value from the grid and appending with the path and then giving to play in a player
aspx page
]]>
<title>Untitled Page
window.moveTo(0, 0);
window.resizeTo(screen.width, screen.height)
function PlayIt(a)
{
var what='C:\\rakesh\\Music\\AnanthaBhadram\\Music\\'+a;
document.getElementById('music').innerHTML='<object width="300px" height="60px" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+what+'" />'
+'<param name="uiMode" value="full" />'
+'<param name="autoStart" value="true" />'
+'<param name="loop" value="true" />'
+'<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" showcontrols="true" uimode="full" width="300px" height="60px" src="'+what+'" autostart="true" loop="true">'+'</embed></object>';
return false;
}
function right(e)
{
if (navigator.appName == 'Netscape' &&(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
{
alert("Sorry, you do not have permission to right click.");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
function abc(a)
{
var what="C:\\rakesh\\Music\\AnanthaBhadram\\"+a;
alert(what);
}
<object height="55" width="249" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" style="z-index: 100; left: 302px; position: absolute; top: 98px">
<param name="URL" value="" />
<param name="rate" value="1" />
<param name="balance" value="0" />
<param name="currentPosition" value="0" />
<param name="defaultFrame" value="" />
<param name="playCount" value="1" />
<param name="autoStart" value="-1" />
<param name="currentMarker" value="0" />
<param name="invokeURLs" value="-1" />
<param name="baseURL" value="" />
<param name="volume" value="50" />
<param name="mute" value="0" />
<param name="uiMode" value="full" />
<param name="stretchToFit" value="-1" />
<param name="windowlessVideo" value="-1" />
<param name="enabled" value="-1" />
<param name="enableContextMenu" value="-1" />
<param name="fullScreen" value="0" />
<param name="SAMIStyle" value="" />
<param name="SAMILang" value="" />
<param name="SAMIFilename" value="" />
<param name="captioningID" value="" />
<param name="enableErrorDialogs" value="-1" />
<param name="_cx" value="6588" />
<param name="_cy" value="1455" />
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" datasourceid="SqlDataSource1" onrowdatabound="GridView1_RowDataBound" xmlns:asp="#unknown">
Style="z-index: 102; left: 305px; position: absolute; top: 206px">
<columns> <asp:templatefield headertext="No" insertvisible="False" sortexpression="No">
<edititemtemplate>
<asp:label id="Label1" runat="server" text="<%# Eval(" no=") %>">
<itemtemplate>
<asp:label id="Label1" runat="server" text="<%# Eval(" no=") %>">
<asp:templatefield headertext="Music_Path" sortexpression="Music_Path">
<itemtemplate>
<asp:linkbutton id="LinkButton2" runat="server" text="<%# Eval(" music_path=") %>" commandargument="<%# Eval(">LinkButton
<asp:templatefield headertext="Name" sortexpression="Name">
<itemtemplate>
<asp:linkbutton id="LinkButton1" runat="server" text="<%# Bind(" name=") %>" commandargument="<%# Eval(">
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="Data Source=ONAM;Initial Catalog=Rakesh;User ID=sa" xmlns:asp="#unknown">
ProviderName="System.Data.SqlClient" SelectCommand="SELECT [No], [Music_Path], [Name] FROM [Music]">
cs file
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void GridView1_RowDataBound(object sender,GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton l = (LinkButton)e.Row.FindControl("LinkButton1");
l.Attributes.Add("onclick", "return PlayIt('" + l.CommandArgument + "') " );
}
}
}
modified on Friday, February 20, 2009 5:55 AM
|
|
|
|
|
Hi...
First I would like to know whether you need to get the files from the directory in the local system only or you would like to upload the files as well.
If you want to get the files from the directory we can use Directory.GetFiles() method.
GO through the following code.
GridView1.DataSource = Directory.GetFiles("c:\\Tempu\\Upload", "*.doc");
GridView1.DataBind();
Please let me know if it serves your question.
Regards
Raj.
|
|
|
|
|
i am developing an application in aSP.net using C#, in which i want to store the files path into access database and then i want to open this file when user clicks on the particular link. can anyone help me out of this. it's really very urgent.
remember i am using ASP.net with C#.
Thanks in advance.
|
|
|
|