i have an button click event on the aspx page, the same aspx page load event i have hide the user control if the Session["Userid"] is empty, now the user can login from the same page, so after his successsfull login i show the usercontrol(in this user control i'm just show a Welcome message and logout button -in this user control also im checking if the userid is not found then hide the welcome message), but there is no data because while page load there is no data on session, so how to reload the usercontrol.
I understand that you can use <%#MethodName()%> to call a method in the code behind of the .aspx class. However What I want to do is to use the same notation to call a method in another class in another assembly, is this possible? For example I want to use something like this
I understand that somewhere here you would have to give the fullly qualified class name, but is this possible?. The reason why I am asking this is because I do not have access to the code behind of this .aspx, all I can do is to modify the .aspx itself.
I have created a web application. I have a page "Default.aspx" and some other page say"test.aspx". In test.aspx, I am setting some values in a collection object and then setting this object in session. I am not getting but somehow during execution of test.aspx, the default.aspx gets called where the session containing object gets reset. Its very important for me to know whey this default.aspx gets called even I am not making any call to it. I have other pages also like a.aspx,b.aspx, c.aspx, d.aspx and many more. All other pages work fine.
on the on click event of my server button (asp:button) i want to call a js function that is written in my aspx side and pass two parameters to the function. I don't succeed with that. I want it to be from the code behind onclick event and not on the "onclientclick" property of the button Why can't i find somthing that will workout?
i have created one webcontrol shoppingcart in which there are two labels one of qty and other of amt which are initially enable =false
now on other page(aspx page) i have one txtbox of qty as txtqty i want tat as soon as user enters qty txtqty and clicks on add cart button it shd be display d value in lblqty of web control shopping cart make sure i m using datalist on aspx page my coding is in vb.
I have an Aspx web form and code behind file named "Maltose.aspx", and "Maltose.cs"
The web form uses a web user control named "Gdriver".
What I need to do is to figure out how to call a method in Gdriver from the code behind file "Maltose.cs". Can someone show me how to do this? I think I would perform some type of casting, but I don't exactly know how. The method in Gdriver.cs is named Recalculate()
My web page is having an asp.net chart control. It's generating fine for normal view. When I try to access same page using asp.net web forms URL routing even the chart is generated it wont appear. This is the working URL of browser [URl]
How can I call a public property declared on a ASPX page from a different ASPX Page? Is that possible? It is a website project. How can I get/call this property from a different aspx page? I have attempted this from the other page, but it is not recognizing the partial class: private Test_Default _test; It does not recognize the "Test_Default"
I've seen a few other threads like this but have been unable to get their solutions to work. Can anyone tell me the simplest way to implement a function like this? Either on a button click or page load or anything.
This code works only in HTML format. This means that I can not select standard components: "Inserting an ASP.NET control will convert the HTML form in the page to an ASP.NET form and remove its current properties. Do you want to insert the ASP.NET control?"
When converted following code does not work anymore. I'd like that code works in ASP.NET mode.
I'm migrating an old ColdFusion site to ASP.NET. One of the pages has a form that posts to an external URL.
I just discovered that you can't do this in an .aspx page. Seems the page will just post to itself if you hit the submit button.What's the proper technique for achieving this in ASP.NET? There are a couple of hidden fields that pass parameters to the external URL.