|
Thanks for the link given
Naina
|
|
|
|
|
hiii all...
m using slideshow extender in my website but its not workin.i have used the following web service:
using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class slideshow : System.Web.Services.WebService {
[WebMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
AjaxControlToolkit.Slide[] MySlides = new AjaxControlToolkit.Slide[3];
MySlides[0] = new AjaxControlToolkit.Slide("slideshow/a.jpg", "Free", "Free Delivery");
MySlides[1] = new AjaxControlToolkit.Slide("slideshow/b.jpg", "Free", "Free Packaging");
MySlides[2] = new AjaxControlToolkit.Slide("slideshow/c.jpg", "Special", "Apple Offer");
return (MySlides);
}
}
and then i have used it on .aspx page like this...
<br />
<td align="center"><br />
<asp:Image ID="Image4" runat="server" ImageUrl="~/slideshow/a.jpg" <br />
Width="100%" Height="150px"/><br />
<br />
<cc1:SlideShowExtender ID="SlideShowExtender1" runat="server" TargetControlID="Image4" AutoPlay="True" <br />
Loop="True" SlideShowServiceMethod="GetSlides" <br />
SlideShowServicePath="D:\pari\jajaipur\slideshow.asmx" ><br />
</cc1:SlideShowExtender><br />
</td><br />
tell me wr m i wrong...
|
|
|
|
|
How weird. Why are you using a webservice ? How does that make any sense at all ? What does 'not working' mean ? Do you have any idea what this code does, or did you copy it at random off the web ?
I would guess that assuming that you're supposed to write local webservices to service AJAX calls now, your issue, apart from how wasteful this all seems to me, is probably that you're using a local file system path to the asmx, which is obviously retarded.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
can i do this without using the web service.if yes then how plz tell.
yes i have taken help fron google.
|
|
|
|
|
I don't know, I prefer to write my own AJAX code instead of putting on a Microsoft straightjacket. But, as I said, I think the reason it doesn't work ( although it's hard to tell from the lack of info you provide ), is that if you use a webservice, you would need a URL to the webservice, not a local path.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi...
I have used itextsharp.dll for exporting file type of PDF.
It works fine on loacl server but at live server it throws error as bello...
System.Security.SecurityException: That assembly does not allow partially trusted callers.
Kindly help to solve this issue.
Thanks.
Regards,
PUJA FALDU
|
|
|
|
|
I cant see any way around this other than getting the host to trust my assemblies or you allow partially trusted assemblies in your assemblyinfo
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi..
Thanks for relpy..
But how can i allow partially trusted assemblies in my assemblyinfo ???
|
|
|
|
|
You can't doit from your assembly. that should should be done in the hosted assambly.
|
|
|
|
|
thanx for your reply this issue has been solved and now i have another issue of bounce mail. how can i get the the mail i sent is bounced. and how can i count how maney of the mails i sent is bounced back and which one.
thank you.
amirzada
|
|
|
|
|
You can't do this with ASP.NET. All you can do is write a program to check the mail address that you used as a reply to, and count how many bounce back. ASP.NET has nothing to do with it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
This is not actually a ASP.NET question. The failure notice is sent from the SMTP server to which you are sending mails to. If the server notifies you you can determine of the mail is reached to the server properly.
|
|
|
|
|
Hello every one.I have a treeview into one page,but when i click on its context menu add button there should popup another page by here i can add new node in treeview.
But porblem is that i am carrying The object of treeview control to that addnewitem page,and i am getting error .how to do this tell me please.
|
|
|
|
|
rinku soni 23 wrote: But porblem is that i am carrying The object of treeview control to that addnewitem page,and i am getting error .
How you are passing object?whats the Error you got?Plz give pblm in detail.
|
|
|
|
|
The most likely way to do this is to have both pages as controls on the one page, so that viewstate preserves both pages. However, based on what you've said, it's hard to say more. What error ? What is your code ? What do you mean by 'carrying the object' ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
can anybody tell how to get a calender popup on onfocus event of textbox????????I searched a lot...but everywhere it is mentioned in connection with javascript and ajax..n i am not familiar with both
|
|
|
|
|
myinstincts wrote: but everywhere it is mentioned in connection with javascript and ajax
So that may be the solution.
|
|
|
|
|
myinstincts wrote: I searched a lot...but everywhere it is mentioned in connection with javascript and ajax..n i am not familiar with both
Javascript is the ONLY way to set something on the client side. So, buy a book..
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
u have to create a event handler and then create function through javascript..
|
|
|
|
|
Hi all!!!
I have a simple task to replace the selected string with "<tag>SelectedString"
where tag is the value of selected item in list box.if i replace strings and show in alert it does weel but when i want to replce the text of editor in same way it did not replace. Below is the code im running......
function show(tagselection)
{
alert(tagselection);
var selection = getSelectedHTML();
var combine = "<"+tagselection+">"+selection+"</"+tagselection+">";
alert(combine);
editor1.value = editor1.value.replace(selection,combine);
alert(editor1.value);
//alert(editor1.
}
var editor1=document.getElementById('<%= Editor1.ClientID %>');
function getSelectedHTML(){
// get the active editor window
var editwin = editor1.GetWindow();
// get the active editor document
var editdoc = editor1.GetDocument();
var rng=null,html="";
if (document.selection && document.selection.createRange){
rng=editdoc.selection.createRange();
html=rng.htmlText||"";
}else if (window.getSelection){
rng=editwin.getSelection();
if (rng.rangeCount > 0 && window.XMLSerializer){
rng=rng.getRangeAt(0);
html=new XMLSerializer().serializeToString(rng.cloneContents());
}
}
return html;
}
Please guide me what im doing wrong??????
|
|
|
|
|
does editor1.value represents a string.
use like this :
var elemValue = editor1.value.toString();
elemValue.replace(...)...
Check if this works or not.. ?
|
|
|
|
|
editor.value is a string as if i assign a static value that is editor.value = "change text" It works
|
|
|
|
|
hai experts..
i have a regular expression validator which allows decimals with precesion 2 like 100.20
now when the user enters 100 and press tab it shuld automatically convert 100.00 it shuld not show error message .. plz guide regarding this issue
|
|
|
|
|
This sounds like basic string mashing to me. What have you got so far ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi christian.
actually i used regualr expression for decimals like it will take it as only 100.20 but when the user enters 100 it shuld be conevrt as 100.00
or 200 it shuld convert as 200.00
etc
|
|
|
|