|
there must be exception in your dll if you do syntax mistake then compiler wont allow you to build it...
so only in case of exceptions it give message built succeded...
umerumerumer
|
|
|
|
|
Hi
I am trying to invite my remote webservices using Javascript from sharepoint with the follwoing code: but everytime I get Access is denied error.
httpReq.open('post',url, true);
httpreq.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
httpreq.setRequestHeader("SOAPAction","http://schemas.microsoft.com/sharepoint/dsp/queryRequest");
postparams = "method=GetStructureWithPublications&structureId="+StructureId+"&language="+Language;
httpreq.onreadystatechange = function()
{
var done = 4, ok = 200;
if (request.readyState == done && request.status == ok)
{
if (request.responseText)
{
vtaTree.GetDataCallBack(request.responseText);
}
else
{
vtaTree.GetDataCallBack(request.responseXML);
}
}
};
httpreq.setRequestHeader("Content-Length",postparams.length);
httpreq.send(postparams);
Any one please help me.
|
|
|
|
|
Hi
The following code send an email using Net.Mail.MailMessage.
The code run fine with no exceptions but the email not recive in the destination address.
The application run on IIS v 5, os: xp.
email send by virtual SMTP server
All the emails that i tried to send can be found on C:\Inetpub\mailroot\Queue.
here is the code :
public class Email
{
private string _To;
private string _Subject;
private MailMessage email;
public Email(string To, string Subject)
{
_To = To;
_Subject = Subject;
}
private void SendHtml(string msg)
{
email = new MailMessage("tomer_t@TOMER-7VGO1O5DD", _To);
email.IsBodyHtml = true;
email.Body = msg;
email.Subject = _Subject;
SmtpClient smtp = new SmtpClient("TOMER-7VGO1O5DD");
smtp.Send(email);
}
public void Contact_Us(string FirstName, string LastName, string Phone, string Bagrut, string Path)
{
StreamReader SR = File.OpenText(Path + "\\Templets\\Contact.htm");// new StreamReader(Path + "\\Templets\\Contact.htm");
string msg = SR.ReadToEnd();
SR.Close();
SendHtml(msg);
}
}
Please advice.
|
|
|
|
|
tomertro wrote: All the emails that i tried to send can be found on C:\Inetpub\mailroot\Queue.
Your SMTP server is not started. Start it and the mails will go.
|
|
|
|
|
Hi.
I have been given a legacy dot net 1.1 system to maintain. It uses bounds controls and templates. I am not allowed to scrap the techniques used.
I have to introduce another column after "Question [Yes]" which has an image and a text field with a click event. But it is only enabled (displayed), if the data value of "DataItem.YesQuestionID" = 0.
Anyone know how to do this please?
Many thanks.
-----------------------------------------------------------------------------------
<pre>
<TR>
<TD colSpan="2"><asp:datagrid id="grdQuestionnaire" runat="server" CssClass="labeltext" Width="100%" Font-Size="X-Small"
AutoGenerateColumns="False">
<Columns>
<asp:TemplateColumn HeaderText="Question">
<ItemTemplate>
<asp:Label id="lblQuestion" runat="server" ToolTip='<%# DataBinder.Eval(Container, "DataItem.QuestionText") %>'>
<%# DataBinder.Eval(Container, "DataItem.QuestionID") %>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Question [Yes]">
<ItemTemplate>
<asp:Label id="lblYesQuestion" runat="server" ToolTip='<%# DataBinder.Eval(Container, "DataItem.YesQuestionText") %>'>
<%# DataBinder.Eval(Container, "DataItem.YesQuestionID") %>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Question [No]">
<ItemTemplate>
<asp:Label id="lblNoQuestion" runat="server" ToolTip='<%# DataBinder.Eval(Container, "DataItem.NoQuestionText") %>'>
<%# DataBinder.Eval(Container, "DataItem.NoQuestionID") %>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid></TD>
</TR>
</pre>
-----------------------------------------------------------------------------------
<pre>
Private Sub LoadQuestionnaireDetails()
Dim QuestionnaireDS As Questionnaire = New Questionnaire
QuestionnaireDS = data.GetQuestionnaireDetails(cboQuestionnaire.SelectedValue)
grdQuestionnaire.DataSource = QuestionnaireDS
grdQuestionnaire.DataBind()
End Sub
</pre>
|
|
|
|
|
Which bit in particular are you having a problem with?
|
|
|
|
|
I need to be able to display new column, (with an image and some text), depending on the value of an existing column in the dataset. I get the feeling that I will have to trawl through the grid collection and test the necessary column value for each record. Am I on the right track?
|
|
|
|
|
Yes. You can check each row individually in the OnItemDataBound event and set the image visibility accordingly.
|
|
|
|
|
|
Hi all,
In my application i am using a Login Control and already there are some menus on it.But when i enter user name and password and press Enter key it doesn't go on to the login button.
Can any one tell how to do it??
Thanks in advance....
|
|
|
|
|
you will have to learn configuration tool of visual studio in order to use login control..... which create automatically some tables and in your given database...for login and other related purpose...
umerumerumer
|
|
|
|
|
Is this really related to creating tables using configuration tools??
|
|
|
|
|
dear not only related to creating tables many more things...
that tool facilitate you to manage user roles,management of webparts,smtp settings... and many more things without writing a single line of code.
choice is yours...
if you want to do login verification only then create your own table of login instead of using login control...
umerumerumer
|
|
|
|
|
I've got a gridview showing products with they're prices. I'd like a checkbox next to each item, so that a user could select multiple products and then display in the footer the sum of the prices selected.
I'm normally a winforms developer, so the client-side vs server-side thing is still new to me. But I'm guessing this needs to be done with client javascript to prevent a postback. And I don't want make any changes to the database side).
I really have no idea where to start, can someone please just point in right direction to do this with javascript?
Oh and I'm still on .Net 2.0
|
|
|
|
|
You are right. This has to be done using JS. Here[^] is an article. When each checkbox is checked, you need to get the price and sum it.
|
|
|
|
|
mark.d.inman wrote: I'd like a checkbox next to each item, so that a user could select multiple products and then display in the footer the sum of the prices selected.
Look, you can start by attaching a check changed handler. Have a look at this [^]example.
mark.d.inman wrote: I really have no idea where to start, can someone please just point in right direction to do this with javascript?
Next, step would be sum up the price in a client variable when ever a item is checked and subtract it whenevr it is unchecked.
Now, show this value in footre/(or wherever)
mark.d.inman wrote: Oh and I'm still on .Net 2.0
That does not matter.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hello Friend
I am installing DotNetNuke on my system. but it give Error>> How i resolved this error Please Hlep ME.
ERROR:-Installing Database - Version 5.0.0...FAILURE 400 - The stored procedure 'test.UpdateDatabaseVersionAndName' doesn't exist.
Thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
This is ASP.NET forum. You have to try DotnetNuke customer support of their support forums.
|
|
|
|
|
But It Related to ASP.net
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: But It Related to ASP.net
ERROR:-Installing Database - Version 5.0.0...FAILURE 400 - The stored procedure 'test.UpdateDatabaseVersionAndName' doesn't exist. . How that is related to ASP.NET ?
|
|
|
|
|
It raise through the dotnetnuke asp.net application.This way it related to ASP.net
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: Hello Friend
I am installing DotNetNuke on my system. but it give Error>> How i resolved this error Please Hlep ME.
ERROR:-Installing Database - Version 5.0.0...FAILURE 400 - The stored procedure 'test.UpdateDatabaseVersionAndName' doesn't exist.
Thanks
Did you change the connection string in web.config ? if yes, Which option are your selecting during installation? Select Auto Option. It will automatically upgrade your database.
|
|
|
|
|
where i select Auto option
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
i gated
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
First off, I have heard a lot of people have problems with DNN 5.0. Try installing 4.9 instead.
For really good guides, take a look at Michael Washington's site. DNN installations are explained in great detail...
http://www.adefwebserver.com/DotNetNukeHELP/[^]
Frauke Nonnenmacher
Creative Cats
|
|
|
|