Web Forms :: Calling Text Box From Default.aspx?
Sep 6, 2010I was wondering if I can create a method or textbox in an .aspx page (such as 'Default.aspx') and from a different class (e.g 'MyClass.vb') insert values into the textbox?
View 6 RepliesI was wondering if I can create a method or textbox in an .aspx page (such as 'Default.aspx') and from a different class (e.g 'MyClass.vb') insert values into the textbox?
View 6 RepliesIs there a way to call a public function from a class?
[code]....
How to display text in another Web form
In Default.aspx I have a GridView. How to Default2.aspx, show data from Default.aspx?
I have a textbox on Default2.aspx.
In Default.aspx I have a GridView.
Data from the GridView I want to show the textbox (Default2.aspx).
I have a simple test page using a couple asp features that I want to incorporate in a future site. It runs fine in Visual Web Developer.I deploy the site on a device running Windows CE with a web server. When I go look at Default.aspx I just read the file as text. Do I need to install something else on the device to get the web page to work?
View 1 RepliesI have placed a list box and a text box with Selected Index Changed and Text Changed event repectively in an aspx page. Now If I write somthing in text box and then with out clicking elsewhere select a value in list box, then first Text Changed event of text box is called then selected Index Change event of list box is called. After that again Text Change event of text box is called. Can any body give some insight why this happening? Below is the .aspx code:
[Code]....
I am trying to secure very mixed content that is located in an ASP.NET directory. For purposes of this question, it can be ~/MyApp/.
I want all of the content in the directory and its subdirectories restricted to authenticated users. The default.aspx page, though, should be accessible to everyone. This is the web.config in that directory:
[Code]....
Now if you are an unauthenticated user, everything works fine if you request [code]....
The problem occurs in that visitors do not always request "Default.aspx". We have a default document configured so that they get Default.aspx even if they just request "/MyApp". An authenticated user works fine, but an unauthenticated user is directed to the login page.
Now I know that essentially this happens because even though the request for "/MyApp/" will actually end up serving up "/MyApp/Default.aspx", the security system is only checking for "/MyApp/" since that is what I requested. That is then getting the default security for the directory.
How can you configure an exception to allow access when no particular file is requested in the directory??
Is there some dependency between DefaultDocumentModule and UrlAuthorizationModule? In this environment, the UrlAuthorizationModule has been removed and re-added in order to make sure it fires for non-managed requests. I would not expect that to change the order of execution, though, since UrlAuthorizationModule usually goes after DefaultDocument.
A workaround could be to set up the opposite security with the directory being open, and then trying to secure individual files. Because of the (changing) number of files, and extensions, etc, and the fact that you cannot use wildcards in a <location>, this is not really a workable solution for me.
How to redirect Default.aspx to Default.aspx?id=1
View 7 RepliesI often want to call a function in the code behind using the "<%# ... %>" syntax. Sometimes is works and sometimes it doesn't. It is also a difficult syntax to search for. Can someone point me at an explanation of the working (or not) of this syntax?
I just tried this:
<asp:TextBox
ID="TextBox1"
runat="server"
Text="<%# getBCSConnectionString() %>"
></asp:TextBox>
For example. The function is in the code behind (it returns a string). The TextBox is empty and no break point is hit in the function; it does not appear to be called.
Regarding the above topic I want to know the following:
1) Is it possible to call the exe from an aspx page with or without parameters?If so client side call or only server side call?
2) What permissions need to be given for it to be accessible - the exe needs to do data transfer with postgres?
3) How to diaplay the output of the exe on the client side in Labels or alert boxes?
Any other problem that may occur while executing exe from the aspx page?
For example, I have master page MyMasterPage.aspx and content page MyDefault.aspx. I have many UpdatePanels at MyMaterPage.aspx, and also I have many UpdatePanels at MyDefault.aspx.
[code]....
I want JavaScript functionClickMenu(this) at input button [id="ButtonMaster1" @ MyMasterPage.aspx] pass its value ["Menu-1"] into text box [id="TextBoxDefault1" @ MyDefault.aspx], and then performing update / doing post-back to server ONLY FOR UpdatePanelDefault1.
I am looking forward an example code for JavaScript functionClickMenu(this).
how can i get the the Full URL in this Case "default.aspx#innerpages/Conferences.aspx"
View 4 RepliesFirst of all, thank you for the attention.
I am having some trouble, I am very new to asp.net, and the last problem I had, I spent about 59 hours trying to solve, Now I have a new one !
:D well, I guess this is part of the learning process...
Well, in Visual Studio 2010, I clicked New Website. @ C# language, ... The template it gives is pretty nice, it creates a database MDF file, and a login/register setup ready to go !...
You guys can see it live AT CLICK HERE ...
Everything is working, well at least here at the local machine...
There are 2 pages in there, Default.aspX, and About.aspx ... I want to allow ONLY logged in users to view those 2 pages... I tryed a few things, added my account to a role called ADMIN,
In the web.cong I changed Allow"*" to allow"ADMIN" ... still didn't work.. Also, I was trying to avoid using roles for now, and I was trying to find a way to do this for individual pages in the same directory as well... If possible with out touching the web.config file...
I have a code behind which i need to call from the aspx page. Below is the the code in aspx and code behind.
aspx:
<a href='<%# ChangeAlphabet("0") %>' >All</a> </li>
I have an web application in a server.there is an aspx page i need to call an aspx page with new window using response.write().
ex: Response.Write("www.abc.com/page1.aspx");
But it will open the page in the same window but i want to open the page in new window.
This is such a simple thing but i can't figure it out.
I have this code: (just a section)
[Code]....
[Code]....
Here is the code behind:
[Code]....
I can get it to work if i completely paste the code in there, but this is such a pain. I just dont quite understand OOP. What do i have to write to call that code from another aspx page?[Code]....
I need help calling a web service asynchronously. Current scenario is, I have a classic ASP page which does some processing and then redirects to a ASPX page which would call the wcf service asynchronously and then redirect to another classic ASP page. Im currently using the Asynchronous method to call the service with Async="true" included in the header. Testing the ASPX page induvidually it appears that the service call is asynchronous and does not wait for the the service to process data. But when integrating it with classic ASP page i.e ASP to ASPX to ASP it appears that the process takes a while as if the service call is synchronous.
So is there a better idea to use in calling a wcf service asynchronously. The idea behind my work flow is the ASPX page would be used to call the service and then the ASPX page would redirect back to the classic ASP page is came from. Let me know if there is a work around on how to call async wcf service in aspx page. I dont need the ASPX page to wait for a result or anything it is just used to call the WCF service async
I have a function that returns an image name from an Array, and takes the array index as a parameter, something as follows:
public string imageGallery(int imageNumber)
{
return "~\webForms\profileAdmin\uploadedImages\serkijn\" + iArray[imageNumber].ToString();
}
On the aspx page I have something like this:
<img src='<%# imageGallery(0) %>' />
[Code]...
I have a problem with calling a method on a aspx page from a usercontrol.
The case is: I have 1 main page with 5 usercontrols, when something goes wrong in the code I want to display the error message in a Modalpopup Extender. I can create for each usercontrol a different modalpopup extender but isn't much easier when I make 1 popup in the aspx page. But the problem is: How should I call a method in the aspx page that open the popup?
I have search several hours on the internet but can't find anything useful.
I want to display index.aspx instead of default.aspx in the root of folders in my ASP.NET app but can't figure out where to set this.
View 4 RepliesHere is my scenario.In default.aspx page user selects the country, state, city from drop down list, and store them in cache for further use. but when other user open the web site from other computer it shows the same country, state, and city selected by user 1. Is there any problem related to cache? I have stored data as following.
cache["ctryID"] = ctryID;
cache["stateID"]= stateID;
cache["cityID"]= cityID;
I want to show default country, state , city at page load of default.aspx
I have been trying to call a vb.net function in aspx page how can i do that?. I have done it in C# by
<td><#%GetItemIndex(Container.ItemIndex)%></td> its working fine in C# but in vb.net it says GetItemIndex not declared.
and trying to convert (rptpages is a repeater)
rptpages.Itemcommand += New RepeaterCommandEventHandler( rptpages_ItemCommand1) from C# to VB.net but i dont see itemcommand property in VB.net for the repeater.
I am using FTB on my aspx page. is there any way I can have Toggle Full screen feature in FTB, is this feature availble in FTB? it is available on TinyMCE, but I don't want to switch to TinyMCE since I am already using FTB in most of the pages in my application.
View 1 RepliesI was wondering is it possible to for example have text for example like the following : "product no. 345 - use when loading shedding occurs!"
And lets say this it was saves in StyleSheet1.css as '.useThisProduct'
And then in my label (eg):
<asp:Label runat="server" ID="lableUseThisProduct" CssClass="useThisProduct" />
The reason i am asking I have a list of a few products that may or may not change once a month, and instead of saving all the variables and diffrent things in a sql table I can just update/delete them in a css sheet.
I know I can probably copy and past it in and out of the .aspx page but it just seems so 'un-neat' to have lots of text in the HTML tags.
I'm very new to .net and Visual studio. When u create a new website, a blank page default.aspx is displayed. Then u click on add new item & select master page. How to add this masterpage to default.aspx?
View 4 RepliesI want to show default text in a text box, and have it disappear as soon as the user begins tio enter text. In an html textbox I can do this:
onfocus="if(this.value=='mm/dd/yyyy')this.value=''"
What can I do in a server side text box (<asp:TextBox>)?