|
hi..
thanks for ur reply...i found that if we want to page method insted of adding asmx file just keep the value of ServicePath as null in one site
" http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx"
ServicePath - Path to a web service that returns the data used to populate the DropDownList. This property should be left null if ServiceMethod refers to a page method. The web service should be decorated with the System.Web.Script.Services.ScriptService attribute.
that's why i asked abt this....
thanks
alex.
|
|
|
|
|
Ok, I see what you mean now, I haven't tried it this way, it sure seems odd. I would definitely prefer to keep page and service methods separate.
Anyway, it looks like if you add the these attributes to your page methods:
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod] and leave the ServicePath blank that it should work.
Your page methods must also return a CascadingDropDownNameValue[] collection.
|
|
|
|
|
Hi,
I have a problem..like in my project i have 4 dropdownlsit
and i extended the dropdownlist say 3 & 4 with CascadingDropDown..and it works fine..
but the problem is that when i select dropdownlist 1 then the control goes to the asmx method ie,what we mapped for dropdownlist 3...it's an unwanted code execution.....
pls suggest me..
alex.
|
|
|
|
|
Hi All
I Have some problem in my web app, i want to communicate with scanner using Asp.Net 2.0,capture the image and show it to my web application,is it possible in asp.net 2.0,Please help me .
Thanks
|
|
|
|
|
I"m sorry, but to even ask this shows you have no idea what ASP.NET is, or how it works. ASP.NET is an engine to generate HTML. HTML/javascript cannot interact with a scanner. Simply not possible.
You may be able to write a java or .NET plugin that a user has to download and run, which may be able to use TWAIN. It's possible. ASP.NET ? No way.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
And... what's wrong with good old proven technology of scanning an image in whatever application you use, and upload the file to your ASP.NET website. ASP.NET's support for handling images and image types is great! However, Christian already cleared out there's no way you can interact with the scanner itself!
|
|
|
|
|
Anybody knows how to upload the skins in dotnetnuke pls help me.
|
|
|
|
|
Just typed upload the skins in dotnetnuke into google, take a look
http://www.google.co.uk/search?hl=en&q=upload+skins+dotnetnuke&btnG=Google+Search&meta=
|
|
|
|
|
|
Hello!
I've created a report which I'm loading it into a CrystalReportViewer in Visual Studio 2005. When I run it the next and previous buttons don't work correctly. It goes to page 2 ok but after that it wont move to page 3. I can type in the page number and it will go to the right page. If I'm on the last page and select the previous button it goes all the way back to page 1.
Has anyone else come across this problem and perhaps solved it?
|
|
|
|
|
you have page_init and page_load. For the paging you should use page_init. ohterwise you reset it each time the report loads.
|
|
|
|
|
Hello, thanks for your reply!
In what way do you mean I should use page_init? Pass reportdocument to viewer?
EDIT: Passin reportdocument in Page_Init instead of Page_Load solved it, thanks a bunch!
modified on Thursday, March 27, 2008 8:14 AM
|
|
|
|
|
Dear All,
can i serialize an aspx page object? not the code behind class but the page object itrself
thanks in advance
Ramesh.Kanjinghat
|
|
|
|
|
The page itself is just text, so of course you can serialise it. The HTML that the page generates is also just text, so you can serialise that, too.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
childpage.aspx is my aspx page.
private static string GetSerialized(object objToSerialize)<br />
{<br />
BinaryFormatter bFormatter = new BinaryFormatter();<br />
MemoryStream mStream = new MemoryStream();<br />
byte[] brTemp;<br />
string strSerializedObject;<br />
try<br />
{<br />
bFormatter.Serialize(mStream, objToSerialize);<br />
brTemp = mStream.ToArray();<br />
strSerializedObject = Convert.ToBase64String(brTemp);<br />
return strSerializedObject;<br />
}<br />
catch(Exception ex)<br />
{<br />
return null;<br />
}<br />
finally<br />
{<br />
bFormatter = null;<br />
mStream = null;<br />
brTemp = null;<br />
}<br />
}
the above method helps me to serialize the objects.
when i call GetSerialized(this) in my aspx page it is throwing the below exception
ex {"Type 'ASP.childpage_aspx' in Assembly 'App_Web_wzfanznh, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable."} System.Exception {System.Runtime.Serialization.SerializationException}
do you have any idea about this?
thanks and regards
Ramesh.Kanjinghat
|
|
|
|
|
I can't think of a single sensible reason to want to do this. However, seeing as the page class simply generates HTML, I would think that if you want to store a page, storing the HTML would suffice.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how to perform sorting on asptemplatefield column in Gridview if we have performed calculation in that column
|
|
|
|
|
I am using javascript calender with master page,it is showing invalid
arguement in this line document.getElementById(this.divName).style.left =
this.x + "px";.
If I am using the calender without master page then it is working.
So can i get solution for this problem
|
|
|
|
|
I don't think many objects in the DOM have an x property, unless you assigned it yourself.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
I need a textbox which displays some message, say "Enter Text". When someone clicks on it that message should be cleared and should be ready to enter some other text. Which event of the textbox should I use for it?
|
|
|
|
|
You can use javascript on that. Onblur event of textbox you can clear textbox value.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Use the Javascript <cod>onclick
event <br />
<br />
<div class="ForumSig">Paul Marfleet<br />
<br />
"No, his mind is not for rent<br />
To any God or government"<br />
Tom Sawyer - Rush<br />
<br />
</div>
|
|
|
|
|
|
Hi,
It is better to use a client side script for this.You can use the following javascript code and call the same in the OnFocus event of the textbox.
Insert this js in the aspx page in a script tag.
function clearText(txtId)
{
if(document.getElementById(txtId).value=="Enter Text")
{
document.getElementById(txtId).value="";
}
}
And add this code to the codebehind file.
TextBox1.Attributes.Add("OnFocus", "clearText('" + TextBox1.ClientID + "')");
Do let me know if you need more info.
Cheers...
|
|
|
|
|
But if I want to use that textbox within update panel?
|
|
|
|