|
Hello All,
I need to do client side automation of PowerPoint.Can somebody please help me out? Any pointers to this will also be helpful.
Thanks,
Avanika
Thanks,
Avanika
|
|
|
|
|
|
Guys,
When I try to test string.substring(n,i) I get ArgumentOutOfRangeException exception for some other values of the substring. The reason is that I sometimes test a string that is smaller than the range given or even null. I need to keep on testing that in my program. How do I handle this exception so that I keep on executing without throwing this exception.
Urgent, please help.
Vilunjike.
manv
|
|
|
|
|
You need to check the length of the string prior to that piece of code.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Yes of course, I have been doing that. However, it's cumbersome. I thought I can suppress the dialog box of the exception by passing some values to the properties of the thrown exception and continue execution, is there any way?
manv
|
|
|
|
|
hello
any body knows how to implement a payment through 2checkout.com in asp.net.
i have did it with paypal but how to do it with checkout.com
thanx
|
|
|
|
|
I am new to asp.net anybody plz help me how to set cursor in the textbox when i press left mouse on textbox using javascript.
E-Ramu
|
|
|
|
|
What you want to do, do you want to set the focus to the textbox or something else?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Initially i have an empty textbox and it doesnt have focus.i want to place cursor in the textbox when i click on the textbox
E-Ramu
|
|
|
|
|
Whenever you will click on the textbox the cursor will automatically come the textbox.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Ramu,
To set a focus when web page is loaded you can use a BODY onload event and javascript client code.
Have a web form with ID="Form1" with some controls, including a textbox named TextBox1. To set a focus to TextBox1 when page is loaded you can use this javascript code:
<body onload ="javascript:document.Form1.TextBox1.focus();">
Page.RegisterStartupScript("SetFocus", "document.getElementById('" + TextBox1.ClientID + "').focus();");
ASP.NET 2.0 simplified this problem and introduce a concept of "default focus". There is a new DefaultFocus attribute that allows you to easily set focus to desired controls. The sample HTML code bellow will set focus on control named textbox1:
<form id="Form1" defaultfocus="textbox" runat="server">
<asp:textbox id="textbox1" runat="server"/>
<asp:textbox id="textbox2" runat="server"/>
<asp:button id="button1" text="Button1" runat="server"/>
</form>
-- modified at 6:10 Tuesday 22nd August, 2006
with regards
Satips
|
|
|
|
|
In the Page_Load Event, Type in
txtreset.Attributes("OnFocus") = "document.Form1.txtreset.value='';"
Thanks & Regards,
Suresh Dayma
|
|
|
|
|
JavaScript: How to convert string to date and Compare two dates.
eg. If date1 is 08/18/06 and date2 is 08/19/06
Then it should give alert that "Date2 is greated than Date1:"
|
|
|
|
|
|
Check this out ... this will solve ur problem
function CheckDate(oSrc,args)
{
args.IsValid=true;
date1 = new Date();
date2 = new Date();
diff = new Date();
var objDOB = document.getElementById("txtHidDOB");
var AppDate = objDOB.value;
if(AppDate != "")
{
var now = new Date();
var SysDate = parseInt(now.getMonth()+1)+"/"+now.getDate()+"/"+now.getFullYear()
FromDateObj = new Date(AppDate + " " + "00:00:00");
date1.setTime(FromDateObj.getTime());
//alert(date1.getTime())
currDateObj = new Date(SysDate + " " + "00:00:00");
date2.setTime(currDateObj.getTime());
//alert(date2.getTime())
var DateDiff = date1.getTime() - date2.getTime();
//alert(DateDiff);
if(DateDiff >= 0)
{
args.IsValid=false;
}
}
}
|
|
|
|
|
HI all
In my Wepage i have 1 asp:Textbox and HTML Button
In the HTML Button click i want to call the Textbox1.Text
How can i call
MY CODE
-------------
TEXTBOX1
----------
asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 232px; POSITION: absolute; TOP: 176px" runat="server" /asp:TextBox
HTML BUTTON
-----------
input id="Button1" style="Z-INDEX: 101; LEFT: 232px; WIDTH: 104px; POSITION: absolute; TOP: 216px; HEIGHT: 24px"
onclick="window.open('<%Textbox1.text%>','mywindow','width=400,height=200')"
type="button" value="Open Window" runat="server" Text="Open window"
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
use (document.getElementById("Textbox1.text")).value insted of <%Textbox1.text%>
Navi
|
|
|
|
|
Hi THX for reply
I tryed this one but it is not working
INPUT type="button" value="New Window!" onClick=window.open('(document.getElementById("Textbox1.text")).value','mywindow','width=400,height=200,location=yes')
style="Z-INDEX: 104; LEFT: 176px; POSITION: absolute; TOP: 264px"
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
What error are you getting try using it with single quotes.
BTW what exactly is the use of this:
removed=
Best Regards,
Apurva Kaushal
|
|
|
|
|
HI
I am trying to open a new window on this way
The client enter a page in the asp:textbox
The textbox.text i want to call in the HTML button to open the window
It is not opening the window
INPUT type="button" value="New Window!" onClick=window.open('(document.getElementById("Textbox1.text")).value','mywindow','width=400,height=200,location=yes')
style="Z-INDEX: 104; LEFT: 176px; POSITION: absolute; TOP: 264px"
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
have you tried putting textbox1.text in single quotes.
But i am still unsure about "removed" can't you use onclick event insipte of this.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Yes i tryed
Not Opening
Just i want to try on this way
And
Can u help me in this
How can i open a window without popupblocking
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
If i have understood you correctly then you want to open a page which the user is entering in the textbox, on the click of the html button.
If this is the case then one way what i can sugest you is call a function on onclick event of the button something like this:
Your Html button:
<input id="Button222" style="Z-INDEX: 101; LEFT: 200px; WIDTH: 104px; POSITION: absolute; TOP: 352px; HEIGHT: 24px"
onclick="javascript:Test();" type="button" value="Open Window" runat="server" Text="Open window">
The javascript function:
<script language=javascript>
function Test()
{
var u = document.getElementById("TextBox1222").value;
window.open(u,'mywindow','width=400,height=200')
}
</script>
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi
THX
I got it
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|