|
What is in the code of your export function?
|
|
|
|
|
I have a table in the session and i sometimes modify it
Dim t as datatable = session("t")
'modify t
session("t") = t
Even if i dont save t after modifying it, it maintains changes
I know that tables are passed by reference
Is that ok not explicitly saving the table back to session after changing it? or could there be any problems?
Thanks for any suggestion
Alexei Rodriguez
|
|
|
|
|
Yes you are right the changes are going to reflect in Session object also
I think if you explicitly assign back to session after change wont make any performance issue, It will check both the references, as both are pointing to same object it is not going to create one more object.
Its all what i think, Comments are welcoomes
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Masters,
Maybe a simple question but one I need to ask because I don't know how to handle it. I have an Stored Procedure which returns rows from SQL Server and one of the columns is a bit field.
What I would like to do is to show a thumbnail image in a column if that bit field is set to true and hide the image if false.
Can anyone give me a heads up on how to acheive this. Everything else I have squared away, just this bit is giving me fits.
Thanks in advance for your suggestions.
|
|
|
|
|
You should convert the column into a template field
In the template field insert an image
And in the Bindings, bind the visible property to the BitField
After binding, You should have something like this
<asp:image runat="server" id="img" visible='<%# Eval("BitField") %>' />
If BitField evaluates to true, the image visible will be true, otherwise false
Remember, convert the column to a templatefield
Alexei Rodriguez
|
|
|
|
|
Seems extremly reasonable! I'll give it a shot. Thank you for the reply.
|
|
|
|
|
Believe it or not
It works
You can do many things with template fields
Alexei Rodriguez
|
|
|
|
|
Oh, I wasn't questioning your response at all. You just made it seem very easy and logical. Believe me, I had no idea how to go about it to make any inquiry about any response.
Besides, I won't be able to try it out until the morning..
|
|
|
|
|
Nevermind my last response. I read your's wrong. Sorry about that, I keep forgetting you can't read "tone".
|
|
|
|
|
Hi,
I have a method that retrieves a variable with a click
of a LinkButton. I need to use that variable in an other
method but it becomes null for some reason. I guess that
happens because of the page postback every time and since
i have an initialization command at the beginning of my code
it makes it null again. So should i pass an argument with
the page postback or disable the linkbutton's postback.
And How could i do any of those?
Your help is greatly appreciated.
phivos
|
|
|
|
|
Not sure if you need this variable to persist, but if you do, couldn't you assign it to a Session Variable and retrive it whenever you do a postback?
Just wanted to make a note that I am a newbie and am trying to contribute to this site as others have helped me.
|
|
|
|
|
ffowler wrote: Not sure if you need this variable to persist, but if you do, couldn't you assign it to a Session Variable and retrive it whenever you do a postback?
Have to agree with you FFowler there hold the variable value in session or viewstate but could you elaborate on the sequence of events you are trying to implement?
|
|
|
|
|
I HELPED, I HELPED.....finally!
|
|
|
|
|
Yes exactly, does any of you guys know how to assign it as a Session variable
and then how to retrieve it back?
Thanks a lot!
|
|
|
|
|
Session["Giveitaname"] = value
//if the value you are storing is string i suggest do this
if(!string.IsNullorEmpty(Session["Giveitaname"].toString())
{
newvalue = Session["Giveitaname"].tostring();
}
//otherwise just check if null then cast it accordingly
|
|
|
|
|
Thank's a lot for your post! Works!
|
|
|
|
|
Hello,
When I try to add a web reference in Visual studio 2005.
Below operation do not happen:
A WSE-enabled proxy class is added to the project
I just have two files in the Webreference folder:
wsdl and disco map.
Regards
Pavas
Regards,
Pavas
|
|
|
|
|
Is there a special trick to clearing a javascript cache in IE7?
I have tried deleting all files through IE, deleting the temporary asp.net files, rebooting the machine - it still runs the old code.
If I call the page from another machine running IE6, it runs the new code.
Googling shows up some pretty weird stuff that has not helped...
TIA!!!
|
|
|
|
|
Have you tried holding CTRL+SHIFT on your keyboard while pressing the refresh button at the top?
I hope this helps.
|
|
|
|
|
Ok try selecting tools --> internet options --> settings (under browsing history) --> select the option every time you visit --> set disk size to 8 also you can then click on the advanced tab under security check the box Empty temporary internet files folder every time browser is closed
A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty I am a Optimist
|
|
|
|
|
Thanks for both suggestions - these both work fine for inline javascript, but still does not refresh the external .js file.
|
|
|
|
|
Hello all,
i wrote this code for my catalogue pictures for my shop site,i want become thumbnail my pictures:
Eval("picure_url", "thumb_{0}")
but my pictures become loss when i add Thumb_ to my code
what do i do now?
thank you,
Hoda
modified on Wednesday, April 2, 2008 3:59 PM
|
|
|
|
|
|
Thank you very much for your response.
|
|
|
|
|
Hello,
I am trying to attach a signature with the proxy and trying to do some operation like below:
wse.RequestSoapContext.Security.Tokens.Add (new X509SecurityToken(cert));
X509SecurityToken crtTkn = new X509SecurityToken(cert);
http://www.eggheadcafe.com/articles/20021231.asp
I am not able to see a "RequestSoapContext" under my proxy of webservice...? Could some one please suggest. What I might be missing. I have installed WSE 2.0
Regards,
Pavas
|
|
|
|