|
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.
|
|
|
|
|
document.getElementById(id).style.display="none" for hide ur div.
document.getElementById(id).style.display="inline" for show ur div
Devjit Das.
|
|
|
|
|
I want to save Files of My virtual folder in Client-TEMP Directory automatically when I open the web application..through Code using Dotnet???
|
|
|
|
|
Vanamaindia wrote: I want to save Files of My virtual folder in Client-TEMP Directory automatically
It's not possible because ASP.NET works on server and it can't write any files to client.
|
|
|
|
|
Hi Friends,
Currently i am working on 1 Crystal Report which have 22 pages(22 page design ).
And client requirement is that he must need this report exported in PDF with textboxes in PDF.
Can any one please know me how i can export my report in PDF with textboxes in PDF?
Client don't want this report in word or other Format, He must require only in PDF.
Thanks in advance.
With Regards,
Mayank Prajapati
MCP, MCTS .Net 2.0
|
|
|
|
|
Mayank Prajapati wrote: And client requirement is that he must need this report exported in PDF with textboxes in PDF.
PDF is read only file, moreover it can't contain controls like TextBox.
|
|
|
|
|
Hi,
I want the users of my website to be able to print a datagrid on one of the webpages. Now my problem is that when the user does so one of the columns is cut off due to the page orientation. But if I set the page orientation to landscape manually it prints the entire datagrid.
How do I set the page orientation to Landscape programatically.
Is there some way I could achieve this using the CSS file?
Thanks in advance,
Avesh
|
|
|
|
|
Aavesh Agarwal wrote: How do I set the page orientation to Landscape programatically.
ASP.NET don't have any handle in printing. It's completely browser depended. What you can do is re arrange the grid to fit for printing.
|
|
|
|
|
From what I can gather, since a web service is stateless, then I cannot use global.asax in a web service to store application variables. For example, in classic asp, I could do the following...
-->
Sub Application_OnStart
set g_pcmsrv=Server.CreateObject("PCMServer.PCMServer")
set application("g_pcmsrv") = g_pcmsrv
End Sub
<--
With the above example, I can see and use g_pcmsrv anywhere in the web app.
But the same will not work in a web service....
<--
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application startup
Dim g_pcmsrv As Object = Server.CreateObject("PCMServer.PCMServer")
Application("g_pcmsrv") = g_pcmsrv
End Sub
-->
With the above, I get a 'object not set to a reference' error.
Does anyone know a workaround?
Thanks VM
Paul
|
|
|
|