|
this will be the correct way
displayMsg(src,pText);
and i see you have done it but the question is that these parameters have you declared them anywhere ? show u the part you tried to execute and show us where you declare the parameters to pass to the function.
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/
|
|
|
|
|
those variables are as the function args and I am sending only text value to these args
as you see
the function requires two args
function displayControlName(src,pText) and I am only printing that two variables passed to function.
here I am passing var to that function
menuLink.Attributes["onclick"] = "return displayControlName('" + item.Text + "','" + item.Parent.Text + "');";
both item.Text and item.Parent.Text are there but the
onclick="return displayMsg(src,pText);" doesent work.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Look at Prakash , that is exactly what you need to do. your variables are not recognized, they are treated as string.
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/
|
|
|
|
|
You are adding the input control in the spMsg control like following
msg2Display.innerHTML += '<input type = "button" value="'+src+'" onclick="return displayMsg(src,pText)"/><br>';
When the onclick event will be attached on the input button the “scr” will be unknown.
try this
function displayControlName(src, pText) {
var msg2Display = document.getElementById('spMsg');
msg2Display.innerHTML += '<input type = "button" value="'
+ src + '" onclick="'
+ "return displayMsg('"
+ src + "','"
+ pText + "')"
+ '"/><br>';
return false;
}
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
thanks, your print the following but no event is attached with the button
ButtonpTextValue')"/>
Button mean the HTML control button and pTextValue mean the value which is in the pText Variable
it means it prints one button control with other text in the screen while no event is attached with the button control.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
I tried to simulate this problem at my side and it worked for me, can you share some more information regarding this.
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
thank you very much and really thanks alot. It did work with only minor change while calling the javascript method.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
hi all,
we need to integrate email client in our asp.net web application.
in which user can manage POP3 account from our web application.
i go through Google but yet not getting the exact idea that how to implement the same.
let me know if anyone have any idea or suggestion or details that how to allow user to create
his POP3 email account.
also if he specify yahoo email or gmail email then that mail also should be shown at our website.
let me know if anyone have any idea....
Regards
Keyur Satyadev
modified on Monday, March 29, 2010 2:47 AM
|
|
|
|
|
keyur satyadev wrote: let me know if anyone have any idea or suggestion or details that how to allow user to create
his POP3 email account.
You can start with this Article,
POP3 Client as a C# Class[^]
|
|
|
|
|
Should we declare any directive or name space to use AD rotator control?
|
|
|
|
|
AdRotator class is present in System.Web.UI.WebControls namespace, by default you get this in you toolbar. To use this you don’t need to declare any directive.
You can find many online examples of AdRotator implementation in Google.
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
you just simply drag n drop ad rotator control from toolbar and use it in source file no need to declare any directive
|
|
|
|
|
can we use form view control to display a image? for me neither image or AD rotator control is working
|
|
|
|
|
Form view control is basically used for defining templates for insert/edit/display of database fields, It can’t be used to display image.
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
sorry if this is the wrong forum to post this in...please direct me to the correct one if I'm in error
fairly new to c# asp.net web development...want to know if anyone has a couple of url links that i can go to, to download some free web site templates for c#...i don't really have a css design eye...if they are also seo friendly, that's a bonus too.
thanks
|
|
|
|
|
You are not really looking for a template, which would give you a set of predefined pages, operations and structure. Themes or skins are what can be used to give a look and feel to a site, usually though use of CSS.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
|
Welcome my friend. Along with the Theme, you may find some more useful stuff realted with ASP.NET !
Cheers !
Abhijit
Codeproject MVP
|
|
|
|
|
|
Hi everyone.
I got a question regarding Ajax Control. after installing the Ajax Control, I can't see any ajaxtext box or ajax mask edit. I saw few controls like ajaxcombo box and ajax calender and ... . I jusr wondering to know when I am using ajax do I need to use Ajaxtext box or the simple text box is ok?
Could u please explain about Ajax control toolkit.when should I use them? I am new in ASP.net and really appreciate if some one help me.
many thx in advance
|
|
|
|
|
Have your installed properly ajaxtoolkit?
Are you using VS2005 or VS 2008?
For details Have a look
|
|
|
|
|
|
Hi,
I am using Visual Studio 2005 and Report viewer version 9.0.0 when i try to print the report using the print icon it shows a popup message
"Unable to load print control" and i am not able to print , i tried installing the reportviewer updates but nothing worked, appreciate a response.
Thanks
ashish
|
|
|
|
|
It seems that the client Print Control Active X object is not getting installed at client system due to security setting.
In IE go to Tools ->Internet Options->Security->Custom Level , configure the setting to allow downloading of Active X controls.
Regards,
Prakash Kalakoti
|
|
|
|