|
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
|
|
|
|
|
Hi,
I have a datatable returned from BL Which needs to binded to a Gridview. The girdview must have following features.
1. Paging
2. Sorting on clicking Headers
3. Sort Direction image along with header.
|
|
|
|
|
|
In the template of a gridview, I want to get the record value by <%#Eval("id")%> function .
However, the vs 2005 could not compiled.
Why?
|
|
|
|
|
hi all,
I have a labelbox and a text box.its ids are label1 and text1.Similarly i have 75 label and text boxes.I need to insert those values(by row by row) in table.
string std= "insert into Example Values('"+Label1.ID+"','" + text1.text+ "')";
Similarly i need to insert 75 values.
how to do that using for loop?
Plz help me
Thanks in Advance
Sunita ramesh
|
|
|
|
|
1.create a function which takes values to be inserted as arguments in databse to insert rows, and call that function.
*2. create a function which takes a string as argument and decodes that string into individual set of values to be inserted into the table.
(ex)if the table has 2 columns
'column1 value',column2 value'|'column1 value',column2 value'|'column1 value',column2 value'|'column1 value',column2 value'.......
in the sp get the substring seperated by | and insert into the table in a loop.
this method is recomented as it will reduce the number of calls to the databse(we only call the SP once)
Navi
|
|
|
|
|
Hi,
1) Construct an XML file from the front end (ASP.NET).
2) Pass the XML file as a parameter to an Stored Procedure.
3) Write an SP to read the Values from the XML and insert into table.
Sample Insert query to read from xml in SP
Insert into table1(field1,field2,field3,....,field75)
Select * from OpenXml(@intPointer,'/XML1/XML2',2)
With (field1 char(6),field2 char(3),field3 char(15),......,field75 char (8) )
Advantages:
==========
1) No need to create 75 parameters.
2) SP creation is very simple and easy to maintain.
Ram
|
|
|
|
|
i have write the following code for send the mail
but i get the Error
Unable to send to all recipients.
what is the solution for the peried
try
{
MailAddress fromAddress = new MailAddress("mrafi@mydomain.com");
smtpClient.Host = "localhost";
smtpClient.Port = 25;
message.From = fromAddress;
message.To.Add("ggajjar@mydomain.com");
message.Subject = "Feedback";
message.CC.Add("amajumdar@mydomain.com");
message.IsBodyHtml = false;
message.Body = "Test Mail";
smtpClient.Send(message);
}
catch (Exception ex)
{
Response.Write("Send Email Failed." + ex.Message);
}
mohamad rafi
|
|
|
|
|
Here is a simple way of Sending eMails
Imports System.Web.Mail
Try
Dim objEmail As New MailMessage
objEmail.To = txtto.Text
objEmail.Bcc = txtcc.Text
objEmail.From = txtfrom.Text
objEmail.Subject = txtsubject.Text 'your subject
objEmail.Body = txtbody.Text 'your message
objEmail.BodyFormat = MailFormat.Text
SmtpMail.SmtpServer = "144.163.1.33" 'Smtp Server domain name
SmtpMail.Send(objEmail)
lblexception.Text = "Message Sent Successfully"
Catch ex As Exception
lblexception.Text = ex.Message
End Try
Thanks & Regards,
Suresh Dayma
|
|
|
|
|
i am having lan connection there are two-ten machine avalable i want to access my application on different machine for this purpose how can i configure IIS,Please give me detail information about that as soon as
thanks
prabhakar dwivedi
|
|
|
|
|
Hi,
If you mean to publish your application then make a computer in ur LAN, the server. Publish your application there and then you can access this application accross ur LAN by using an IP address of that machine or the name of the machine like this ---
http://192.168.1.1/WebAppName/
http://ServerName/WebAppName/
Hope i got your point !
<marquee>"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
Hi,
Am using skmMenu to create Menu in my page.
But i couldnt succeed in displaying it in the screen.
Am not getting any error.
But the menu couldnt be seen in the form.
Do i have to change any property either in form or in menu control?
The code i used for binidng is:
[Code]
private void Page_Load(object sender, System.EventArgs e)
{
Menu1.DataSource = Server.MapPath("menu.xml");
Menu1.DataBind();
}
[Code]
and in design,
<skmmenu:menu id="Menu1" runat="server" tooltip="Menus" borderstyle="Dashed" width="88px" itemspacing="1"
="" itempadding="1" cellspacing="1" menufadedelay="1" font-names="Verdana" font-size="10px" cursor="Pointer" height="40px" clicktoopen="True" highlighttopmenu="True" layout="Horizontal">
<unselectedmenuitemstyle font-size="10px" font-names="Verdana" backcolor="Red">
<selectedmenuitemstyle font-size="10px" font-names="Verdana" height="28px" forecolor="Blue" borderstyle="None"
="" width="75px" verticalalign="Middle" backcolor="#404040">
Can anyone please help me in resolving it or anyother solution for making a menu?
|
|
|
|
|
Dear Friends,,
Please help me
How we can make Excel like Grid in ASP.NEt 2.0 ?
Please Help me..................
Haridas.R
harisofttech@gmail.com
harisofttech@hotmail.com (online)
harizeenet@yahoo.co.in(online)
"Achievement is not a destination, its a journey "
|
|
|
|
|
|
Word Doc from Database
Hi i am creating an application that help the user to upload his word documents to an sql server database
i want to bind a datagrid to the database so the user can see what he uploaded. also, when the user clicks on the document title it will load it in Microsoft Word so he can read it.
any idea how to bind the datagrid to the documents stored in the databse and how to load a document into Microsoft word?
Nina
|
|
|
|