|
You probably want to include another method that will stream the byte[] of the image to the browser. Suppose you create a page "GenerateImage.aspx" with these methods in it. You could then change the src attribute of an image in your UpdatePanel accordingly (to something like
GenerateImage.aspx?id=xxx<br />
<br />
Take a look at some of <a href="http://www.google.com/search?q=dynamic+asp.net+image&btnG=Search&hl=en&lr=&safe=off&c2coff=1" rel="nofollow">these links</a>[<a href="http://www.google.com/search?q=dynamic+asp.net+image&btnG=Search&hl=en&lr=&safe=off&c2coff=1" target="_blank" rel="nofollow">^</a>].
|
|
|
|
|
Hi all
Iwant to wrie a program to deal with online survey using asp.net and oracle.
My first question is how to connect to the database?(it would be better if you give my the code).
My second question is relative to the survey it self,i want to know how many one answer female for the question what is your genedr? ,For example.In another way number of people who answer specific question.
Thanks alot.
|
|
|
|
|
Sure. What have you tried so far?
|
|
|
|
|
|
Sir,
How can i delete the history programically in vb.net 1.1.
please help.
|
|
|
|
|
Sir,
There is a button in the form and the focus is already set on the button.There are few lines of code written on button click.Now the problem is if u press the enter key I don't want to execute the code written on button click.
Please help.
Thanks
|
|
|
|
|
Hi there,
Try with 'Command' event of the button control. It fired after the button is clicked, BUT you you can control it using 'CommandName' & 'CommandArgument' property.
Regards,
Jay
|
|
|
|
|
Sir,
I have gone through ur suggestion.Now the problem is I want to stop the execution of the lines on pressing the enter key.
Thanks
|
|
|
|
|
Hi,
In the Command event handler, you can check for the CommandName using any conditional statment like if in C#.
If the condition is satisfied, then you can execute your block of code , otherwise, you may simply leave the block from execution.
protected void Button1_Command(object sender, CommandEventArgs e)<br />
{<br />
if(e.CommandName=="btn1")<br />
{<br />
block of code<br />
} <br />
}
Here btn1 is the CommandName of the Button1.
If this soln is not clarifying your problem, you may expain your problem more clearly ( WHY you need to perform this?).
(I think, you are a student or Fresher to DotNet. Kindly refer a book for this kind of theoretical question you have posted today.)
Regards,
Jay
|
|
|
|
|
Sir,
I actually want to restrict the user pressing the enter key.I mean if there is a focus on the button now if the user does not click the button but press the button by keys Then the code should not execute.
Please help.
|
|
|
|
|
|
Sir,
Please explain that what's the difference between c#.net and vb.net.
This is actually this is an interview question
Thanks
|
|
|
|
|
|
I have a question about right mouse click popup menu in IE.
I try write a program that add a new item into popup menu's items(I want program popup menu).but i don't know any thing about this .
please help me .
computer
|
|
|
|
|
Hi there,
Do you mean Context Menu ? Have a look at the msdn article
Context Menu[^]
Regards,
Jay
|
|
|
|
|
no. context Menu work on a button . but I want work on a hyperlink .
computer
|
|
|
|
|
Hi All
I am devloping a testing tool in which i need to store the html file with its other folder too means i have a url using that url i have to open html page and then store that html with its other folders also which contains javascript files and other stuff so please tell me how to do this
|
|
|
|
|
What have you tried so far?
|
|
|
|
|
Nice one now my approach is like whenever we open a web page its files are store in Temporary Internet files folder in our machine so i am trying to get those file from their. What you think ?
|
|
|
|
|
|
i have a button in my form in asp.net(c#). i want when i push this button a color box open and i can select a color and that's color's hex number fall in the textbox.i want a color box such as properties of background color
|
|
|
|
|
|
Hello
I m Working on a Project here i have to put one functionality that is Autosave in every 10 sec using Ajax Control..Just like in Gmail where we Compose our Text and After Sometime It will Automatically Save into Drafts.This Process Going on in Every Few Intervals..
I have tried so much To do But nothing Work
Pls Anyone help me to Sort out this Problem..
Thanks & Regards
Aavesh
|
|
|
|
|
Hi,
I want to fetch the user account's disabled date and time from Active Directory Service through SQL Server Query. Please provide me the solution if you would have came across working with ADS.
Mohan
|
|
|
|
|
plz help me out..
I want to select a row by putting the cursor anywhere in that row, row should be selected. I dont want to use check boxes. And also swapping of rows in datagrid.
Thanks in advance.
Libran
|
|
|
|