|
I have an asp web page(login.aspx) that uses a master page (master.page).
I need to set focus to an asp:textbox(TextBox1) that is inside an asp:Panel(Panel1) on Login.aspx
I want to set focus to TextBox1 on an asp:Button click event (or page load on login...
Started by David on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
ScriptManager.GetCurrent....
Ok I found the answer, the code works fine in IE8 But not firefox for some reason
Anyone know why SetFocus() or Focus() doesn't work in firefox, are there any solutions?
When using ASP.NET AJAX I use the ScriptManager to set focus.. .
|
|
In a ASP .NET 3.5 ListView InsertItemTemplate I would like to change a textbox:
<asp:TextBox ID="txt" runat="server" Text='<%# Bind("plant") %>' />
to a ListBox:
<asp:ListBox ID="list" runat="server" DataValueField='<%# Bind("plant")...
Started by John M on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Have you tried SelectedValue ?
<asp:ListBox ID="list" runat="server" SelectedValue='<%# Bind("plant") %>' > </asp:ListBox>
<asp:ListBox ID="list" runat="server"> <asp:ListItem Text='<%# Bind("....
|
|
I am using the below code inside of a table:
<tr> <td>User Language:</td> <td> <asp:DropDownList ID="Language" runat="server" Width="200px"> <asp:ListItem Selected="True">English</asp:ListItem> </asp:DropDownList...
Started by RandomBen on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Down the road:
Never use ASP:Textbox or ASP:DropDownList
<textbox runat=server> and <.
|
Ask your Facebook Friends
|
I have an asp:button which is inside an asp:hyperlink. When you click the button in firefox, it goes to the correct url specified by the asp:hyperlink, but if you click the button in internet explorer, it stays on the same page. I am just using the PostBackUrl...
Started by Xaisoft on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
A redirect after your logic in the codebehind
<asp:Button runat='server' id='button1' Text='Click Me' Click='button1_Click' /> <asp:LinkButton runat='server' id='linkbutton1' Text='Click Me handler (in javascript)?
I would use....
|
|
For my ASP .NET webpage I am using a MySQL database with a TINYINT field to indicate a boolean (0/1) value.
Thanks to stackoverflow I was able to read the field value into a Listview as a asp:Checkbox.
<asp:CheckBox ID="freight_foundCheckbox" runat...
Started by John M on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
<asp:CheckBox ID="freight.
Directly to .NET boolean and back when using the MySQL Connector/.NET .
|
|
I'm adding multi language support to a prototype web site. The site was developed using html lables which I could multilanguage using asp:literal or I could change them all to asp:labels as shown below.
<asp:label ID="lblAddress1" runat="server" Text...
Started by Patrick on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
<asp:Label>
Use this control in the same way as the , however.
To the page because literals are usually wrapped in <span >
<asp:Literal>
Use this control markup tags (simplest).
|
|
I'm looking for ideas on how to use a custom validation control for an asp:ChangePassword control. A simple attempt to set the "ControlToValidate" property on the asp:CustomValidator control results in:
Control 'changePassword1' referenced by the ControlToValidate...
Started by Dave K on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You need to change the ChangePassword....
Not being able to set ControlToValidate means that you don't get the data in the EventArgs and have to get it yourself .
You can validate anything with CustomValidator if you use javascript to get the controls directly .
|
|
I have a web site that runs both classic ASP and ASP.NET Webforms. The sessions for each are separate.
I need to hit some asp page whenever a request is made on the ASP.NET pages.
Why? Because I need to extend the ASP's session so it doesn't expire.
I...
Started by Joseph on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Update - as you say HTML required to make the request to the ... .
You don't need to a do nothing ASP script file in the ASPX page? Or look at something like this .
Put a .asp page inside an iframe on the asp.net page? Just clarifying here...
|
|
How can I show an nvarchar column that stores unicode data (Entered with the zawgyi1 font) in a classic ASP web page?
When I retrieve and write the value to the page, it shows " ". I set my ASP page's content type of UTF-8 with the following meta tag:...
Started by RedsDevils on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Item 1 requires either that you actually save the ASP file as a UTF-8 encoded file or that all your or by adding the attribute CODEPAGE=65001 to the <%@ %> declarations on the first line of the ASP.
|
|
Is it possible to return to the web client a page named differently than the original classic asp page read from the web servers folder ?
F.i. a real example I would like to implement: let's say I have an classic asp called
calendar.asp
If this page is...
Started by Edelcom on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Pages so that the links are to friendly URLs - /calendars/jan-01-2010.asp, /calendars/jan-02-2010.asp to the IIS box(es) to install this filter, and if you really want your custom URLs to feature the .asp (it remaps .chm to .asp....
|