|
hey,
try the following
DateTime.DaysInMonth(YEAR,MONTH)
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
I need to post some data from the mail message body to ASP.Net Page.
The mail contains few radio buttons and a submit button. On the click of submit button i need to post data to the ASP.Net Web page.
Ashwani
|
|
|
|
|
try this
MailMessage objEmail = new MailMessage();
objEmail.To = txtTo.Text;
objEmail.From = txtFrom.Text;
objEmail.Cc = txtCc.Text;
objEmail.Subject = "Test Email";
objEmail.Body = txtName.Text + ", " +
txtComments.Text;
objEmail.Priority = MailPriority.High;
//SmtpMail.SmtpServer = "localhost";
try{
SmtpMail.Send(objEmail);
Response.Write("Your Email has been sent sucessfully -
Thank You");
}
catch (Exception exc){
Response.Write("Send failure: " + exc.ToString());
}
|
|
|
|
|
My question is different. I know how to send email.
Actually email is send to the user. The body of the mail contains the HTML tages that forms the complete html page.
Now I want to post the information from that HTML page to ASP.Net page.
Ashwani
|
|
|
|
|
Hi
Make the action attribute of your form to your aspx page. Change method to get. And in ASPX page get these values using Request.QueryString method. But I am not sure that this will work because, usually email providers won't allow any executable scripts on the body. That will cause severe security problems. Some providers may spam this type of messages.
Tell me on what scenario you need to do like this ? Instead of doing this you can send a link where users can do the same.
Happy Programming
|
|
|
|
|
Hi,
I assigned OnTextChanged event to a TextBox using the following code:
<TD><asp:textbox id="txt4" Width="400px" Runat="server" OnTextChanged="NumericOnly(event);"></asp:textbox></TD>
But i'm receiving this error:
"Compiler Error Message: CS1513: } expected"
Could anyone please tell me why this happens?
Regards,
Blumen
|
|
|
|
|
The compiler expected a closing curly brace (}) that was not found.
Please check with the Closing Braces and run your application.
Regards,
Satips.
|
|
|
|
|
Is numericOnly your javascript function?
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
yes, its a JavaScript function:
function NumericOnly(p)
{
if(window.event.keyCode>=48 && window.event.keyCode<=57)
{
//window.event.keyCode=true;
return true;
}
else
{
window.event.keyCode=false;
return false;
}
}
But this happens for RadioButton CheckedCHange event also.
But with onKeypress of textBox there is no error
|
|
|
|
|
hai friends,
i got following error while trying to show crystal report from my web application,in web server
Server Error in '/' Application.
------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.
Please review the following URL and make sure that it is spelled correctly
do have any solution, help ?
|
|
|
|
|
Please check with the URL which you have reffered to open the Document.
Regards,
Satips.
|
|
|
|
|
hai friend,
the same is working on local machine..
after uploading, when i tries to access crystal report from my site,
it shows that error.. I think ,the following part "(or one of its dependencies) could have been removed" in error description is important.
do you have any idea about dependencies ?
can u help me ?
thanks satips...
|
|
|
|
|
Hello to every One,
i hav created a page in asp.net 1.0 where i use 17'inch monitor screen and when the same project is opened in smaller monitor the every time we have to scroll down the page.
Can anybody tell me what should i do so that different users with different monitor screen can see the page according to their monitor size.
Thank You..
|
|
|
|
|
instead of using pixel size in ur web page design,plz use percentage..
eg:
" table width=75% height=80%
like...
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
But how and where to use it
|
|
|
|
|
In the CSS you would have mentioned abt the Pixels and in that change it to % and check the webpage.
Regards,
Satips.
|
|
|
|
|
I had alerady post the answser few weeks ago,
just do the following thing to set your screen resolutions on any monitor (either 15/17 inchs)
Firstoff all U should have to pur your all control within table tag means in & second thing U should have to give your width of the control in % (percentage) not in Pixcel(100px)
did u do that ????
if you directly drag and drop the controls on the webform then they may be get disturb after change in resolution....
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
how to parse date using java script? provide code to implement date parsing same as microsoft access .
|
|
|
|
|
myDate = new Date()
myDate.setTime(Date.parse("July 2, 2007"))
document.write(myDate)
Output:
Tue Jul 2 00:00:00 UTC+0100 2007.
Regards,
Satips.
|
|
|
|
|
how to convert any date format into mmddyyyy format? like july 5th 2007 or 5th july 2007 or 05/07/2007.
|
|
|
|
|
deepalititi wrote: how to convert any date format into mmddyyyy format? like july 5th 2007 or 5th july 2007 or 05/07/2007.
Javascript.
Date Format [^]
Regards,
Satips.
|
|
|
|
|
I have my web app developed in ASP.NET 2.0 and runs on IIS 6.0 and IE 6.0. Is it possible to configure my application to run on IIS 7.0 without making changes in the code itself? IIS 7.0 provides IIS6 Management compatibility component for backbard compatability which i Installed. After that my setup/installer started working and it installed the application on my machine. I am using Windows Vista Business Edition and i have installed everything under IIS except Fax services.
I am stuck with configuring Integrated Windows Secruity in IIS 7.0 for my website. My application doesn't allow anonymous access but uses only windows authentication. I am only able to see three options in the IIS 7.0 Authentication. Anonymous, ASP.NET and Forms. i tried different combinations but my web pages are not opening... either i get HTTP 401.2 or HTTP 401.3 error. It's says unauthorized user or authentication headers are not correct ....
One of microsoft's article mentions that you would be able to see option for Windows Authentication asl well in your IIS Manager but i can't see this option.
Any idea? In short I just want my previous IIS6 application (.NET 2.0) to run on Vista Business.
@!$(-)@ $@r£r@Z
|
|
|
|
|
how to add elements dynamically to select components (HTML) using java script.
var ni=document.getElementById('FieldSelect');
var newdiv=document.createElement('div');
newdiv.setAttribute('id','Catcode');
ni.appendChild(newdiv);
vijaya
|
|
|
|
|
opts=document.getElementById('FieldSelect').options<br />
var optn=document.createElement("OPTION");<br />
optn.text = "text";<br />
optn.value = "value";<br />
opts.options.add(optn);
Best regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
it will not insert data
vijaya
|
|
|
|