Web Forms :: Cursor Stay Down When I Click Submitbutton?
May 15, 2010i have textbox and submitbutton at bottom of aspx page when i click submitbutton cursor moving to top of the page, actually i want cursor stay down
View 4 Repliesi have textbox and submitbutton at bottom of aspx page when i click submitbutton cursor moving to top of the page, actually i want cursor stay down
View 4 RepliesI'm trying to make a div tag retain its state through postback. here's my code
Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html>
[code]...
Now if you click the "toggle" button div tag id sub3 will display. If you click different button div tag blah will display.If you click refresh then both the toggle and different div tags disappear. Is there a way so that when you click refresh that the both div tags stay visible through the postback?
im tryin to create repeater from code behaind using C#. The data bind is working good, im tryin to put some pager. the pager is half working. i can see the pager links at the bottom, i can see the the code split the records to 10 lines each page as i set it but when i click the next link the records stay the same it wont changing for the next 10 records. my code
[Code]....
I have a 'MaskedEditExtender' textbox for phone number on my application. On IE, when someone clicks somewhere in the middle of the textbox using the mouse, on the first click the cursor is actually placed at the first digit of the number. On the next click positions it is at the mouse position. However, on other browsers like Chrome, Firefox, etc.. on the first click of the mouse, the cursor position is at the mouse position (not at the first digit of the number). There does not seem to be any special code written to specify this behaviour. Is there a default behaviour for 'MaskedEditExtender' on IE which results in this?
View 1 RepliesI don't know what I'm making wrong.I have a submit button, and on click it should execute the funktion in the code behind, but I get the error that the funktion is undefined.this is my code in the .aspx webform:
<%@ Page Language="C#" AutoEventWireup="True" MasterPageFile="~/DashMaster.master" CodeBehind="BI_MDR.aspx.cs" Inherits ="BI_MDR.StoredProc"%> [code].......
public void ModifyEnter()
{
combo1.Attributes.Add("onkeydown", "if(event.which || event.keyCode)" +
[code]...
I have view.aspx page that when I open page and don't do any thing in this page i.e for 10 minutes when I come back to this page after 10 minutes and click on hyperlink or button below error happen. Why this error happen?
View 1 RepliesI've a dataentry screen where I've to give the users aprovision to enter date and for doing that I've used a DatePicker control. The problem is when I'm clicking on the next/prev button to change the month of the calender, the calender is not staying on the screen. So in order to select other month the user has to re click on the button. find below the stepwise description of the problem I'm facing.
1. I click on the calender icon and the calender popps up.
2. Now user tries to navigate months (i.e June to July or June to May) using Next/Prev button of the Calender Control.
3. When Navigating from current month to next/prev month I want the calender to be shown on the screen but actually on click of the Next/Prev button one postback is happening hence I'm loosing the calender from the screen as the calender is loaded again.
4. I'm getting the selected date using onselectedChange event handler.
5. The users will have to click the button again if he wants to navigate to another month.
Is there any way to keep the calender on the screen during the month got changed.
I lost the links that someone posted me how to make the gridview to have scroll bars.
I restate my question:I have a gridview to show about 20 records. Now put the gridview into a <DIV>.
Would like to know how do I make it scrollable but keep the header stay in the same position?There is a header for columns in my gridview.
I have a FormView in default insert mode.
When I inserted item to database, the Form refresh and return to all blank or standard selection.
What can I do if I want it keeps the last entered value after inserting record ?
I need this because there are many items to insert and only partial fields need changes from last entered records.
I have a HTML table in a webpage of an ASP.NET website.
I want this table to stay in the screen when I scroll the page.in fact it's like a toolbox for me and I should always have easy access to it.how should I do that?
I've got one columns of check boxes in a GridView, when i select the checkbox entire record(75 columns) is poupulated into formfileds resided just below the gidview. The problem I'm having is that when i selelect 50th record of database(db have 100 recrds) the view state should be on 50th record level but it is scroll over to the toplevel after selecting the checkbox, if user wants to select the 51st record again he scroll to that level.
View 9 Repliesmy gridview doesn't return to readonly mode after an update. i have set the editindex to -1did the databind() for the gridview too. but nothing works.setting keepineditmode to false doesn't work either.he documentation says that the gridview automatically returns to readonly after pressing the update button.my gridview is on a panel, and that panel is on an update panel.
View 6 RepliesNewbie to ASP.net. Programming in C#.I'm querying a SQL database and displaying the results in a gridview. The results can be many records so I need to provide the facility to scroll vertically and horizontally. To display the headers when scrolling I have implemented ( in my asp code) the headers in another table and the data is in another table. I see now I cannot align the column headers with the table data.Appreciate any help to fix this issue. ( What I need is a similar to the freeze function in excel where you can freeze the header while scrolling horizontally and vertically)If this method is not a good one to display headers with data please suggest another methodHere is my ASP code.
<div id="divProjectTableHeaderFullDetail" runat="server" style="background-color: #993300;
height: 40px; width: 770px; margin: 0; padding: 0 ; " >
<table style="font-family: Arial; font-size: 10pt; color: white;" cellspacing="0"
[code]...
I found an interesting discussion here:
[URL]
Quote:
DataSets are sub-par amateur solutions to code your Data layer...Stop Using Them and learn to CODE! :)
What is your opinion of DataSets vs. just stubbing out custom classes and working with those? What are other alternatives?
I'm using Watin in C# console app to crawl websites, there are five console app running at the same time.
The reason I partly use Watin as crawler is because a few websites use javascript(or ajax) to set page content.
Following is the sample code to get a page comment count:
Settings.Instance.MakeNewIeInstanceVisible = false;
using (var browser = new IE(commentLink, true))
{
browser.Link(Find.ByUrl(commentLink)).WaitUntilExists(20);
Span commentSpan = browser.Span("COUNT_TOTAL");
if (commentSpan.Exists)
{
int commentCount;
if (Int32.TryParse(commentSpan.InnerHtml, out commentCount))
{
return commentCount;
}
}
}
My problem is after running these 5 console app for a while (90 min), a lot of IE instances are stayed open (because of timeout or error or IE is busy), so the system is quite slow and need to reboot. How do I change my code to prevent this thing happen and make my apps stay effecient?
i want to create a global session which will stay active until and unless we manually kill it.how to do this in asp.net with c# what i am doing is
HttpContext.Current.Session["UserID"] = someValue;
but in this way the session is lost after some time.
I'm assuming this behavior is due to the postback. I've written a little test page to demonstrate this problem.
http://cm-rosestate.mine.nu/test.aspx
There are three textboxes here, you must enter more than 2 characters for a textbox to validate. When the page loads tab into the first box and type 'abc'. Then tab into the second box and the page will validate. However, when it postbacks you'll be reset into the first textbox again. How can I accomplish a more smooth transition from one control to the next?
I have a form with about 20 textboxes on it, all of which have a customvalidator on them, and it would be much easier if the page were navigable solely by the keyboard without having to lick each textbox every time.Code is available if needed.
I have an image that is possible to click an open up a new browser with the code below.
I wonder how it could be possible to have a cursor over the image when mouseover. I cant find any mouseover event for the image?
[Code]....
I am using a gridview as a dropdown extender for a textbox which works nice. I want to select a row in the gridview and fill in some textboxes with data from that row. I know how to do the Attributes.Add for cells in the RowDatabound event. But I have always passed the cell data to another page as parameters. How can I stay on the same page and fill in the textboxes?
Do I setup a javascript and pass the parameters to it and have it fill in the textboxes? I have other texboxes that the user has entered and need to keep that data there.
On Button Click how to move the mousecursor position in web application???
In case of windows application on button_click i have written the following code:
Point p = new Point();
p.X = 41;
p.Y = 400;
Cursor.Position = p;
This works fine & cursors position also change.
but how to do that on aspx page or in web application?
In my case also on button click i have to move the cursors position.
Is there a way to disable input into a textbox at the same time allow cursor focus?
View 3 RepliesI am having 4 text box in a page. Among that 4 text box, 2nd and 3rd text box are date and it is the control to ajax calendar.
In edit mode, I used to get the value from the data base and assign to these 4 text box and i place the cursor to the first text box.
It is working fine in all the other browser but in IE7, the cursor gets shifted from first to the 3rd text box automatically.
Here, the 2nd and 3rd textbox is for date.
I have a popup window of course through the use of modalpopup extender that searches a record. In the popup window, I have two buttons - a search and a close button. Whenever, I click on the search buttton, the popup window immediately disappear. How am be able to make my modal popup window to stay visible even I click on the search button?
View 2 RepliesI have a Gridview which is inside a Updatepanel which is updated through a Timer Control every 5 seconds.
So every 5 seconds I get new data in the rows. I am facing an issue in which I want to display the whole mult-line content of my Textbox(es).It displays fine but the modal window disappears after the UpdatePanel is updated.
How do I display this pop-up modal window and make it stay while the UpdatePanel continues to update the rows in the background?
Here is part of my code:
[Code]....