Web Forms :: Preventing Focus Rectangle On ImageButton?

Oct 7, 2010

I'm using an asp:ImageButton as a custom CheckBox. When the user clicks on it it shows a dotted rectangle briefly. My code-behind immediately switches the focus to the submit button, but how can I keep this rectangle from appearing while the user has the mouse button down?

View 2 Replies


Similar Messages:

Forms Data Controls :: .when Load The Page To See The Results, All I See Is A Blank Gray Rectangle. No Graph Inside?

Apr 7, 2010

i have created a .net chart, but when i load the page to see the results, all i see is a blank gray rectangle. no graph inside. (while if i split view it in VS i see the chart)here is my code,

[Code]....

View 5 Replies

Creating A Rectangle Interactively?

Jun 14, 2010

I would like to present an image to a user and then allow the user to interactively define rectangles within that image.

This is a first for me, so I am at a complete loss for examples and methods in VB ASP.NET.

Does anyone know of any straightforward examples around?

View 4 Replies

Web Forms :: Preventing Caching Of Web Pages?

Jan 28, 2011

I am relatively new to ASP.NET and have searched the Internet to find guidance in preventing caching of web pages (in the latest versions of IE, Firefox, Chrome and Safari). Based on my search, I found a lot of conflicting/confusing info. As best as I can tell, it appears that I need to add the following 3 lines to the <head> section of my .aspx files:

[Code]....

if the aforementioned lines are correct and if all 3 lines are necessary? I have tried using different combinations of the 3 lines, but I get conflicting results (i.e., sometimes the page is cached and sometimes it's not).

View 2 Replies

Web Forms :: Preventing Same Data Entry?

Mar 21, 2010

How can i prevent a user from entering the same data twice, i guess i need some validation in somewhere?For example:I add a name of a city, added successfully to the table.Try adding it again, click add and the program crashes.What type of coding do i need for this, some type of compare tool or something for the table?

View 1 Replies

Web Forms :: RequiredFieldValidator Not Preventing Postback?

Oct 4, 2012

I have this simple code:

<asp:Label ID="litInfo" runat="server" meta:resourceKey="litInfo" />
<br />
<asp:TextBox ID="txtEmail" runat="server" /><br />

[Code].....

I am expecting the RequiredFieldValidator control to prevent a postback when the textbox is filled in with an incorrect data and the button pressed. What happens is that the validator displays an error message but a postback is fired.

View 1 Replies

Web Forms :: Preventing Multiple Form Submissions

Jun 6, 2010

I'm just wondering what people use to stop user from click a submission button more than once thus creating many records. Does any one have any examples that take client-side validation into account. I have done much research on this but am yet to find a feasible solution.

View 1 Replies

Web Forms :: Preventing Double Booking In SQL Database?

Mar 21, 2011

I would like to create a module that is similar to the inventory system but not with a whole lot of bells and whistles. Basically, I have a jumper business and would like create a database to hold the items (jumper, pop-corn machine, etc.). I would like to have a calendar that when a user click on a date that he/she like to book my item only the available items display and not the one that is already booked. Pretty much to prevent the same item to get book by two different people on the same date. I also would like to create a form on the order page to have the booking information to go into the database.

View 11 Replies

Web Forms :: Preventing A PostBack From Generating A New Window?

Mar 15, 2010

I have an existing app that has a java based search utility - this search utility has a FILTERing mechanism. You can click a button to POSTBACK to the server and there, a new window is generated displaying "blah dee da".

So, click a button to filter the utility, click a button to postback and voila, you get your popup aspx.

Unfortunately, the old aspx loses STATE when on the round trip and refreshes itself too - i lose my filter.

How do I go about NOT losing my STATE ?

I understand that specifying the following in the FORM tag on the old ASPX: target="_blank"

takes the focus away from the old aspx and so, the STATE is not lost. However, when the popup generates, a brand new aspx is created along with the asps pop-up. So, I end up with 3 aspx forms!

View 2 Replies

Web Forms :: Preventing Post Request From Other Domains?

Nov 15, 2010

We have a flash site which uses POST requests to commumicate with the database, via .NET pages. There is no login, it's an open system. Since we are communicating with POST data we are using Request.Form to get the data posted from the flash. My issue is that anyone who can view that post request, in firebug for example, can then set up a post request from another server and this is not good as some of the actions are sending emails etc. Is there any standard way of preventing a POST request from another server when using Flash > .NET combo?

View 2 Replies

Web Forms :: RequiredFieldValidator And Link Button Not Preventing Postback?

Mar 30, 2010

I have one TextBox with RequiredFieldValidator control and LinkButton on my page.

May occur the following situation on this page:

I filled the texbox and clicked the linkbutton is make postback on the server - so all ok.When I not filled the textbox and clicked linkbutton it will show message "Please enter your first name." and no postback will happen but when I filled textbox and click linkbutton I got a PROBLEM : Message "Please enter your first name." goes away (correct), but it doesn't preventing posback.

View 8 Replies

Web Forms :: Preventing Background Image From Stretching / Resizing?

Jun 10, 2010

I have a 40x1600 image that I use for bg and I do repeat-x in my CSS, like such:

body

View 1 Replies

Web Forms :: Preventing Copy And Paste Into Our Multi-line Textfields?

Jul 12, 2010

We 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.

View 1 Replies

Forms Data Controls :: Handling / Preventing GridView Refresh On Deleting Row?

Aug 4, 2010

Before I begin, I would like to acknowledge that I might be using incorrect terms below due to my lack of experience.

I have a GridView bound to an ArrayList of Custom Objects. I have a button as part of each row, which when clicked, I delete the row from the Arraylist, and re DataBind() the GridView. While this deletes the Row, it causes the Page to be refreshed that takes the User back to the top of the Page.

E.g. If the User clicks on the button of a row at the bottom of the Page, after the deletion, the Page gets refreshed and the User is now taken to the top of the Page.

This is irritating especially in long lists i.e. GridView with many rows. (I don't want to use paging here.) Is there any way to avoid this, or mitigate this problem.

View 2 Replies

Preventing Multiple Logins?

Nov 24, 2010

I'm using the "cache tecnique" to prevent multiple logins. Reading in this forum I have read the following code:

Global.asax

[Code]....

Login.aspx
[Code]...This code works fine, If the user is already logged the second login is not permitted. But....

But if I make the logout (destroing all my session variables) and I try to login a second time... it's not possible, I read that the user is already logged!!I have also tried to clear the cache after the logout but nothing changs, even if it is illogic because the code must work even if I don't do the log off...

View 23 Replies

Preventing Reply Attacks In C#.net?

Mar 25, 2011

I am using c#.net web application.I will not allow reply attacks in my application.How do i prevent from the same.

View 3 Replies

Preventing Fullpostback & Reg Ajax?

Jun 28, 2010

i have used ajax , but i am not very clear of its concepts

i just knw that it prevents full post back

1) frm where can i get a very clear concept for the use and purpose of ajax and how its to be used

2) i have a textbox with autocomplete extender and a button (button1)

button1 is in the updatepanel as i wanted tp prevent post back when i click button the datafrom the textbox is inserted in grid as the click event gave full post back i used updatepanel , now its wrking fine but the prblm is when i enter new datain textbox and fetech the deatils frm database full postback occurs i tried to put the autocomplete etext box in a update panel but its giving error.i need toprevent this post back

3) on the same button click at the end of the click process(ie after adding to grid)i need the autocomplete extetender text box shld be blank

i used textbox1.text="" but its nt working

View 1 Replies

MVC :: Preventing URL Browsing Without ChildActionOnly?

Dec 30, 2010

there any way where i can make a page only accessible through a RedirectToAction? It's a bit dumb of a question given a redirect writes a URL.. I know it might sound a bit silly, but i really don't like the fact i have to be 'forced' to create a partial view to be able to make the page i want to redirect to. What i want to do is quite simply, after deleting a user account, redirecting to a page where it says, account deleted (with a bunch of other stuff), so its quite a simple task. I have no problem making a partial view here and there, but if i want to make many pages unaccessible, i think i would have to make most of the website in partial views haha. Maybe i'm getting it wrong though, i've read a couple of posts about it, including Phil Haack's ->http://haacked.com/archive/2009/11/18/aspnetmvc2-render-action.aspx But i'm still very confused about this subject,

View 5 Replies

Preventing Cookie Replay Attacks In MVC

Jan 22, 2010

This involves using the Membership provider to add a comment to users server side records when they log in and out, and then confirming that when a cookie is used to authenticate, that the user hasn't logged out. This makes perfect sense to me. Where this starts to fall apart is that we do not currently use a membership provider, and so it seems like I face reimplementing all our authentication code to use a membership provider. We currently check authentication in a controller, and make a call to FormsAuthentication.SetAuthCookie() once we know the user exists. It would be a lot of work to force a membership provider in.

Is all this work really neccesary. Can I roll my own key value store of cookie values to logged in users and just make sure I clear this when a user hits the logout button. If this seems unsafe is there a way of implementing a minimal Membership provider in order to make these checks without handing off all authentication code to it?

I guess my main problem here is that we decided a long time ago that the membership provider model doesnt fit with the model we use for locking and unlocking accounts, and chose not to use it. Now we find that the MS recommendations specifically mention a membership provider, and as this is security I need to be sure that not using it as they recommend isn't going to cause troubles.

View 2 Replies

Preventing New Line In A Multiline Text Box?

Mar 16, 2010

How to prevent the new line character at the beginning of the text entering in a multiline text box? Now, I already trimmed the white space at the beginning of the text. but i can't prevent the new line character that has to be occurred by entering the enter key on the most beginning of the text box.

View 1 Replies

MVC :: Preventing Access To Parts Of Website?

Feb 22, 2011

I am developing a registration process which consists of 4 steps. Each step has its own action method. As such a user could type the url for each step as follows: bogusURL/Step1 //returns the View Step1 bogusURL/Step2 //returns the View Step2 etc... I would like to prevent users from gaining access to a step unless they have completed the previous steps. i.e. If they typed in bogusURL/Step2 without having completed Step 1 they should be redirected to the first step.

What is the best way to implement this?

View 2 Replies

Preventing Page Lifecycle For One Control?

Dec 16, 2010

I'm using a file manager-type WebControl that does lots of postbacks. It's placed inside a Page that is relatively complex. I would like to prevent the WebControl from causing the whole Page to go through the lifecycle.

Is there any way to isolate the WebControl from the rest of the Page? The only way I can think of is sticking the WebControl in a separate Page and creating an iframe in the original Page. Unfortunately that also means my WebControl properties/settings are no longer in the original Page. If I want two instances of the WebControl with different settings, then I have to create a Page for each setting and reference the correct one in my iframes. Not quite as "drag & drop" as I would like.

View 2 Replies

Preventing AutoPostBack According To Confirmation Dialog

Aug 5, 2010

I want to show a confirmation dialog when a specific value is selected in an asp:DropDownList. If the confirmation dialog returns false (cancel) then I want to prevent the AutoPostBack.

<asp:DropDownList id="theDropDownID" onchange="foo()"></asp:DropDownList>

However, it ignores the returned value from foo() and actually does the postback. The generated code of the onchange event is:

foo();
setTimeout("__doPostBack('theDropDownID','')", 0);

so basically controlling the setTimeout that the .net adds, will do the job.

View 2 Replies

Preventing MicrosoftAjaxWebForms.debug.js From Loading?

Jun 4, 2010

I've got an ASP.NET web application, and I'm attempting to reduce HTTP calls to the server, so I'd like to not load things like MicrosoftAjaxWebForms.debug.js and MicrosoftAjax.debug.js.

Script manager is used to form all of my external javascript files into one, and I'm concerned that this is causing other non-related libraries to be loaded.

View 2 Replies

C# - Preventing A Button From Responding To 'Enter'?

May 13, 2010

I have a master template that all the pages on my site use. In the template there is an empty panel. In the code-behind for the page an imagebutton is created in the panel dynamically in my Page_Load section (makes a call to the DB to determine which button should appear via my controller). On some pages that use this template and have forms on them, pressing the Enter key fires the click event on this imagebutton rather than the submit button in the form. Is there a simple way to prevent the imagebutton click event from firing unless it's clicked by the mouse? I'm thinking a javascript method is a hack, especially since the button doesn't even exist in the master template until the button is dynamically created on Page_Load (this is ugly since I can't simply do <% =btnName.ClientId %> to refer to the button's name in my aspx page).I tried setting a super-high tabindex for the image button and that did nothing. Also set the button to be the DefaultButton in its panel on the master template but that did not work either. Moreover, I don't want to add a property to all of my pages that use this template (there are hundreds). It would be optimal to find a solution that works globally from my master template.I'll try to show our example here:We have a button on the top of each page in our system that lets you star the page as one of your favorites, sort of a server-side bookmark system. When the page loads it looks to see if the page is one of your favorites or not and then shows a gold star if it is, and a gray star if it is not. Clicking the imagebutton of a star toggles the page favorite status.In my master template (FullMenu.master) I have this panel

<asp:Panel runat="server" ID="pnlFavorite" style="display:inline;"></asp:Panel>

Next there is a class which creates the button and adds it to the panel on the master template:

public void InsertStarButton()
{
CreateStarButton();

[code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved