|
iam having a dropdown list in which i defined 1to12 numbers .if users wants more than 12 number how i can allow user to enter the number he wants in the dropdown list.and also using javascript how we can get the user entered value.
-- modified at 1:46 Saturday 20th October, 2007
|
|
|
|
|
You can have an item in the dropdownlist saying "Add More value". On selection of that Item, display a textbox and Button. On the click of the Button write a javascript which will add the entered value to the DropDownList.
Regards - J O N -
|
|
|
|
|
Please take your time answering this - it isn't urgent ( Sorry Pete if you're reading...!)
On my dev box I have MS Word installed and all my interop stuff through ASP.NET / C# works a treat. I now have to implement on the client's IIS box and realised they don't have MS Word on theirs. They have a corporate licence, so that isn't an issue, but what do I need to install as a minimum to create MS word docs? Do I have to install MS Word as a whole, or can I just do the PIA?
I am googling for this, but if anybody has experience of this before it would be a help.
[edit] I have to install MS Word, so I have, but now getting Insufficient memory diskspace to display font error. There is 54Gb HD space free and 2G Ram after clean reboot. Shed loads of KB articles on this, but none seem to apply. Buggers. Another late night.. [/edit]
Cheers
Malc
-- modified at 18:31 Friday 19th October, 2007
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
This is the validator.
<asp:CustomValidator runat="server" id="DelFunctionCustomValidator" ClientValidationFunction= "ValidateDelegFn"
ErrorMessage="Please assign Delegate to any function" ForeColor="White" >*</asp:CustomValidator>
The javascript function is:
function ValidateDelegFn()
{
if((document.getElementById('<%=checkbox1.ClientID%>').checked== false)
{
return(false);}
else
{return(true);}
}
From code behind, addDelegateImageButton.Attributes.Add("onclick", "ValidateDelegFn()");
Still, it gets into addDelegateImageButton_Click(object sender, ImageClickEventArgs e) function.
How do I make it get into the addDelegateImageButton_Click function only if ValidateDelegFn returns true?
Please help
Thanks
|
|
|
|
|
ss.mmm wrote: From code behind, addDelegateImageButton.Attributes.Add("onclick", "ValidateDelegFn()");
addDelegateImageButton.Attributes.Add("onclick", "return ValidateDelegFn();");
Regards - J O N -
|
|
|
|
|
I have been tyin to learn asp.net 2.0 going on 4 months now. I have tried to build several online photo albums with no success. I have tried to find a teacher...no success. Can anyone get me going in the right dirrection.
Sincerly
Depressed in NorthEast Ohio
|
|
|
|
|
learningman wrote: I have been tyin to learn asp.net 2.0 going on 4 months now
Wow. I have done in 2 days. Already knew how to do in C#
learningman wrote: have tried to build several online photo albums with no success.
Where did you stopped? Did you asked on cp?
learningman wrote: Can anyone get me going in the right dirrection.
Did you already did c# or vb.net development? if you have, then you know about 80% of the asp.net development. Then i recommencd an online video training. But that comes with price, or if you know how to get it.
Are you woried about skinfile, Cascading Style Sheet or javascript=
-- modified at 2:51 Saturday 20th October, 2007
|
|
|
|
|
just a small session on English Grammar.
dear Saksida Bojan
'did' cannot be used with past for eg: 'did u asked' is absolutely wrong.it shud be 'did u ask'. I used to go with this same mistake too often till someone who made a change in my life pointed out the exact issue.thats how we can learn,i guess.
Regards
Sean Archer
http://www.codepal.co.nr
|
|
|
|
|
do u really need a teacher? i can help u out.
btw what will be my fee?
Regards
Sean
http://www.codepal.co.nr
|
|
|
|
|
Does any one know how i can make a page post data from a database without the submit button being clicked. It will automatically do it when the database has been modified or updated or will post after a time interval
|
|
|
|
|
1. you can use javascript setTimeout to call a function to post back automatically after a set time. or
2. you can add a meta tag for refresh=time
-----
|
|
|
|
|
WHICH WILL BE MOST PRACTICAL BECASUE I WANT IT TO POST BACK AS SOON AS NEW DATA IS FOUND IN A DATABASE. wILL IT NOT BE TOO MESSY TO JUST KEEP REFRESHING THE PAGE??HAVE YOU GOT ANY SAMPLE CODE FOR THE JAVASCRIPT SOLUTION OR ANY RESOURCES I CAN RESEARCH? THANKS
|
|
|
|
|
afaik, the client (browser) has no way to know if the data has changed on the server (database) unless you go post back the page to the server.
in the head section of asp page type this
setTimeout(postbackPage, 60000); // call postbackPage after 1 minute
function postbackPage() {
// submit the form
document.formname.submit();
// OR you can call click event of submit button
document.submitbutton.click();
}
-- modified at 15:11 Friday 19th October, 2007
-----
|
|
|
|
|
U are a Genius!!!I take it this refreshes the whole page...in order to reduce time it refreshes can i just refresh the table that holds the information.
|
|
|
|
|
in that case you have to use AJAX, if you know AJAX then convert your page to AJAX enabled page otherwise whole page has to be refreshed.
-----
|
|
|
|
|
ur requirement is growing as and when u find the solution for the previous question.
Regards
Sean
http://www.codepal.co.nr
|
|
|
|
|
I have an asp page wichh submit two fields, title and contents. Now if user types single code ('), or semi-colon (;) and replace (the word REPLACE) then on submitting the form, page crashes.
Any help please..
Note: it is working fine on development server (win 2003) but crashing on production server (win 2000)
-----
|
|
|
|
|
Please don't cross post.
I replied in the web development forum.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
since single quote is a reserved character in SQL, u need to replcae it with some other character before inserting into the DB.u can easily use a simple 'replace' method.
like
replace("'","~")
Regards
Sean
http://www.codepal.co.nr
|
|
|
|
|
Thanks Sean. But this is not the problem, please see this for complete details.
-----
|
|
|
|
|
hi to all,
i have used this code wht is wrong with it plz tell me.
try
{
System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
mail.To = "yogesh_softeorld@yahoo.co.in ";
mail.From = "yogeshdewangan97@gmail.com";
mail.Subject = "subjectdfsdfsdfdsfdsfd";
mail.Body = "bodygfsdffds";
mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"] = 25;
mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = 2;
mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 1;
mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = "yogeshdewangan97@gmail.com";
mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "*********";
mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpusessl"] = "true";
//SmtpMail.SmtpServer = "smtp.gmail.com";
System.Web.Mail.SmtpMail.SmtpServer = "smtp.gmail.com";
SmtpMail.Send(mail);
}
catch (Exception ex)
{
litStatus.Text = ex.ToString();
}
there is an exception generated....
System.Web.HttpException: The transport failed to connect to the server. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture) at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Type type, Object obj, String methodName, Object[] args) at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at _Default.Button1_Click(Object sender, EventArgs e) in e:\Yatra\Default.aspx.cs:line 44
wht can i do for sending email to client using coding
thank u (adv)
yogesh
|
|
|
|
|
|
hi
add namespace -using System.Net.Mail;
MailMessage Msg = new MailMessage();
SmtpClient MailObj = new SmtpClient('Gmail host name[like mail.gmail.com]');
MailObj.Credentials = new System.Net.NetworkCredential(username, password);
MailObj.DeliveryMethod = SmtpDeliveryMethod.Network;
Msg.From = new MailAddress("yogeshdewangan97@gmail.com", "yoges");
Msg.To.Add(new MailAddress("yogesh_softeorld@yahoo.co.in");
Msg.IsBodyHtml = true;
Msg.Subject = " cxczx";
Msg.Body = "zxcxzczc";
MailObj.Send(Msg);
Jintal Patel
|
|
|
|
|
hi friend
i have edting the value of app.config in windows application. code work properly its not give any error but its not change the value of app.config
plese help code:-
Public Sub asaas()
Dim XmlDoc As New XmlDocument()
'XmlDoc.Load(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile)
Try
XmlDoc.Load(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile)
' Navigate Each xml Element of app.Config file
Dim NodeList As System.Xml.XmlNode = XmlDoc.SelectSingleNode("/configuration/applicationSettings/filesave.My.MySettings/setting/value")
' Save app.config file
NodeList.InnerXml = TextBox1.Text
XmlDoc.Save(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile)
Catch ex As Exception
MsgBox(ex.ToString)
End Try
app.config:-
(?xml version="1.0" encoding="utf-8" ?)
(configuration)
(applicationSettings)
(filesave.My.MySettings)
(setting name="filesave_localhost5_Service" serializeAs="String")
(value)http://localhost/file/Service.asmx(/value)
(/setting)
(/filesave.My.MySettings)
(/applicationSettings)
(/configuration)
plese help argent
Piyush Vardhan Singh
|
|
|
|
|
Did you tried to get what is in InnerText, before assining a value, the problem coud be before assaining value. Note that i can't try, because i dont have accsess to my pc.
Did you checked you gave app.config write permision?
|
|
|
|