|
Hello Friends,
I want to send the ImageUrl fetching from the database to the Javascript function
<img onmouseover="javascript:doTooltip(event,0,'<%# DataBinder.Eval(Container.DataItem,"Image") %>')" onmouseout="hideTip()" id="myImage1" name="myImage1" src='<%# DataBinder.Eval(Container.DataItem,"Image") %>' Runat="server" Height="125" Width="125" />
But this piece of code throwing an Parser Error given below
The server tag is not well formed.
But if i give the path of a particular image then it works great....as given below
<img onmouseover="javascript:doTooltip(event,0,'Images/img1.jpg')" onmouseout="hideTip()" id="myImage1" name="myImage1" src='<%# DataBinder.Eval(Container.DataItem,"Image") %>' Runat="server" Height="125" Width="125" />
|
|
|
|
|
Is that image tag in Databound control (e.g. Gridview or Repeater or etc)?
|
|
|
|
|
Yes this image tag is DataBound control(DataList)
|
|
|
|
|
Hi all
I was trying to generate a PDF document from an html file. Below is what i have tried...
private bool GeneratePDF(string sOutputHTMLFile, string sOutPutFile)
{
try
{
Doc objDoc = new Doc();
objDoc.SetInfo(0, "License", "322-xxx-815-xxx-4945-xxx");
StreamReader sr = new StreamReader(sOutputHTMLFile, Encoding.Default); string input = sr.ReadToEnd();
objDoc.Rect.Inset(50, 50);
objDoc.Page = objDoc.AddPage();
int theID;
theID = objDoc.AddImageHtml(input, true, 1000, false);
while (true)
{
objDoc.FrameRect();
if (!objDoc.Chainable(theID))
break;
objDoc.Page = objDoc.AddPage();
theID = objDoc.AddImageToChain(theID);
}
for (int i = 1; i <= objDoc.PageCount; i++)
{
objDoc.PageNumber = i;
objDoc.Flatten();
}
objDoc.Save(sOutPutFile);
objDoc.Clear();
objDoc.Dispose();
return true;
}
catch (Exception ex)
{
return false;
}
}
These are the input parameters i have used...
http://localhost/webportal/PDF/Report3.html
C:\Inetpub\wwwroot\webportal\PDF\Report3.pdf
But when i execute this function i got an error like this "URI formats are not supported"
This line causes the error--> StreamReader sr = new StreamReader(sOutputHTMLFile, Encoding.Default);
Could you please tell how to solve this issue...............
Thanks in advance......
Regards
Sebastian
|
|
|
|
|
Please let me know , what was wrong with my posting.
I would like to know WHO marked it as ABUSE and WHY?
|
|
|
|
|
hi,
can anyone provide me the method for searching of specific word on the webpage.
Thanks in advance.
|
|
|
|
|
|
|
hahahahahaha ohh boy that is a good one!
probably the best thing I've heard all day!
wow u made my day man!
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
|
Mind Bloooowing
Just Do IT™ [Information Technology]™ :->
|
|
|
|
|
|
(?#WebOrIP)((?#protocol)((http|https):\/\/)?(?#subDomain)(([a-zA-Z0-9]+\.(?#domain)[a-zA-Z0-9\-]+(?#TLD)(\.[a-zA-Z]+){1,2})|(?#IPAddress)((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])))+(?#Port)(:[1-9][0-9]*)?)+(?#Path)((\/((?#dirOrFileName)[a-zA-Z0-9_\-\%\~\+]+)?)*)?(?#extension)(\.([a-zA-Z0-9_]+))?(?#parameters)(\?([a-zA-Z0-9_\-]+\=[a-z-A-Z0-9_\-\%\~\+]+)?(?#additionalParameters)(\&([a-zA-Z0-9_\-]+\=[a-z-A-Z0-9_\-\%\~\+]+)?)*)?
here try this.
www.regexlib.com
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
Hi,
I am sending an embedded image in an email. now i want to change some text in the image for every user.
how can i do that ?
Is there any way that i can fetch the text of an image and change it and then embed the new image in the email.
Thanks and Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
Dear sir/mam
i have created one button dynamicaly and i want to perform some instrustion when this button is clicked. and also want to maintain session of this page to another page with this button click.
any one can help me??? soon
yogesh
|
|
|
|
|
Ho yougesh,
using Delegation u can easily do it.
Check the following code
protected void Page_Load(object sender, EventArgs e)
{
Button mybtn = new Button();
mybtn.Text = "Dynamic Button";
Panel1.Controls.Add(mybtn);
mybtn.Click += new System.EventHandler(mybtn_Click);
}
public void mybtn_Click(object sender, EventArgs e)
{
Response.Write("You have click on this");
}
Hope this will help you !!!!
|
|
|
|
|
sir actualy, i have created a no of buttons in one page using array of buttons. so wht can i do for it???? thank u sir for that
i hv use this code for click event but it does not work
public void btrequest1[i]_Click(object sender, EventArgs e)
{
Response.Write("You have click on this");
}
yogesh
modified on Monday, December 17, 2007 9:31:09 AM
|
|
|
|
|
Hi yogesh,
Use this one
public partial class _Default : System.Web.UI.Page
{
Button[] b = new Button[10];
protected void Page_Load(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
b[i] = new Button();
b[i].Text = "Dynamic Button " + i.ToString() ;
Panel1.Controls.Add(b[i]);
b[i].Click += new System.EventHandler(mybtn_Click);
}
}
public void mybtn_Click(object sender, EventArgs e)
{
Button mybtn =sender as Button;
Response.Write(mybtn.Text.ToString());
}
}
This will solve your problem !!!
|
|
|
|
|
Hi All,
I am working on a web application. I want to handle right click close button's event of IE title bar in my application. I want to fire some code before user’s window closes. I have not found any event (nor using javascript) related to title bar. Can anyone help me?
|
|
|
|
|
garimajain_mca wrote: I have not found any event (nor using javascript)
There isn't one. And there wouldn't be for a known period. Period.
Reason: That would mean a malicious website would intrude into your system and wreak havoc on your security.
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
|
|
|
|
|
You can't trap a specific close event. You can identify that it is closing via javascript, but not what the cause was.
|
|
|
|
|
in one of the cs file i have enum like
public enum EnumError : int
{
noerror = 0,
ignorerror,
smallerror,
criticalerror
}
i want to access this enum on aspx.cs file
like this
int x=(int) EnumError.criticalerror ;
but i am not getting EnumError .????
how to do this.
|
|
|
|
|
Is this in the same namespace? There's nothing wrong with your syntax as far as I can see, so I would suspect that it's a namespace issue.
|
|
|
|
|
Hello,
I have a server side dropdown and text box in ASP.NET. There is a strage problem I have noticed.
dropdown: When I try to click this control by Mouse in firefox it doesn;t show me options. IN IE it works fine
Text box: When I try to click this control by Mouse in firefox or in IE I can not feed values. But If I reach the control by pressing TAB i can enter some values
Any kind of help is apreciated
The View source code is as below:
<select name="ctl00$IMFContentPlaceHolder$DateFromToDropdownlist" id="ctl00_IMFContentPlaceHolder_DateFromToDropdownlist" onchange=" dateControlConditions(this.value)" style="color:Black;font-family:Arial;font-size:10px;height:18px;width:110px;">
<option value="Last 24 Months">Last 24 Months</option>
<option value="Last 12 Months">Last 12 Months</option>
<option value="AFTER">After</option>
<option value="BEFORE">Before</option>
<option value="BETWEEN">Between</option>
<option value="NOT BETWEEN">Not Between</option>
<option value="ALL">All</option>
</select>
// There is a visibility style which I make visible from Javascript
<input name="ctl00$IMFContentPlaceHolder$FromDateTextbox" type="text" id="ctl00_IMFContentPlaceHolder_FromDateTextbox" style="font-family:Arial;font-size:12px;height:18px;width:65px;visibility: hidden" />
Regards,
Pavas
-----------------------
[http://longjump.com/]
Dynamic business applications that manage and coordinate teams and information
-----------------------
|
|
|
|
|
Hello Friends,
I've taken a DataList and in this datalist i've displayed images from my database.
But now i want to display a big image onmouseover accordingly the image.
For example: as i onmouseover my first image then a new big image of first image should be displayed and if i onmouseover my second image then it should display a big one of second image
something like this
http://www.asp.net/ajax/showcase/default.aspx[^]
|
|
|
|