|
i want to create security image and use it in my website registration.
i create that image on fly but cant place it in the part of page.
i can use response.binarywrite(imagestream) but in this method, all of controls will be lost and only image is visible
i want insert the created image in between DIV tag in part of page
We Can Do Anything, If We Want It
|
|
|
|
|
Abolfazl Sheikhloo wrote: response.binarywrite(imagestream) but in this method, all of controls will be lost and only image is visible
Response.Binarywrite(imagestream) will write the imagestream contents to the client. Obviously other controls in the page will be lost and Image will be dispalyed.
Abolfazl Sheikhloo wrote: i want insert the created image in between DIV tag in part of page
If you want the Image to be dispalyed in the page along with the page contents then create a seperate page to display the Image, put all your Image display code in that page and then as per your requriement add a Image control Inside the DIV tag in your actual page and then set the ImageUrl property of the Image control to ImageDisplay Page. something like this....
<-asp:Image id="Image1" runat="server" ImageUrl="ImageDisplay.aspx"></asp:Image>
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Point the URL of your image tag at another ASPX page. For this new ASPX page, set the content type of the Response to be one of the MIME image content types e.g. image/jpeg and use Response.BinaryWrite to stream back the data for the image as you are already doing.
Paul Marfleet
|
|
|
|
|
Hi,
We have a wbservice that converts any doucment to pdf format, internally we used novapdf printer driver for the conversion process.
The application using the web service works fine with word, excel, txt and rtf formats.
HOwever there is a problem with ppt, When trying to upload and convert a ppt document an error is being thrown. What could be the problem?
The error is as follows:
System.IO.FileNotFoundException: File or assembly name office, or one of its dependencies, was not found.
File name: "office"
at NovaPDFWebService.ConverterService.PPointtoPDF(String strPath)
at NovaPDFWebService.ConverterService.ConvertToPDF(String strPath, String strExtention) in c:\inetpub\wwwroot\novapdfwebservice\converterservice.asmx.cs:line 212
at NovaPDFWebService.ConverterService.ConvertToPDF(String fileName, Int32 fileSize, Byte[] fileBytes) in c:\inetpub\wwwroot\novapdfwebservice\converterservice.asmx.cs:line 131
=== Pre-bind state information ===
LOG: DisplayName = office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot/NovaPDFWebService
LOG: Initial PrivatePath = bin
Calling assembly : NovaPDFWebService, Version=1.0.2827.34780, Culture=neutral, PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/novapdfwebservice/51728cb4/606e3667/office.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/novapdfwebservice/51728cb4/606e3667/office/office.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/NovaPDFWebService/bin/office.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/NovaPDFWebService/bin/office/office.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/novapdfwebservice/51728cb4/606e3667/office.EXE.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporar
gauthee
|
|
|
|
|
the master page should not get flicker while navigate to its content pages
|
|
|
|
|
jagadee wrote: the master page should not get flicker while navigate to its content pages
Yes, it should. I think that you have misunderstood what a master page is.
A master page is a way to separate content when the page is created on the server. The entire page is still reloaded for every postback, so it doesn't work like a frameset.
---
single minded; short sighted; long gone;
|
|
|
|
|
Use AJAX[^]
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
I want to decrease the aspx page size ..How can i do??
|
|
|
|
|
Vanamaindia wrote: I want to decrease the aspx page size ..How can i do??
Size depends on the content it has
|
|
|
|
|
I want to show the aspx as small window how it is?
|
|
|
|
|
Do you mean that you want to reduce the height and width of the pop-up window?
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Vanamaindia wrote: I want to show the aspx as small window how it is?
Small window ? Window size you can't define until you are not opening the window. If you are opening window using some script, you can size it. But that won't be applicable for starting page.
|
|
|
|
|
You can use java script function window.open
e.g. window.open(url,'myWin','width=700, height=500, top=200, left=300, toolbar=0, menubar=0, location=0, status=1, scrollbars=1, resizable=0, parent=1');
|
|
|
|
|
I have simply One listbox in that page.So I want to decrease the window size
|
|
|
|
|
As far my knowledge it is not possible you can't change the current window size.
you can open a new window using javascript of size you want
window.open('testpage.htm','null',"height=500, width=600,status=yes,toolbar=yes, menubar=yes,location=no");
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... "
|
|
|
|
|
Vanamaindia wrote: I want to decrease the aspx page size ..How can i do??
Disable the Viewstate of the aspx page...
<%@ Page EnableViewState=”false” %>
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
I want to draw an image online[on webpage] and save it using asp.net.
I want to know the component for this kind of designing.
e.g visit http://www.seton.com/seton/w2w/showW2WAppAction.do?spacecode=CO4
Do good and have good.
|
|
|
|
|
hi
I have taken one image control("image1") in the form("frmForm1.aspx").Now i want to one image ("mypic.jpeg") whose size is larger than the image control i.e image1.When i run the program, the image control takes the size of the image mypic.jpeg.But what i want is that the image mypic.jpeg fit in the image control along with its size.I mean the image mypic.jpeg should expand if it's size is smaller than image control and should contract if it's size is larger than image control.But the size of the image control shouldn't be changed. So, how can i do this ??? Currently, i am using ASP dot net 2005 using C# dot net ..
suchitamanandhar@hotmail.com
|
|
|
|
|
According to me image control automatically manage it. Did you test it ?
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
yes, it worked but i dont know how it worked...Actually at first,the same code hasn't worked but later, it worked ..Anyway thanx.
suchitamanandhar@hotmail.com
|
|
|
|
|
Have you set the Width and Height property of the Image control?
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi frds pls solve my doubts and reply back with your valuable answers
1.Difference between container.dataitem() and databinder.eval(),Eval() ?
2.Where garbagecollection starts in .Net? How garbage collector know which objects are no longer refered?
3.If we create more non clusteredindexes then what will happen is it advantage or disadvantage?
4.Difference between response.clear and response.flush()?
5.class a
{
method a()
{}
}
class b:a
{
method a()
b ob=new b();
ob.a();
}
which method get calls?
Thanks to all
|
|
|
|
|
The problems are these:
If you both don't know this stuff, and don't know enough about using the web to find the answers, then no matter what answers we give you, you won't pass your interviews due to other questions you get asked.
So many people make the mistake of thinking if they can fudge the interview, that's what matters. Knowing your stuff is what matters, and these are basic sort of questions.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
siddisagar wrote: Difference between response.clear and response.flush()?
First one clears the buffered HTML. It won't clear the headers. Later send buffered output immediately
siddisagar wrote: How garbage collector know which objects are no longer refered?
Google for how objects are stored in memory before you go for garbage collection
siddisagar wrote: class a
{
method a()
{}
}
class b:a
{
method a()
b ob=new b();
ob.a();
}
Why don't you write an application and experiment this ?
|
|
|
|
|
Hi,
I want to draw lines on GridView control in asp.net 2.0. I know that drawing lines is now easy with the Drawing namespace. My actual problem is to convert already rendered grid view to an image and then draw lines on that image.
This should be possible in some way, I think. Can any one of you guide me in this regards.
Thanks !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|