Ok, this is the HTML of the page ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta...
No i didn't crack it... i have two test page and the last code refers to the second one.
This is the HTML section for the script :
function SaveObjID(OBJID)
{
document.getElementById('ObjectId').value = OBJID ;
}
function Scroll(){
var ObjId = document.getElementById('ObjectId').value...
Ops, in the code before read ObjectId for ScrollPos.
No, all edit button id have the same structure , change only the number (ctl0, ctl1, ...) (the id is the client id of any button as is in the HTML code of the result page).
Look at this:
function Scroll(){
var ObjId = document.getElementById('ScrollPos').value;
document.getElementById('UcEditGridCarico_DG1__ctl8_btnEdit').scrollIntoView();
alert(ObjId);
}
When i click any of the edit button in grid different from UcEditGridCarico_DG1__ctl8_btnEdit the grid scrool...
Well, this is what happened (tested with debug) when i click the edit button in the grid :
- The page load event handler is executed
- The UserControl (my GRID) page load event handler is executed
- Datagrid's ItemDataBound (i re-bind my grid)
- the scroll function (within the Page ) stops with...
On datagrid item databound
When the grid is bounded i attach the script code to each edit and cancel button in order to reposition that row into the DIV where the grid is placed.
When the user click the edit button the id of the button is saved into the hidden field and then, after postback...
Yes, initially i wrote something like that. It's always the same... the variable has the correct value,but it seems it can't find the object.
But if i write document.getElementById('ObjectID') = 'ucEditGrid_DG1__ctl5_btnEdit' into the SaveObjId function, the scroll function works well.
hi
i write this code :
VB.NET Code
Private Sub DG1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DG1.ItemDataBound
If (e.Item.ItemType = ListItemType.Item) Or (e.Item.ItemType = ListItemType.AlternatingItem) Then...
I tried to write this code too :
VB :
Private Sub DG1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DG1.ItemDataBound
If (e.Item.ItemType = ListItemType.Item) Or (e.Item.ItemType = ListItemType.AlternatingItem) Then...
Hi,
i have two div in my asp.net page and a datagrid in each one of them.
when i scroll a div and then edit an item the grid scroll back on top, so i must return to the selected item.
How can i make thi automatically with a script?
I tried this but it doesn't work :
function...
Hi,
in my web form i have a paged datagrid .
I'd like to make some operation (client side) when the user changes the page.
How can i catch this event client-side?
Thank you
I have up to 5 nested group in my report (crystal report 9)
GROUP A
GROUP B
GROUP C
GROUP D
GROUP E
DETAILS
I want the innermost group header (GROUP E) wich contains the detail's column name to be repeated at the beginning of each page . I selected a NEW PAGE AFTER for...
Hi,
i'm facing my first report with Crystal Report 9 and .NET
The question is : how can i remove (or add) a group to an existing report programmatically?
Hi
How is it possible to join a function returnin a table with a table?
If i write :
Select Document.IdDoc, F.Id
From Document inner join dbo.FNC_GetData(Document.IdDoc) F on Document.IdDoc = F.IdDoc
i get an error "Incorrect syntax near '.'"
If i write
Select Document.IdDoc, F.Id
From...
I have a problem with .net
When i try to debug my project it tris to download a .js file (of a componetn i use in my pages). it ask me to load or save that file. Either i load or save it... the debug doesn't start.
How can i resolve this problem?
That component is used in other pages and no...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.