Web Forms :: Controlling A UI From Another UI?
Jun 28, 2010
Is it possible to control a web page from another web page. ?My scenario isI have a page (UI1). It has a hyperlink. Clicking on the same it opens another seperate UI (UI2). UI2 also have a hyper link.My question is , is there any way that I can control UI1 from UI2 using this hyper link
View 4 Replies
Similar Messages:
Aug 16, 2010
I want to enable a text box when a check box is pressed. I am using asp.net 2.0 with vb.
Here is my current code, no errors are returned but it doesn't do anything when the check box is clicked.
[Code]....
[Code]....
[Code]....
[Code]....
View 4 Replies
Mar 29, 2010
How can I set up a format for a text box so that if they are to put a date or the time they are required to put it in as mm/dd/yy or time as 12:00am?
View 6 Replies
May 28, 2010
I'm sure you've seen sites that display a portion of the available text in a limited space followed by an ellipsis or a [more] link. That's what I need to do. The text is in a database field, and includes carriage returns and line feeds. I can't just count the number of characters. How can I only display the text that will fit in a defined space? I've tried using a panel control with the height defined. I've also tried a div with the height defined. Neither has worked. How is this done?
View 6 Replies
Feb 17, 2010
When I declare the TreeView Nodes:
[Code]....
I can programmatically control the collapse and expansion of nodes:
[Code]....
When I use a SiteMapDataSource:
[Code]....
How do I now programmatically expand and collapse nodes? The code above doesn't work because the number of nodes is now 0.
View 1 Replies
Jan 13, 2011
I'm new to programming and recently spent some time navigating these forums and searching google to learn how to manipulate Validations with ClientValidationFunction using JavaScript and OnServerValidate with C#. Now that I have a decent handle on it I wanted to give back a bit. I hope some of you all can use this information. Mess around with it and see what its doing and how.I'm using Visual Studio 2008 as my IDE. I did not include a master page so just copy and paste, set break points, and add a watch to the following:
x
options[x].value
options[x].checked
[code]...
View 2 Replies
Oct 29, 2010
I have a form with several textboxes. All of these have AutoPostBack="True".
My problem is that the focus disappears to goodness knows where after each postback. The behaviour I would like to enforce is as follows,
If the user hits the Enter or Tab key after filling in a textbox then the focus should go to the next field on the form (to be explicitly specified in my code).
If the user clicks on textbox X after filling in textbox A then the focus should go to textbox X after postback, even if it is not the next in the list.
In other words, I want the form to behave in the way that most users would intuitively expect.
I have Googled for potential solutions to the loss of focus after postback but the few that I have found were many years old and I am unsure that the advice is still relevant for ASP.NET 4.0. Some of these old solutions also appeared to be invalid for browsers other than IE. What is the current best practice for handling this issue?
BTW, VB.NET solutions are preferred though I will also be happy to accept C# suggestions (which I would run through a code converter). Note that I have a single sub in my code for handling the TextChanged events for all my textboxes. This means that I have to use the following code to work with the textbox that has called the sub.
Dim CurrentTextBox
As
TextBox =
DirectCast(sender,
TextBox)
If addressing the focus problem means that I have to have individual TextChanged event subs for each textbox then so be it, but I prefer the simplicity of my current single sub approach.
View 9 Replies
Mar 25, 2010
I'm trying to figure out how can I control my linkbutton which nests inside my DataItem in the ItemTemplate.What I wish to do is to check something in the server side and according to that, decide whether I wish to alter its visibility to "true" or to keep it hidden. I think that the method which is going to solve it is the ItemCreated, although, I don't happen to know how to control that specific item of mine.
Here is my DataList control:
[Code]....
View 1 Replies
Mar 22, 2010
I have a GridView bound to a SqlDataSource. If the text in a particular column is very long then the Grid view becomes very wide, well off the page. How do I constrain it, if necessary truncating the text displayed? I cannot find the relevant setting in the properties section.
View 1 Replies
Oct 12, 2010
I have a question regarding the use of Panel control in a FormView controlled by buttons outside a FormView.
There is nothing found on the internet about it.
Can somebody explain to me what the code is for 2 Panel controls in a FormView with 2 buttons outside of the FormView changing the Views.
And also the code with the buttons insise a FormView.
without binding it to a datalist or something else only thru buttons.
The Panel's are in the edit template but I dont think it doesnt really matter in which template it is.
I tried hours to search for an answer or to code it myself but I even dont get a error message.
The normal way with Panel control without a FormView is easy.
HTML
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
[Code]....
View 2 Replies
Jan 22, 2014
If I have to show big text in gridview's particular column, then how can i control its height and width (especially) in ASP.NET C#so that i do not affect other columns height and width.
View 1 Replies
Jan 13, 2011
I have a gridview inside a div and everytime i scroll to the bottom rows of gridview, it throws back to the top of the grid.
<div id="divGvIncidentDetail" runat="server" style="overflow:scroll; min-height: 10px; max-height: 250px;" onscroll="SetDivPosition()">
<asp:GridView ID="gvIncidentDetail" runat="server" ...>
</asp:GridView>
</div>
To prevent it, i tried implementing following javascript code by user Sun Rays:
<script type="text/javascript">
window.onload = function () {
var strCook = document.cookie;
if (strCook.indexOf("!~") != 0) {
var intS = strCook.indexOf("!~");
var intE = strCook.indexOf("~!");
var strPos = strCook.substring(intS + 2, intE);
document.getElementById("divGvIncidentDetail").scrollTop = strPos;
}
}
function SetDivPosition() {
var intY = document.getElementById("divGvIncidentDetail").scrollTop;
document.title = intY;
document.cookie = "yPos=!~" + intY + "~!";
}
</script>
I get the following error when i run the code: Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object Am i missing something? or is there any other better solution to maintain the scroll position
View 9 Replies
May 16, 2010
[Code]....
[Code]....
<%@ Page Title="" Language="VB" MasterPageFile="secureds_deals.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<script runat="server">
Protected DealId As Integer = 0
Protected DealName As String
Protected StartDate As Date
Protected ContractDate As Date
Protected ClosingDate As Date
Protected SubmitRole As String
Protected Status As String.......
View 6 Replies
Jul 26, 2010
I am trying to control access to my website with windows integrated.
[code]....
Except that, this code isn't working. I can access it if im a member of that group or not. What is wrong?
I looked through some code, and thought maybe I needed to switch the ? for a *, but then that seems to just deny everything.
View 1 Replies
Mar 25, 2011
I have a web app that contains 1 master page and a bunch of content pages. One of the content pages is "SysLogin.aspx", which is called from a menu option from the Master Page. When the page is called, the user logs in. However, there is a "Login" button. In the code behind of the Login_Click() event, the the user successfully logs in, they are supposed to be redirected to a "Default.aspx" page and the Main Menu is enabled. Problem is, the app hangs on the redirect statement and it goes to the Catch portion of the Try Catch construct. For some reason, when I examine the exception, it only says "Unable to evaluate expression". Below is my code. My question, other than what I've stated is...should your application be controlled using code in the Master Page or in child pages. My code from the "SysLogin.aspx" is below. It hangs on the highlighted line of code.
Private Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.Click
Try
If txtLoginID.Text.Length > 0 Then
If txtPassword.Text.Length > 0 Then
If dbIO.ValidateUser(txtLoginID.Text, txtPassword.Text) Then
Session("LoggedIn") = txtLoginID.Text
Session("loggedInOk") = "Y"
Response.Redirect("~/Admin/Default.aspx")
End If
End If
End If
Catch ex As Exception
Master.errMsg = dbIO.DisplayError("btnLogin_Click()", "SysLogin", ex.Message)
End Try
End Sub
View 1 Replies
Dec 29, 2010
I was wondering if anyone knew if it was possible to control a collapsible panel with a drop down list?
For example. Say the drop down list has options, 1, 2, 3, 4. I want to hook up panels that go to each option. So when the user selects 1, panel one is shown, when user selects 4 panel 4 is shown.
View 5 Replies
Dec 18, 2010
i want to make a web site which is able to control a hardware on a clients computer.
the the hardware for example be a simple gsm modem
this is a general question, for asking of methods and opinions as for the following
control this hardware using the computer the hardware is connected to.
control this hardware using another computer over a network
control this hardware using a web site application or a simple web site
the thing to consider --> this is a class group project which we implement in c# asp.net.
edit
hope the broadness is narrowed down.
assume there is a remote control attached to the comm port of my computer, which controls a small car.
i want user around the world to be able to move the car using there keyboard.
i can write a desktop app to control the remote using the printer port but thats on my local host only.
View 1 Replies
Sep 20, 2010
In an ASP.NET MVC2 app, we have the standard login action...
if (ValidateUser(model.Email, model.Password)
{
FormsAuthentication.SetAuthCookie(model.Email, model.RememberMe);
[code]...
View 1 Replies
May 4, 2010
Controlling IIS LoadLibrary PATH?
View 1 Replies
Jul 6, 2010
With my model, I have one view model using another as its base. In my case, BaseUserModel is inherited by CreateUserModel, in order to share common properties such as Username and Password. My CreateUserModel adds to that by having ConfirmPassword, Email, SecurityQuestion, etc.
My problem is, when using the ValidationSummary() Html helper, the validation is obviously in order of the properties in my model. Basically, because of the inheritance I have going on here, the errors are not in the correct order.
Is it possible to control when or how these validation rules are added to the list? The only attribute I'm using is Required.
View 2 Replies
Jul 3, 2010
I'm writing a web application for display on smartphones and multimedia phones. If I go with the default web page size then the phone resizes the page so small that it is impossible to read the text. Fixing the width of the objects on the page to 200 px wide has no effect. The device still tries to display the entire page.
So I'd like to find a way to force all the pages to be no more than 200 px wide.
View 1 Replies
Jan 6, 2010
Is there any opensource control or source code through which I can automatically parse a resume into seperate fields (Input format can be word/PDF). This feature is similar to 'LinkedIn' import resume.
View 2 Replies
Nov 22, 2010
I have an asp.net 3.5 web application for which the client has requested that the security model allows (a licensing model) restricting the number of simultaneous users logged onto the website. I am not sure how this is achievable - I'm currently controlling membership via the AspNetSqlMembershipProvider.
View 5 Replies
Feb 26, 2010
I was wondering if it's possible to affect the positioning of the body; I have a 500 x 500 pixel image I have positioned in the center of the page, set not to repeat. I was wondering if it's possible to skew the positioning somehow so that it appears 20 pixels down from the center, as I have a larger header that overlays the background.
View 3 Replies
Jan 11, 2010
I couldn't think of a decent title, so let me first apologize for that. I have a WebService (call it A) written for my app so I can take advantage of ASP.NET 3.5 AJAX features. I use the generated JavaScript proxy to make AJAX calls.As a side effect, WebService A is exposed for anyone to add as a reference to another project, which is great, except I don't want certain WebMethods to be available to external applications (in the same domain, BTW).So I've got two questions:Is there a way to control the exposure of WebMethods in WebService A?
If there isn't, I'm thinking I'll just add a separate WebService (B) that exposes the WebMethods I need from WebService A. But then,How can I prevent other applications from referencing WebService A while still allowing the application it originates in to access it?If that's not possible, I'm not really worried about it. The apps are all intranet-only, I just don't want the WebServices to be abused.Also, there is a similar question here already without any good anwers. The asker describes almost the same situation I'm in: [URL]
View 4 Replies