|
|
Thanks for the recommendations.
I ordered them today.
|
|
|
|
|
Hi and thanks for your interest. I am trying to use an ad rotator and as soon as I use parameters in the link it shows an error. If I remove the parameters it works. How can I use parameters in the link?
Thank you.
<Advertisements><br />
<br />
<Ad><br />
<ImageUrl>http:
<br />
</ImageUrl><br />
<NavigateUrl>http:
<br />
<Impressions>50</Impressions><br />
</Ad><br />
</Advertisements>
|
|
|
|
|
You might be using this in an incorrect way. i always use XML as my Datasource and my XML loks like this
< Advertisements >
< Ad >
< imageUrl >~/images/home/Banner_1.gif< /imageUrl>
< NavigateUrl >http://www.VuyiswaMaseko.com< /NavigateUrl >
< AlternateText > Alternate Text goes here< /AlternateText >
< Impressions>50</ Impressions>
< Keyword > My Banner</ Keyword>
< /Ad >
< /Advertisements >
Now from the above you can find out what you did wrong, because that is how its Supposed to be.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
the way you use it works fine. if you add a querystring parameters it stops working.
|
|
|
|
|
Can you post on how you use it ?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I posted, in the question...there is a query string parameter there.
|
|
|
|
|
Hi all,
I have an ASP.NET Application that read bytes from a file (rpkey.cer) and then write bytes to another file (serverCer.cer):
String serverCertPath = @"C:\rpkey.cer";<br />
byte[] temp1 = File.ReadAllBytes(serverCertPath);<br />
string temp2 = System.Text.Encoding.Unicode.GetString(temp1);<br />
String serverCer = @"C:\TempFile\Envelope\serverCer.cer";<br />
byte[] temp3 = System.Text.Encoding.Unicode.GetBytes(temp2);<br />
File.WriteAllBytes(serverCer, temp3);
Then I copy 2 files to one folder and I realize that file A and B do not match to each other by using fc command in DOS:
fc rpkey.cer serverCer.cer
Is there something wrong in my conversion?
Best regards,
|
|
|
|
|
I'm beginner wrote: Is there something wrong in my conversion?
What problem are you getting with this ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
The problem is 2 files are different from each other, so my program did not run correctly when it compared them.
|
|
|
|
|
Hi,
I'm using ASP.net MVC,
In a certain controller ("Users") I have a "LoginNeeded()" method,
this one redirects you if you are not logged in:
if (CurrentUser == null)
{
HttpContext.Response.Redirect("/Users/Login/", true);
}
The problem:
If a method from the Users controller calls this method.. everything works fine.
If a method from another controller calls this method.. It doesnt find the action i'm redirecting (it tries to search in "Shared/Users/Login" and "ThisOtherController/Users/Login"
Any help?!
|
|
|
|
|
Try instead HttpContext.Response.Redirect("~/Users/Login/", true);
Adam Maras | Software Developer
Microsoft Certified Professional Developer
|
|
|
|
|
|
Hi Guys,
I am using VS2008 ASP.Net 3.5.
I have a masterpage.main where <img id="image1" src="image1.jpg" /> is located.
My problem now is, in my sub page how am I be able to change the src="image1.jpg" to image2.jpg at runtime?
For finding and changing the value of standard image control, I am using this code -
CType(Page.Master.FindControl("image1"), Image).ImageUrl = "~/images/image1.jpg"
But how will I do the same when changing the <img src=#/> value?
Any ideas?
Thanks in advance.
hifiger2004
|
|
|
|
|
|
Hi Mark,
There's an existing codes already being developed by previous developer using an img tag for all images in the master page. If it's only 1 img tag, I wouldn't hesitate to change it to standard Image control.
This is the situation now, so instead of changing all the img tag to a standard Image control I prefer to call the img and change the src value if there's a simple way of making it work.. But I am not sure if how possible, workable, I don't know.
What can you suggest, better just change them all from img tag into the standard Image control, there's no other solution?
Thanks
hifiger2004
|
|
|
|
|
Did you even look at the link I included? You're answer is there.
hifiger2004 wrote: so instead of changing all the img tag to a standard Image control I prefer to call the img
So instead of taking the time to do it right, you'll waste time on work-arounds that may not be useful in the future, in which case you'll again waste time on a work-around. But then I notice the code is VB and this is typical VB mentality.
only two letters away from being an asset
|
|
|
|
|
I have an application that is using a jquery for hover function. However.. before I conplete that function, I want to varify that the file does indeed exist on the server. Is there a jquery out there someplace to do this??
The hover event brings back a large jpg verses the thumbnail.
Thanks
gollnick
Gollnick
|
|
|
|
|
gollnick wrote: want to varify that the file does indeed exist on the server. Is there a jquery out there someplace to do this??
You have to check it before bind the image to client side. If you are using some thirdparty JQuery for doing this then it should have this features too.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
As the page is being rendered you should make the appropriate settings based on whether the file exists or not.
Something like this
if( fileExists )
link.class = "hover";
else
link.class = "no_hover";
only two letters away from being an asset
|
|
|
|
|
Sorry .. let me rephrase this.. I have this code on the page.
<b>RIGHT HERE--->>>>>>> Here is where I want to check the existance of this "BIG" jpg. .... before the popup is thrown... If it DOES not exist I want to show a stock "NOTONFILE" jpg......</b></u>
$("img#popUpImage").attr("src", bigImageName);
$("div#popUpImageBox").modal({ overlay: 80, closeHTML: "close",
overlayCss: { backgroundColor: "#333" }
});
});
});
$("input[ id^='dgCust_ct' ]").mouseleave( function() {
$("input[ id^='dgCust_ct' ]").stopTime();
});
$("input[ id^='dgCust_ct' ]").click( function() {
$("input[ id^='dgCust_ct' ]").stopTime();
});
});
gollnick
Gollnick
|
|
|
|
|
It doesn't change anything, check if the large file exists on the server-side and apply a class to the small image link. In your JQuery, only apply the hover to img tags with a big image class. You're trying to make it much more complicated than what it is, unless I'm missing something, or you're not giving the full story.
only two letters away from being an asset
|
|
|
|
|
Ok ... I have identified which images in the datagrid HAVE a thumbnail and a larger image.
(see the first document)
<table class="grouplist" cellspacing="0" cellpadding="3" align="Justify" rules="rows" border="1" id="dgCust" style="background-color:LightGoldenrodYellow;border-color:#E7E7FF;border-width:1px;border-style:None;width:804px;border-collapse:collapse;z-index: 103; position: absolute;
top: 213px">
<tr align="left" style="color:#4A3C8C;background-color:#E7E7FF;">
<td colspan="4"><span>1</span></td>
</tr><tr style="color:#F7F7F7;background-color:#4A3C8C;font-weight:bold;">
<td> </td><td> </td><td> </td><td> </td>
</tr><tr style="color:#4A3C8C;background-color:#E7E7FF;">
<td>
<p>
<input type="image" name="dgCust$ctl03$Img1" id="dgCust_ctl03_Img1" class="smallImage" src="http://localhost:1488/Web_Swanson_Shopping/Graphics/ALL.jpg" style="height:124px;width:156px;border-width:0px;" />
</p>
<p>
<a id="dgCust_ctl03_lnk1" href="javascript:__doPostBack('dgCust$ctl03$lnk1','')">All Groups of Merchandise </a>
</p>
</td><td>
<input type="image" name="dgCust$ctl03$Img2" id="dgCust_ctl03_Img2" src="http://localhost:1488/Web_Swanson_Shopping/Graphics/AUTO.jpg" style="height:124px;width:156px;border-width:0px;" />
<br />
<br />
<a id="dgCust_ctl03_lnk2" href="javascript:__doPostBack('dgCust$ctl03$lnk2','')">Automobile Parts and Supplies </a>
</td><td>
<input type="image" name="dgCust$ctl03$Img3" id="dgCust_ctl03_Img3" class="smallImage" src="http://localhost:1488/Web_Swanson_Shopping/Graphics/CABLES.jpg" style="height:124px;width:156px;border-width:0px;" />
<br />
<br />
<a id="dgCust_ctl03_lnk3" href="javascript:__doPostBack('dgCust$ctl03$lnk3','')">Cables - big and little </a>
</td><td>
<input type="image" name="dgCust$ctl03$Img4" id="dgCust_ctl03_Img4" class="smallImage" src="http://localhost:1488/Web_Swanson_Shopping/Graphics/ELECTRONICS.jpg" style="height:124px;width:156px;border-width:0px;" />
<br />
<br />
<a id="dgCust_ctl03_lnk4" href="javascript:__doPostBack('dgCust$ctl03$lnk4','')">Electronic parts and supplies </a>
</td>
</tr>
Those WITH a large image have a class
class="smallImage"
The javascript on my page needs to identify which image being hovered over has this class (class="smallImage").
Here is the code I'm trying (and getting very frustrated over)
<script type="text/javascript">
$(document).ready(function(){
$("img#popUpImage").click( function() {
$.modal.close();
$("img#popUpImage").attr("src", "");
});
$("input.smallImage").attr("title", "Hover over to magnify.");
[COLOR="Red"]//trying to make this if statement work right here)[/COLOR]
if ($("input[class=='smallImage' ]"))
{
$("input[ id^='dgCust_ct' ]").hover(function() {
$(this).oneTime( 1500, function() {
// Fetch the image from the current img tag.
var bigImageName = $(this).attr("src");
bigImageName = bigImageName.replace( /\.jpg$/i, "Big.jpg");
$("img#popUpImage").attr("src", bigImageName);
$("div#popUpImageBox").modal({ overlay: 80, closeHTML: "close",
overlayCss: { backgroundColor: "#333" }
});
});
});
}; // added
$("input[ id^='dgCust_ct' ]").mouseleave( function() {
$("input[ id^='dgCust_ct' ]").stopTime();
});
$("input[ id^='dgCust_ct' ]") .click( function() {
$("input[ id^='dgCust_ct' ]").stopTime();
});
});
</script>
help
gollnick
Gollnick
|
|
|
|
|
|
xtplatinum wrote: want to see full project
You won't get it here. We are not here to do your work for you. We will answer questions or point you in a direction, but not give you everything.
As a beginning developer you will gain valuable insight and skills be trying it yourself first, then if you have questions, ask.
only two letters away from being an asset
|
|
|
|