|
i am in problem when rendering image in webpage.in my case there is a webservice which basically read a tif file and return a arrar of byte to the client and now i have array of byte.now i want to show image after reading array of byte
without saving it.i wrote a code which not giving any error but not working also.now here i am giving the small code and any guys see any then pls rectify my code.
Response.Clear();
Response.ContentType = "image/tiff";
Response.BinaryWrite(bytBytes);
Response.End();
above code is ok but it can't show tiff image in browser but when i installed a plugin then it is working.so i want to know
is there any other way as a result i can write the code in such a way the tiff image will be shown in browser without installing any plugin.i hard that browser does not support tiff without plugin
so pls help me to solve my problem and it is very urgent.
tbhattacharjee
|
|
|
|
|
It sounds like IE doesn't display TIFF, which gels with what I thought was the case. Can't you convert it to JPEG in memory and then write it as a JPEG ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
would u pls give me a sample code which read array of bye and convert it to jpg image and render the image in a page.
tbhattacharjee
|
|
|
|
|
OK, so I am using third party controls (telerik 2006 Q2), and I have already left a mail with the vendor, but I thought I'd try and find out more so long, so here goes:
I have a single page web (Home.aspx) application that uses ajax to choose which user control to display within that page, e.g. customer details, fax, or brief etc. This is part of the navigation architecture of the application.
Each user control is designed specifically for the entity it edits/displays, but these all contain in idential block of javascript that does some 'plumbing' work when the control is loaded/updated. My problem is that after loading Home.aspx, and causing e.g. a Brief document to be loaded into its site in the Home DOM in the browser, all the controls and content for the Brief are present, but the entire script block is missing.
I am interested to know if this 'dissapraring script' issue is confined to my third party controls, or if it also occurs outside of their sphere of influence.
|
|
|
|
|
If you have the source code for the control, check for RegisterStartUpScript or RegisterClientScript.
|
|
|
|
|
Hi all,
I am developing a CMS using asp.net 2.0 and c# 2.0.
I have a html template file...
with the following text in the file.
{=BeginCatRecords=}<TABLE><TR><TD colspan='2'>Links comes here</TD></TR></TABLE>{=EndCatRecords=}
I am reading this file in a variable let say st.
Now, I want to find the text from {=BeginCatRecords=} to {=EndCatRecords=}
I am using this code :
string pattern = @"{=BeginCatRecords=}.*?{=EndCatRecords=}";
Match MatchTop = Regex.Match(st, pattern);
string NavMatch = MatchTop.ToString();
It is working fine when I write the html in one line (as displayed above) in my html template file..
But when I change it to multiple line as :
{=BeginCatRecords=}
<TABLE>
<TR>
<TD colspan='2'>Links comes here</TD>
</TR>
</TABLE>
{=EndCatRecords=}
It doesn't work.
Can you please let me know how should I change the pattern to meet the requirement....
Thank you in advance..
Suman Singh
|
|
|
|
|
There's an option you pass in to an overloaded method of the match function to make the regex run on multiple lines
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Have you tried:
Regex.Match(string1,string2, RegexOptions.Multiline)
|
|
|
|
|
Many Thanks for your reply.
I tried your suggestion but no avail...
Here is the HTML code from a file (categories.html), I a reading in a variable st :
<br />
<TABLE width="100%" border="0" align="center" cellpadding="0" cellSpacing=0 >
<TR valign="top" >
{=BeginCatRecords=}<TD width="45%" align='center' style='border:1px #F4EED4 solid;'><Table align='center' border="0"><tr><td align='center' style="padding-top:15px;"><a href="{=CatLink=}"><IMG SRC="images/category/{=CatImg=}" border="0" width="150"></a><BR><a href="{=CatLink=}" class='catlinks'><strong>{=CatName=}</a></strong></td></tr><tr><td><table width="90%" border='0' align="center" cellpadding="0" cellSpacing=0><tr><td align='left'>{=CatDesc=}</td></tr></table></td></tr></table></td><td width='5%'> </td>{=EndCatRecords=}
</TR>
<TR><TD colspan='2'> </TD></TR>
</TABLE>
In this file, from {=BeginCatRecords=} to {=EndCatRecords=} is written in one line.. and it is working fine...
But if I split it in multiline like :
{=BeginCatRecords=}
<TD width="45%" align='center' style='border:1px #F4EED4 solid;'>
<Table align='center' border="0">
<tr><td align='center' style="padding-top:15px;"><a href="{=CatLink=}"><IMG SRC="images/category/{=CatImg=}" border="0" width="150"></a><BR><a href="{=CatLink=}" class='catlinks'><strong>{=CatName=}</a></strong></td></tr><tr><td><table width="90%" border='0' align="center" cellpadding="0" cellSpacing=0><tr><td align='left'>{=CatDesc=}</td></tr></table></td></tr></table></td><td width='5%'> </td>
{=EndCatRecords=}
It stops working...
Below is the code I am using to match the string :
string NavMatch = null;
pattern = @"{=BeginCatRecords=}.*?{=EndCatRecords=}";
Match MatchTop = Regex.Match(st, pattern, RegexOptions.Multiline);
NavMatch = MatchTop.ToString();
Please help..
Suman Singh
|
|
|
|
|
Hi..Iam using Visual studio 2003.
I have a Signup webform which has many text boxes.These text boxes are validated using validation controls.So if some one didn't enter proper values and click the sign up Button control the Validation controls will prevent the Button Click Event Handler method from being executed and will display error messages using a validation summary control.The form is working fine locally(on my PC) but when I upload the page and the dll file for the application(as always) to the Web Server the Validation controls dont work.
What could prevent the Validation controls from working on the internet?
I am too late but i will never give up
|
|
|
|
|
I have run into cases where validators do not work on a server. If you cant change the server settings, you can simply disable client side validation. The validators will work on the server side.
|
|
|
|
|
Could this let the postback event to be fired? because I prefer that no postback events occur.
I am too late but i will never give up
|
|
|
|
|
A "postback" will occur, but the user will never know it happened. The screen will look like it never posted back.
|
|
|
|
|
hi,
how to use activex plugin in asp.net
if anybody have idea plz give me informaion how to bind data to that plugin
Thanking you
Bala
|
|
|
|
|
Hi
what will be the connection string for oracle and ms-access (both databases are located on remote pc)
regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Obviously this site[^] has the answer that you need.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
I have searched this site but couldn't get the connection string for remote connectivity.
regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
What do you mean by remote connectivity?
All those connection strings work for both local and remote servers.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
They work for both local and remote servers.
|
|
|
|
|
HI
Guys in my application, the following excption is arising :
System.Web System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
I know this exception is because my application have reached the maximum connection pool size, what can be the possible reasons, and how to fix it, plzz reply ASAP,Thankx in advance.
|
|
|
|
|
The reason is most likely that you don't close the connections that you use, or don't close the data readers.
---
b { font-weight: normal; }
|
|
|
|
|
Well i have closed the connections and the data readers, what can be any other reason for it, If i increas the Max pool Size in Connection string what are its effects, plzzzzz reply ASAP,Thankx.
|
|
|
|
|
Normally you should never need to increase the pool size. I think that it is set at 100 by default, and you would need quite a lot of traffic to use that many connections.
Unless you have something like hundreds of page requests per second, your application is leaking connections somewhere.
---
b { font-weight: normal; }
|
|
|
|
|
Have you explicitly set the pool size? If yes, please check and set appropriatly.
you might like to use using(){} block for connection and datareader to use your connection and readet objects. That will take care of closing your connections accordingly.
- ashish
|
|
|
|
|
if it application window open or else close thats not cosider. i wanna every 15 min automatically update the database please give me sample coding
Dhatchinamoorthy.R
9894824838
|
|
|
|