|
Vijayitsb wrote: After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image.
Hope you are not changing image path directly through query analyzer.
Browsers will cache the images depends on the URL. So if you can append some timestamp/random values to the end of URL, it won't be cached and when new image uploaded, it will show that immediately.
Assume initially your image path is something like /somedirectory/someimage.jpg
You can change that to /somedirectory/someimage.jpg?random=append some random value here avoid caching
Note : This will stop browser from caching the image. So if this page is visited frequently, browser has to load image each time.
|
|
|
|
|
Hi
Guys need ur help i am facing a problem in changing the data grid template's column header text at run time, hows this possible , kindly reply ASAP, thankx in advance .
|
|
|
|
|
give this a go
http://www.velocityreviews.com/forums/t92109-setting-column-header-text-of-datagrid-in-prerender-do-you-know-how-to-do-it.html
King Shez wrote: kindly reply ASAP
I wouldnt put this in your posts, this puts people off
|
|
|
|
|
hi ,
I work with asp.net (vb 2005) I use aspx.vb form
I try to display a dynamic form which is described by xml (componont like text box, label, radio button ...)
my pb is how to display it dynamicaly and how to fix its layout.
I ask is someone can help me.
thanks.
|
|
|
|
|
How you do that is up to you. You need to certain the controls before the page load event for them to ave viewstate, but beyond that, your XML format and what you do with it, depends on your needs.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello friend!
i've faced a problem
i want to show an image in <asp:image> server control. the image is in bytes. i want to show the image in the image control directly,i.e.,
without using any .aspx file to convert the byte in image.
is there any way to achieve this?
pls help me.
thanks
|
|
|
|
|
The only way to do this, is to write an http handler that sends the bytes down in response to a URL to that handler being placed in an img control. Unless you only want to show an image for the whole page, then just response.BinaryWrite
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks for ur reply.
but frankly speaking,i am new to .net so i can not understand what u mean.
can u give me any coding sample?
|
|
|
|
|
There are articles on this site that cover this. If you type 'http handler image asp.net' into google, you find tons of info, more detailed than a forum reply.
Basically you create a http handler ( it's an ashx from memory ) and in it, you read an id from the URL to load the image from the DB and use Response.BinaryWrite to stream it. Then your img tags link to that handler, with the right image Id in the URL.
If you didn't understand what I just said, you are too new to be doing this task, take a step back, buy a book and work up to it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
A command button inside gridview refreshes the gridview immediately but a link button doesn't so how can i get the same functionlaty with link button if not posiible how can i add such command button by myself
|
|
|
|
|
Hrmm, maybe you can redefine your question so we actually understand what you want, cause... I don't
|
|
|
|
|
ok i gridview detailview we have autoganerate insert button edite buttonn and deletebutton right? so when we do any action from them the control gets gridview or detail view get refreshed immediately but not with link button i know linkbutton gives postback but how can i achieve so thing like command button from link button is the solution refreshing the whole page again.
|
|
|
|
|
hmm Im not sure I understand you but linkbutton does not have an onclick event so when you use linkbutton I think it re-loads the entire page so this isnt what you want.
|
|
|
|
|
link button have the onlclick event i am just wondering how the autgenerate insert button can refresh the gridview only and not by the link button that we add. the code that i have supplied should refresh the asp:label but it doesnt not whenn i am getting value to asp:lable from database is it that i have to reload the whole page
<asp:linkbutton id="lnkbtnRecharge" runat="server" text="UpdateBalance" visible="false" onclick="lnkbtnRecharge_Click">
|
|
|
|
|
Dear Friends,
I am developing E-Commerce Web Application in .Net 2.0 (Online Shopping Application for jewelles).
I need some best links, Examples and books details about that.
Regards,
Sandilian A.
|
|
|
|
|
www.google.co.uk
Then type "developing an e-commerce website"
|
|
|
|
|
www.amazon.com is a good place to start for ideas. A good ASP.NET book is what you need for the implimentation details.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i want put string in string means i my text has "" in it how can put in between ""?
"<div id="divPrint""
|
|
|
|
|
Can you explian your problem a bit more?
Do you mean you want to put a string value in the div id?
|
|
|
|
|
no thats easy but i forgot it.
i want do this
string a="hello "martin"";
i want martin be in ""
|
|
|
|
|
Ah, thats a much better explanation of what you want rather then that mish mash you wrote in your first post
try this
stringname = "Title:" + "''Name''";
its not quite what you want, but close
|
|
|
|
|
sorry try this:
string name = @""" word """;
use @ then three "
|
|
|
|
|
You ought to escape the nested string, according to the particular language's escape sequences.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
use ControlChars.quote function to put quotes in string..
e.g.
strJavaScript="<div id=" + Controlchars.quote() + " divid" + Controlchars.quote() +" />";
cheers !
Ashish Sehajpal
|
|
|
|