|
sorry. i didn't see Saranya Devi's post.
|
|
|
|
|
sir the procedure is in code behind and it should call in javascript
|
|
|
|
|
Call your procedure like this:
function getProcedure()
{
var obj
obj=document.getElementById("button2")
button2.click();
}
"severside_handler" is the codebehind function that hander the button's
server click event.
God is always with you.
|
|
|
|
|
var obj
obj=document.getElementById("btngetdata");
obj.click();
i wrote like this and i kept two alerts before and after .but iam getting the two messages in the alert but iam not getting the this obj.click.
|
|
|
|
|
Try btngetdata.click();
God is always with you.
|
|
|
|
|
i posted the answer in your new post..
|
|
|
|
|
Hi i am getting error as:
"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index "
In this error occur in user control...,
In that control i have repeater control...,
In that i bind some datas from my table...,
In my main tab...,
First one contained 4 subtabs and second one contained 2 subtabs...,
Suppose if i select first main tab from that 5th subtab then if i select second main tab...,
It will show this error, becoz second one have only 2 subtabs...,
The pointer will refer the 4th tab in 2nd main tab...,
So,its out of range...,
How to show default the first subtab whenever select another maintab?,
This is my code:
Public Sub SelectSubTab(ByVal index As Integer)
If ((index < 0) _
OrElse (index > SubTabText.Count)) Then
index = 0
End If
ViewState("CurrentSubTabIndex") = index
BindData()
Dim ev As SelectionChangedEventArgs = New SelectionChangedEventArgs
ev.TabPosition = CType(ViewState("CurrentTabIndex"), Integer)
ev.SubTabPosition = index
RaiseEvent SelectionChanged(Me, ev)
End Sub
Help me...,
Regards,
Mageshh
|
|
|
|
|
I think you need to change condition
OrElse (index > SubTabText.Count)) Then
use
OrElse (index >= SubTabText.Count)) Then
Nav
|
|
|
|
|
Try
index > SubTabText.Count - 1
Regards,
Riza Azmi
Simple thing should be simple, complex thing should be possible
|
|
|
|
|
No its not working...,
If its with out this statement:
ViewState("CurrentSubTabIndex") = index
Then it will work...,
But using this above statement i am doing some other functions...,
So that statement must...,
So plz tell me some other solution...,
Regards,
Mageshh
|
|
|
|
|
Hi,
My website is in ASP.NET 2005 and C#. I am facing a problem in TreeView control's SelectedNodeChanged event. due to some unknown reason this event is not firing for all nodes, sometimes it works ok for a node but some times it dosnt work at all! i added nodes at design time and assigned them the URL's. Kindly tell me what is the reason of this problem? Do i have to set some property?
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
following is the expression
[-+]?[0-9]*\.?[0-9]*
i am using to validate for the given examples.
12
12.34
23.456
0.5
0.0
0
The validation string is working fine , if i use the vaidation control.But fails in case , i use it in the source file and using the regexp
there in the source file , the code is
var reg = new RegExp("[-+]?[0-9]*\.?[0-9]*");
reg.test(txt1.value)
txt1 is the textbox .i am getting the object also .everything is working fine, except in case of regular expression in the source file.otherwise the regular expression control is doing well.
My question is y at the source file side the regular expression is not working
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: var reg = new RegExp("[-+]?[0-9]*\.?[0-9]*");
reg.test(txt1.value)
if ( txt1.value.search(/[-+]?[0-9]*\.?[0-9]*/) == -1 )
return false;
else
return true; Try the above code. In your code new RegExp("[-+]?[0-9]*\.?[0-9]*"); , no need of putting the expression in double quotes. Start and end the expression with / and /.
I see you have improved the style of asking question. Good work
|
|
|
|
|
N a v a n e e t h wrote: txt1.value.search(/[-+]?[0-9]*\.?[0-9]*/) == -1
after inserting the numeric value , i am getting false out of the above expression, y this is happening when using the regular expression at the source file side?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
i m trying that i have one string "260px" this is got by
panel23.style["top"]..... i m trying to fetch 260 from this string , for further manupulations.
yogesh
|
|
|
|
|
Hi,
If your string always looks like "250px" or "10px" , i.e. its combinatiob of numeric and "px" then you can replace "px" with "".
So you will get only numeric string.
string str = "120px";
str = str.Replace("px","");
Thanks,
Sun Rays
|
|
|
|
|
Whenver i am clicking on a button in a webpage , the cursor is going up...
how can i fix the cursor position using asp.net
|
|
|
|
|
Hi,
U can set page property
MaintainScrollPositionOnPostback = "true" in Page tag in aspx page.
Thanks,
Sun Rays
|
|
|
|
|
i am using the dotnet1.1
i used the smartnavigation property..even those the page position is not setting properly
|
|
|
|
|
|
hi...........those sites are for dotnet2.0
|
|
|
|
|
I have a hide and show div .
How to hide the div when i click any where on the browser.
|
|
|
|
|
Use MouseOnClick event to hide the div.
Hide the div as below:
document.getElementById("div1").style.display="none"
God is always with you.
|
|
|
|
|
I know document.getElementById("div1").style.display="none" will hide when on particular mouse click but i want to hide the div when clicked on any where on the browser.
wht is the event will be raised when clicked on any where on thw browser.
how to add that event to hide function .
|
|
|
|
|
Call on onkeypress event in the body tag.
< body onkeypress="Checkkeycode();" >
function checkkeycode()
{
if( event.keycode==13 )
{
return false;
}
else
{
return true;
}
}
//Keycode value for enter key is 13.
God is always with you.
|
|
|
|