|
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.
|
|
|
|
|
Hi ,
please i learnt something called VIEWSTATE & i didn't understand it well
what i want to know is what is the role of that viewstate ?? why we use it ? & when ?
thank you
try to be good if you can't be the best
|
|
|
|
|
Hi,
When a control is created dynamically at run time, some information about the control is stored in the view state that is rendered with the page. When the page is posted back to the server, however, non-dynamic controls (those defined on the page) are instantiated in the Page.Init event and view state information is loaded before the dynamic controls can be recreated (generally in the Page_Load handler). Effectively, before the dynamic controls are recreated, view state is temporarily out of sync with the page's controls. After the Page_Load event has run, but before control event handling methods are called, the remaining view state information is loaded into the dynamically created controls.
In most scenarios, this view state processing model works fine. Typically, you add dynamic controls to the end of a container's collection of controls. The view state information stored for the dynamic controls is therefore extra information at the end of the view state structure for the appropriate container, and the page can ignore it until after the controls are created.
However, view state information about dynamically created controls can be a problem in two scenarios:
If you insert dynamic controls between existing controls.
If you insert controls dynamically and then reinsert them during a round trip, but with different values.
If you insert dynamic controls between existing controls, the dynamic control's view state information is inserted into the corresponding location of the view state structure. When the page is posted and the view state is loaded, the dynamic control does not yet exist; therefore, the extra information in view state does not correspond to the right control. The result is usually an error indicating an invalid cast.
Hope u understood the y we require ViewState.
|
|
|
|
|
thank you man thank you very much , i just didn't understand what you mean by dynamic controls & non-dynamic ones
well i think i have more to learn before learning abt view states
try to be good if you can't be the best
|
|
|
|