Web Forms :: Hide Textfields On In A Webform
Mar 15, 2010I am trying to hide multiple textfields i have nested inside a div element. Here is an example of the div element and the script:
[Code]....
[Code]....
I am trying to hide multiple textfields i have nested inside a div element. Here is an example of the div element and the script:
[Code]....
[Code]....
I am trying to hide a group of textfields i have nested in a div element. Here is an example of a div element i am trying to hide along with the script function:
[Code]....
[Code]....
I have some text fields fields of my page say P1, say T1, T2, T3. I also have a link button in my page which links it to another page P2, which also has some textfields. I also have a link button which links it back to page P1.
When i fill in the text fields in my page P1 go to the next page P2 and try to return to P1. I loose the values in t1, t2, t3.
How to retain those values even if i am moving back and forth between these pages
I have a bunch of textfields on my aspx page, many of them have a few validators on them, such as required field, and 2 compare values (for a min and max). All is well with those, all the errors I have posting to a validation summary control that gets fired on a button press. I have it put the "*" in red next to the field with the issue as well, however I'm wondering if there is a way I can change the css class of the textfield through code behind when there happens to be an error present on that control.I know how to change the css class of an element through codebehind(c#) but my question is how do I get it to fire only if an error is thrown for it.
View 2 RepliesWe have a number of multi-line text fields on our pages for form submissions. On the backend of things, we have our stored procedures checking for html coding in those fields to help prevent sql injection. In some cases, someone that is completing the form without any malicious intent is copying and pasting from their word resume into our text fields and once they submit the page it fails because word uses html encoding for formatting and such. So is there a way to either prevent pasting in that way or maybe a way to submit the data to sql in plain text?
Just looking for the easiest solution so that the user doesnt have to do multiple things to submit their application. In order to get it to work for anyone having issues, is to have them copy and paste into "notepad" and then copy and paste from there to our form, which strips the html coding.
I have a web form for handling invoices which has a form view. When I'm in insert item template, I need to have various fields. Some of them are contract number, invoice number, register date and other that are easy to handle. But there is a dropdown list related with a table of prices (the table has price name, price initial payment, number of payments, amount of month fee and so on). So, when the dropdown is selected, fields related with price should get their values from price table, and then the user decides to keep them or type in new values. How can I get it done? Should I use a Dynamic populate extender or type all the code behind using SelectedIndexChanged method to populate price related controls?
View 2 RepliesWhat is the purpose and proper use of the max-length property on text fields?
The application I'm working on limits numeric fields to 6 characters... which doesn't work very well for entering millions of dollars... which is why I'm "fixing" it.
I am using a server control on a single web.forms page. I have to use this control on a web.forms page since its a server control, although this is actually a MVC project. So I created a web.forms folder and put my new page in it. I then copy the example code from the signature control. I get the following error:
The base class includes the field 'ctrlSign', but its type (WebSignatureCapture.SignatureControl) is not compatible with the type of control (ASP.signaturecapture_signaturecontrol_ctlsignature_ascx).
I know the code works because if I removed the ID attribute from the server control, it no longer gives me this error and my control renders. But I need the attribute for the ID so I can perform is post event
I am using this signature control. Here's the web.forms code...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="KahunaCentralTIDRevamp.SignatureCapture.Index" %> [code]....
in webform 1, i have search button when i click its open webform2 and there the gridview.
I want when i click the link in gridview in webform 2 then it close webform 2 and change the datasource parameter in webform 1 without open the new window (still same window)
What is right way to send visitors from one webform to other. What are their limitations and their plus points.
View 2 RepliesI've written my own script manager to handle any javascript need of my asp.net site, including how it handles postback. But I can't seem to remove this from the final output
[Code]....
This includes the __doPostBack script and the WebForm.js, my site never uses this.I really want to remove it. I know I can remove it by using a HttpResponse Filter Stream and use some string manipulation to remove it. But there must be a more optimal way of stopping asp.net from outputting those scripts.Let me know if you guys have any other ideas.
In my asp.net 1.1 web app I am loading a datagrid control in a web page with data from the DB. (the datagrid control is in a <DIV> tag). I also have a View button on the page and onsubmit server event of that I have written a simple Response.redirect to another web page.
Now whenever I load a small amount of data(30-40 rows) in the datagrid and then click the View button it redirects to the other page correctly, but whenever I load a lot of rows(about 200+) in the datagrid then the rows get displayed fine in the datagrid but then whenever I click the View button then the whole screen becomes blank and even in the browser url I get the name of the first page only and not of the other page (on doing right click & view source I get only the <html><body> tags) .
However if I click on the View button immediately after loading bulk data then it redirects fine but its only if i wait for about 2 minutes after the data is loaded and then click the View button the page goes blank. I have set my session timeout as the default 20 min in the web.config also & checked that when I load a few rows & wait for 3 min then still it redirects fine to the other page but the problem is ony when a lot of rows are loaded that the page goes blank completely.
We have an ASP.NET 3.5 website with a PHP forum. The website uses a master page into which we've built some functionality like a menu and an alert banner controlled by the adRotator control. In the forum, I've mimicked the header using html, but everytime we make a change to the master page I have to also update the code in the forum. I can't add the alert banner to the forum at all. We're using a third party menu, but I want to build one using the navigation controls. If i do, what do I do about the forum?
Fow a number of reasons, I'm rewriting the entire site in 4.0. So if there's anything that can be done to better integrate the forum, now would be a good time I guess to try.
There's very little I can do about the code in the forum. It isn't open source. Is there any way at all of wrapping the forum in the master page or a modified master page?
I have a web form with a master page , and I want to put 4 images in that webform.they need to 2 images on top of 2 images.each image is with diffrent width but the same height.
what is the best aproch to do that so it will look ok without spaces and look ok in diffrent resolutions?
use table? div? CSS ? fix size of the images?
I have option page to my Project which has Status,Issu,HMR,DFG buttons on center of the webform, every page will redirect to another page if you click on this option buttons,Now i wanted to change this .. I want to split the page keep all options buttons on left of the screen when you click option buttons corresponding web page should open in Right of the screen,how can i do this one.I am working on visual web developer2008(Asp>net3.5)
View 2 RepliesI have a user control displayed in the output it is a calender now this calenderhas a question mark on it ? do I remove that question mark?i am new to this so dont know how to play around.
<Hospitality:VillaCalendar runat="server" ID="villaCalendar" OnSelectionChanged="PropertyCalendar_SelectionChanged"></Hospitality:VillaCalendar>
fire event in webform?
[Code]....
I'm not getting much help from the security group so I'm goign to post it here.Basically, I like to use Integrated Windows authentication so that I can authenticate all users who are at my company to access my web application in the browser. Each user resides on different domains and some are on the same.
So in order to authenticate them, the first thing I would do is to add them to my web root's security tab? I assume this is the virtual directory folder of which the web application (default.aspx, etc.) runs on the Windows 2003 web server? So I give each user a read security permission to access the folder? (which would mean that they can then access the web application?)
Is my understanding of this correct? Therefore, If i don't add users to the security tab of the virtual folder, then other users will be rejected by the browser?
Next, assuming I want them to log on as a Network Service user, and not impersonate any other user or impersonate as themselves such as LABob (domainuser) and instead just be NT AuthorityNetwork Service, I would set impersonation to false and I would also set anonymous access in IIS to false.I want to set up the fastest/easiest way to add users/remove users to access my application and be able to authenticate whether or not they can get on. Is this the right way to do it?
I've an masterpage where i check if a session is null. If it's, it set that session value to something.
Then, in my webform i'm using that session value, but it always get null value.
Shouldn't .cs of Masterpage be load first than Webform, or should i verify the session state in global.asax?
I want to call the folderdialog box of the winform on click on the button from the webform. The requirement is I need to allow the user to select the folder and populate the file name which resides the selected folder.
View 1 Replies[Code]....
I have a webform that gives the user the option to submit 5 referrals. Currently I only have 1 checklistbox that gives the user a choice to select products of interest for all the referrals. I would like to add a checklistbox under each referral input field in case there are different product interest for each referral? So when the referral gets a confirmation email it contains the product of interest that is specific to that referral.
We have a webform this is in SSL but it is giving that mixed content message that everything on the page is not covered by SSL. Is this a simple matter of viewing source on the page and tracking down any links that may be pointing to an HTTP site rather than an HTTP site? And if I need these links how do I solve this problem?
View 1 RepliesI have three dropdown lists in a webform they are related to each other. I do want to use ICallbackEventHandler to avoid postback.
View 2 RepliesIf a user use back button of a browser and make any change on that webform then how can i restrict him to do so.I my case its a quiz and i don't wanna allow user to change his answer
View 3 RepliesIs it possible to apply this to my existing webforms background color:
<div style="filter: progid:DXImageTransform.Microsoft.Gradient( GradientType=0, StartColorStr='#DCDCDC', EndColorStr='white'); width: 1400px; height: 850px">
</div>
On my webform's body tag i am using this would like to apply the gradienttype style which is above:
<body id="body" bgcolor="#c6cfde" >