|
Is personalization enabled for the current user ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
how to enabled personalization ... can you explain to me...
|
|
|
|
|
nithydurai wrote: how to enabled personalization ... can you explain to me...
I searched with the error message and got this[^]. If you really don't know to search, try this[^]
|
|
|
|
|
I want to send email from localhost using ASP.NET. At first I installed SMTP server from IIS. Now I want to access localhost by following command http://localhost/ as a test.After this command a username and password window is appeared now.But I don't know which username and password should provide.
shahdat
|
|
|
|
|
|
In the javascript below I get the error "Microsoft JScript runtime error: 'PersonalWebSite1.UserService' is null or not an object".
function onAddUser(e){
var email = $get("<%= txtUserEmail.ClientID %>").value;
var password = $get("<%= txtPassword.ClientID %>").value;
var firstName = $get("<%= txtFirst.ClientID %>").value;
var lastName = $get("<%= txtLast.ClientID %>").value;
var address1 = $get("<%= txtAddress1.ClientID %>").value;
var address2 = $get("<%= txtAddress2.ClientID %>").value;
var city = $get("<%= txtCity.ClientID %>").value;
var state = $get("<%= ddlState.ClientID %>").value;
var zip = $get("<%= txtZip.ClientID %>").value;
var parentElement = e.target.parentNode;
PersonalWebSite1.UserService.WriteUser(email, password, firstName, lastName, address1, address2,
city, state, zip, onWriteUserSuccess, onWriteUserFailure, parentElement);
e.preventDefault();
return false;
}
The web service exists and works correctly when loaded directly. When I view the PersonalWebSite1 name space with debug intellisence the web service is not included as a method. Does anyone have any ideas why this may occur?
Thanks,
Steve
|
|
|
|
|
What have you done to make you feel like javascript will know how to access this web service ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
The problem was that I did not register the web service with the script manager. Problem solved.
Thanks,
Steve
|
|
|
|
|
Hi all,
I have some title in database and some related information.
i want to list title in page, and when user click on title link, related content come below title.
How i can do this?
Thank you
Hoda
|
|
|
|
|
You want it inline ? You'd probably use a repeater, and write out all the data in hidden divs, or you'd make an AJAX call to get your data.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Forms Authentication is working fine in my app except for one thing.
If I try to go directly to a subdirectory page, a 'Resource not found' error occurs because it tries to find login.aspx in that subdirectory.
For example:
If I go to http://myapp.com/securepage.aspx, I go directly to the login page like I should.
If I go to http://myapp.com/subdir/securepage.aspx, the 'Resource not found' error occurs saying that it could not find http://myapp/subdir/login.aspx.
In web.config, I tried setting <authentication><forms loginurl="login.aspx">, then "/login.aspx", then "~/login.aspx".
What do I set to always have the application go to login.aspx in the root directory? Thanks.
|
|
|
|
|
I have two FileUpload button in my form which I put two custom validators. The issue is, when I click on first upload button, the second one also fires and says that it is required field or the similar message. Any idea what is going on?
I need to fire only those custom validator belonging to that particualr control. Here is the code:
<asp:FileUpload ID="MPNCPNFileUpload" runat="server" />
<asp:Button ID="MPNCPNFileUploadButton" runat="server" OnClick="TabFileUploadButton_Click"
Text="Upload" /></td></tr>
<tr><td><asp:CustomValidator ID="TabFileUploadErrorCustomValidator" runat="server" Display="Dynamic"
ErrorMessage="CustomValidator"
OnServerValidate="TabFileUploadedCustomValidator_ServerValidate">TextFile with MPN-CPN Details should
be uploaded</asp:CustomValidator>
<asp:FileUpload ID="DocumentFileUpload" runat="server" />
<asp:Button ID="DocumentUploadButton" runat="server" OnClick="DocumentUploadButton_Click"
Text="Upload" /></td></tr>
<tr><td><asp:CustomValidator ID="DocumentUploadedCustomValidator" runat="server" Display="Dynamic"
ErrorMessage="CustomValidator"
OnServerValidate="DocumentUploadedCustomValidator_ServerValidate">Document
must be uploaded</asp:CustomValidator>
protected void TabFileUploadedCustomValidator_ServerValidate(object source, ServerValidateEventArgs args)
{
CustomValidator cv = (CustomValidator)source;
args.IsValid = !String.IsNullOrEmpty(System.Convert.ToString(ViewState["PartsDetailFileName"]));
}
protected void DocumentUploadedCustomValidator_ServerValidate(object source, ServerValidateEventArgs args)
{
CustomValidator cv = (CustomValidator)source;
args.IsValid = !String.IsNullOrEmpty(System.Convert.ToString(ViewState["DocumentFileId"]));
}
pls help.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hi meeram395,
Validation groups might solve your problem. So if you change the first button and the custom validator like so:
<asp:button id="MPNCPNFileUploadButton" runat="server" onclick="TabFileUploadButton_Click" text="Upload" validationgroup="ValGroup1" xmlns:asp="#unknown" />
<asp:customvalidator id="TabFileUploadErrorCustomValidator" runat="server" display="Dynamic" errormessage="CustomValidator" onservervalidate="TabFileUploadedCustomValidator_ServerValidate" validationgroup="ValGroup1" xmlns:asp="#unknown">
</asp:customvalidator>
and then for the second button and custom validator:
<asp:button id="DocumentUploadButton" runat="server" onclick="DocumentUploadButton_Click" text="Upload" validationgroup="ValGroup2" xmlns:asp="#unknown" />
asp:CustomValidator ID="DocumentUploadedCustomValidator" runat="server" Display="Dynamic" ErrorMessage="CustomValidator" OnServerValidate="DocumentUploadedCustomValidator_ServerValidate" ValidationGroup="ValGroup2">
So the first button will only validate ValGroup1 and the second button will only validate ValGroup2. I hope this helps.
Ryan
|
|
|
|
|
So I need to make modification only in aspx page? There is no change in the code-behind? I mean no change in ServerValidate event?
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
No, you shouldn't need to change the code-behind.
|
|
|
|
|
Sorry for the late reply. It worked. Thank you very much.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
To solve this issue, you can set "ValidationGroup" property of each control.
Try to set MPNCPNFileUpload, MPNCPNFileUploadButton and TabFileUploadErrorCustomValidator controls "ValidationGroup" property to "2" and
DocumentFileUpload, DocumentUploadButton and DocumentUploadedCustomValidator controls "ValidationGroup" property to "3".
hope this will help you.
Regards...
Vijay Jain
|
|
|
|
|
Thanks very much. It worked.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
There is a Property called ValidationGroup.
Using this property should solve your problem.
Below is a sample:
<asp:fileupload id="MPNCPNFileUpload" runat="server" validationgroup="ValGrp1" xmlns:asp="#unknown">
<asp:button id="MPNCPNFileUploadButton" runat="server" onclick="TabFileUploadButton_Click" text="Upload" validationgroup="ValGrp1" xmlns:asp="#unknown">
<asp:customvalidator id="TabFileUploadErrorCustomValidator" runat="server" display="Dynamic" errormessage="CustomValidator" onservervalidate="TabFileUploadedCustomValidator_ServerValidate" validationgroup="ValGrp1" xmlns:asp="#unknown">
TextFile with MPN-CPN Details should be uploaded
|
|
|
|
|
Thanks to everyboyd. It got worked.. Thanks again.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
hi guys,
i try to send a mail like this:
MailMessage mailMsg = new MailMessage();<br />
mailMsg.From = new MailAddress("localhost", "Webmaster");<br />
mailMsg.To.Add(new MailAddress("localhost", "Client guy"));<br />
mailMsg.Subject = "Message Subject";<br />
mailMsg.Body = msgBody;<br />
mailMsg.IsBodyHtml = true;<br />
mailMsg.Priority = MailPriority.High;<br />
<br />
SmtpClient smtp = new SmtpClient("localhost");<br />
smtp.Send(mailMsg);
but then i get this error:
<code>The specified string is not in the form required for an e-mail address.
The smtp has already been set up from IIS. i just want to test how to send mail on my local system. how do i do this?
He who goes for revenge must first dig two graves.
|
|
|
|
|
Creamboy wrote: The specified string is not in the form required for an e-mail address.
This error means, there is something wrong with the email address you using. Make sure the email address is correct.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Yusuf.A wrote: This error means, there is something wrong with the email address you using. Make sure the email address is correct.
I know that. I'm only really asking: what do i put in there to send a mail to my local server?
He who goes for revenge must first dig two graves.
|
|
|
|
|
valid email address.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Creamboy wrote: mailMsg.From = new MailAddress("localhost", "Webmaster");
mailMsg.To.Add(new MailAddress("localhost", "Client guy"));
Change "localhost" to a valid email address.
|
|
|
|