|
This would work but if every image is 200kb and on every request it stores a copy on hard disc then the hard disc would run out of space. from my toying around with it if in my event code changes the image to another image on the server that works fine however, same image is really a pain. I tried several cache cleaning methods i found on Google but they don't seem to solve the problem.
|
|
|
|
|
Yeah, you obviously need to delete your old image when the new image is requested, or have enough HDD space to store them all.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi Dear
I use VS2005 (ASP.NET 2) & SQL Server 2005
In a Gridview i have a column that is a foreign key & it's data type is TinyInt. I want to show another data field that is related with master table, like a ComboBox that has 3 parameters (DisplayMember , ValueMember & SelectedValue), but there isn't any SelectedValue paramete in my Gridview !
How can i do that ?
|
|
|
|
|
You have to find the combo box in the row that is selected and then get it's selected value. The combo box, not the grid view row, contains the value.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi, set your gridview with a datakeys.
Datakeys one of the property of your gridview.
datakeys = [columnfield from database]
|
|
|
|
|
Hi,
I have two tables LaptopBrandsTable and LaptopModels table. In my asp.net page, i have a searchtxtbox.
I want to generate a page , that shows all models for a particular brand in a page, which when clicked shows details for the laptop. I might have 100s of laptop under one brand so if the entries become more than 35, i want to start another column in the page. Which asp.net control would help me do this, and how would i make the models appear as links..
eg when searched for acer, i want to show
acer aspire 1 acer aspire 36 acer aspire 71
acer aspire 2 acer aspire 37
.......... ........
acer aspire 35 acer aspire 70
Thanx..
best regards,
mark
|
|
|
|
|
Use a repeater to generate your links, and then just form URLs that pass an id to your final page to read the details from the DB
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi,
in asp.net, i have the following errors,
System.Reflection.TargetInvocationException was unhandled by user code
Message="Exception has been thrown by the target of an invocation."
Source="mscorlib"
StackTrace:
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e)
at System.Web.UI.WebControls.ListControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at TimeEntry_aspx.Page_Load(Object sender, EventArgs e) in h:\TimeTracker1\TimeTracker\TimeEntry.aspx.cs:line 40
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
thanks in advance
murugavel
|
|
|
|
|
Did you google the error ? Work out what page is causing the error ? Is it just one page ? Do you know what line of code does it ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
|
NEVER use the designer, it is CRAP. Write CSS, use tables or just use br tags to space stuff out on your page.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Thanks, would you suggest another IDE that might work better? Have you glimpsed at VS2010 by any chance?
Jon
|
|
|
|
|
|
pradeepsimha wrote: how to pass array from one page to another?
First of all what is the reason for passing the Array over page? If its same for all user try to store it in Application Variable or For different for every user use Session.
But why you are trying to do that ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
actually i m doing bus reservation project......in form user will select seats(using checkbox lists) and i need to pass those selected values from this page to next page.......so only........
|
|
|
|
|
But, is it homework, or paid work ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
You've asked this a few times now. Is it homework or paid work that you're taking on, but have nothing close to the skills needed to do ? If it's homework, talk to your teacher. If it's paid work, tell the client you are a fraud. If you really want to do this, just read all the answers you got last time, and if you post again, post something like 'I was told to do xx, here is my code, and here is where I am still stuck'. The alternative, is to decide that programming is beyond you and to do something else with your time.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
thanx for u r concern bt programming is not behind me.......k
|
|
|
|
|
I'm not sure what this means ? Are you a student who has not studied enough, or are you being paid for your ignorance ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
if you know u help but pls dont try to degrade one's ability because one or other day u ll also in d situation to get help from others...
|
|
|
|
|
you're wrong. I have far more difficult problems than yours and I solve them myself, with google and with textbooks. I DO ask questions from time to time, but never as basic as this one, and never without reading and applying the answers.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi, you must have public property for your array.
example:
private _id as string()
public property strID() as string
|
|
|
|
|
Gosh - that's more clueless than even the OP. This thread is getting better all the time.
How does he pass the property between web pages according to your answer ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I have a listbox and MovetoTopbutton,MovetoBottombutton
when i select an item in the listbox and if i click on MovetoTopbutton
then the selected item should be placed in top of the listbox
vise versa for MovetoBottombutton
how to do this one.................
|
|
|
|
|
Someone else asked this a couple of posts down ( or you asked twice with two different accounts) . It's done with javascript, which means it's not really an ASP.NET question. Google for samples
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|