|
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
|
|
|
|
|
Hi Friends..
I am having a login page (.aspx) which is a pop up page..Now i maintain a session in this login page to hold the username in the session..Now i need to retrieve this session in another page which is having 3 iframes..I need the session variable in the 3rd iframe..But when i try to retrieve i am getting "nothing" in the session..Wat might be the problem..? i am developing in .Net 2005 using atlas framework.
Regards,
Balaguru
|
|
|
|
|
Just a general point, but try avoiding pop-up windows, some users browser block this feature.
Can you show us the code for the iframes
|
|
|
|
|
The following is third iframe in which i call a .aspx page.The code is as follows..
In login page Session value stored : Session("USERID") = gstrUserId
In Game Page (3rd Iframe page) session value retrieved : lstrid = CType(Session("USERID"), String)
(or)
lstrid =Session("USERID")
But i am getting "nothing" in lstrid , when i execute this with the help of breakpoint
Wat could be the problem.?
Thanks & Regards
Balaguru
|
|
|
|
|
r u using any classes in between i.e. BLL / DAL etc...? this is the only issue with such kind of problems..
other chances may be that somewhere any dynamic class code i sgetting changes...means your are creating some compilable code dyamically...
third, may be there is some event which is resetting your session..
{ptu some code in global.asax file for catching session event}
Ashish Sehajpal
|
|
|
|
|
Dear all,
i have a pdf file in some directrory of project(say mysite/pdfdirectory) and a pdf file inside the directory i have a pdf file inside directory adnd name of file saved in database now i want to show this pdf inside a particular div in a web form. the same thing works(for image file) when i add asp:image inside div, but its not working in the case of pdf. Can u please show me the path on how to do it i saw many exaple alll with Respose.writefile(fileuplaodpath) i think this shows the pdf file inside whole browser
|
|
|
|
|
check this out:
http://forums.asp.net/t/128005.aspx
http://forums.asp.net/p/1036628/1436084.aspx
|
|
|
|
|
Hi,
I used this code the project contains no error.
but the mail is going to the inetpub\mailroot\Queue folder not to the email id we provided. Is there any settings, smtp server is also running
using System.Net.Mail;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
/* create the email message */
MailMessage message = new MailMessage("senders@email.com",
"recievers@mail.com", "Testing",
"Test Mail Message ");
/* create SMTP Client and add credentials */
SmtpClient smtpClient = new SmtpClient("172.19.76.174");
smtpClient.UseDefaultCredentials = false;
/*Send the message */
smtpClient.Send(message);
Response.Write("Email Sent");
}
}
Asif
modified on Tuesday, May 6, 2008 6:41 AM
|
|
|
|
|
check weather you Smpt sever allows mail or not. if yes the check the configuration.
Best Regards
-----------------
Abhijit Jana
"Success is Journey it's not a destination"
|
|
|
|