|
Well it shows the same function declaration but still its not firing the event. to get active on that function...
I have also applied the break point but it do not stop at that breakpoint because its not firing the event to gets active on this function..
Any one can help me
|
|
|
|
|
Hi,
Please double click on dropdownlist and check wheather it goes to same routine if yes and still you facing same problem,then check your page contain single or multiple tag in your code.
Regards,
Nagraj
|
|
|
|
|
Hi.
In the (c#) Web application that i am developing, there is a web form whose target is set as _blank.
now,i'm trying to do validations on the textboxes in the page using the javascript alert window.The alert window is getting displayed .But with the same page reopened.I need the alert window to get opened in the same form without getting reopened.
One another problem is to close the form on a button_click().
There also when i try to close the window using javascript code as
window.close();
its not giving me the result.
I think the problem is caused by the target _blank.
But that is required for my application.
Please provide a solution..
thanks 'n regards,
Me-CrazyCode
Me Crazy Code,
Application Developer
ADCS, U A E
|
|
|
|
|
Hi,
I want to integrate paypal service with my appliction.
How can i do that and get confirmation of payment is done.
|
|
|
|
|
|
i need to navigate from asp to aspx page the data has to shown on aspx page
|
|
|
|
|
|
Hi,
I m a beginner.I want to know that when i click an item in a dropdownlist,how can corresponding value(corresponding to that dropdownlist item in a database ) is displayed in a textbox.
Thanx in advance
|
|
|
|
|
i'm a beginner too , but try a proprety called autoposteback "proprity of dropdownlist" make it true & try the stuff
try to be good if you can't be the best
|
|
|
|
|
textbox1.text=dropdownlist1.selecteditem.text
|
|
|
|
|
I have a fileupload control on my page. I also have dropownlist with selected Index changed event. If the file is uploaded first and the selection in the dropdown list is made next the uploaded file is lost. How to save the upladed file?
Sirisha Pandrangi
|
|
|
|
|
Hi,
I have a menu control in which i use a dropdownlist and i use the control in all the pages .The data is bound dynamically at runtime .But it so happens in some pages the item names in the dropdownlist occupy more space than the width of the ddl hence not visible completely .I cannot increase its size in the menu control.Is there a way to View the complete name on selecting the dropdownlist control .
Pls help me out,
Thanks in advance.
|
|
|
|
|
I am not sure if this is the best solution but just try it.
Use javascript to display the name on mouse over,steps are as follows
1.try to add a div tag in html file:
<div id="tooltip" style="POSITION: absolute;" noWrap></div>
2.add this in code behind - ddl is name of your drop down list
ddl.Attributes.Add("onmouseover", "showTooltip();");
ddl.Attributes.Add("onmouseout", "showTooltip();");
i.e on mouseover you can see the name on mouse out the name disappears
3.Add the following javascript function
showTooltip = function ()
{
var obj = document.getElementById("ddl");
if(event.type == "mouseout")
{
document.getElementById("tooltip").style.display = "none";
}
else
{
document.getElementById("tooltip").innerHTML =obj.options[obj.selectedIndex].text;
document.getElementById("tooltip").style.display = "inline";
document.getElementById("tooltip").style.backgroundColor="#ffffcc";
document.getElementById("tooltip").style.paddingTop="1px";
document.getElementById("tooltip").style.paddingBottom ="1px";
document.getElementById("tooltip").style.paddingLeft ="1px";
document.getElementById("tooltip").style.paddingRight ="1px";
document.getElementById("tooltip").style.borderColor="black";
document.getElementById("tooltip").style.color="black";
document.getElementById("tooltip").style.borderWidth="1px";
document.getElementById("tooltip").style.borderStyle="solid";
document.getElementById("tooltip").style.top = screen.height;
document.getElementById("tooltip").style.left = screen.height ;
}
note: you have to change the top and left values by adding some constant number by trial and error method eg:
document.getElementById("tooltip").style.top = screen.height+500;
document.getElementById("tooltip").style.left = screen.height+20 ;
also check how the page looks at different resolutions.
-- modified at 6:39 Tuesday 20th June, 2006
|
|
|
|
|
SELECT [CustCode], [Name], [Addr], [Area] FROM [Customer] WHERE (([CustCode] = @CustCode) OR ([Area] = @Area))
i'm using the above code in a sqldatasource,which i've connected with a gridview.the above query is executing while testing in the tool(sqldatasource).but at the time of running application it is not working.i've to disply details in the gridview when clicking a button.
can anyone help me to get the solution.
Babu
|
|
|
|
|
You'll need to show more code than that - post the declaration of the SQL DS and of the grid, so we can see if they tie up ok - my bet would be that you've not bound the grid correctly, or AutogenerateColumns=false and no cols specified?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
FRIENDS,
THERE IS NO TREE CONTROL IN ASP.NET1.1 .CAN SOMEBODY TELL ME ANY ALTERNATIVE FOR DESIGNING THE TREEVIEW IN ASP.NET 1.1 IN VB.NET 1.1
|
|
|
|
|
|
I have created a resource file using resource writer .Now after some time i want to change the value for a key at runtime how do i do it i.e after complilation
|
|
|
|
|
Hi all,
I am tring to print information present on webpage.
I am using Javascript for this purpose.
function CallPrint(strid)
{
var prtContent = document.getElementById(strid);
var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
prtContent.innerHTML=strOldOne;
}
//html Page
<asp:datagrid....>
....
<asp:imagebutton id="imgPrint" runat="server" imageurl="~/App_Themes/Default/Images/ico_16_126.gif">
///on page lod
imgPrint.Attributes.Add("onclick", "CallPrint('innerPage');")
//on image button click
Dim popupScript As String = "CallPrint('innerPage') ;"
Page.RegisterStartupScript("PopupScript", popupScript)
But this gives error
'DialogArguments_IE_PrintType' is Null or not an object.
If Any one knows something...let's share with me.
thanks,
Nagraj
|
|
|
|
|
Hello Everyone,
I'm Munjal from India. I know how to manage a session with the help of 'Session' in ASP.Net but how can we manage a session for a particular user logged in with the help of 'Cookie Authentication'. Can u send me the code
Munjal
|
|
|
|
|
Hi,
I have 2 applications (apps1 and apps2) both using windows authentication.I have another main application called Login thru which i can log into the above 2 applications and this also uses windows authentication.
I would like to pass the session variables from the login apps to apps1 and apps2 with out gettting the login page to enter the values. Also apps1 and apps2 can be run individually without going through the login page.
Sessions donot work. Is there anyway to do this???
Any code or tutorial for the same will be useful
Regards
|
|
|
|
|
|
I need to dynamically instantiate an object using a string parameter, but don't know how to have the string evaluate as the name of an object... e.g.,
<br />
public class myClass <br />
{<br />
public Class_Master objMaster = new Class_Master();<br />
public Class_A objA = new Class_A();
public Class_B objB = new Class_B();
public Class_C objC = new Class_C();
<br />
public myClass(string nameOfTemplateClass)<br />
{<br />
this.objMaster.ContentTemplate = nameOfTemplateClass;<br />
}<br />
<br />
}<br />
So I then instantiate myClass specifying one of the ITemplates as my parameter:
myClass xyz = new myClass("objB");
"objB" is interpreted (understandably) as a string, not the object I wish to reference. Is there a method for evaluating a string literally? Like:
this.objMaster.ContentTemplate = eval(nameOfTemplateClass);
|
|
|
|
|
Why not use a switch/if-structure to instantiate the class you need based on the string?
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
That is in fact what I ended up doing as a workaround. However, I'm still interested in whether this is possible, as I encounter this situation periodically. I have used FindControl("stringname") for the times when I'm specifying a control, but there are times when evaluating a string as code might be useful; perhaps even composing an entire statement dynamically... but thank-you for responding with a workaround suggestion.
|
|
|
|