|
Hi
I am facing probelm with vista Operating Systam
it asking prompt for VBAct.cab file unknown publisher when ever accessing activex controls from site and i Checked with all security Options in IE but there is no possibility.
Same site working in Windows XP and 2000 Systems but vista Asking some prob.
if know pls reply me
thx
|
|
|
|
|
In Windows Vista, cab files are not used anymore.
You may try to use any driver file instead which is located in the special drives folder.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Good Afternoon All
I have a code that is supposed to send an e-mail
public void SendMail()
{
try
{
String strTo = "vuyiswam@tshwane.gov.za"; ;
String strFrom = "vuyiswamb@gmail.com";
String strSubject = "Hi vuyiswa";
String strbody = "I did it yahooo";
SmtpMail.SmtpServer = "smtp.gmail.com";
MailMessage mail = new MailMessage();
mail.To = strTo;
mail.From = strFrom;
mail.Subject = strSubject;
mail.Body = strbody;
SmtpMail.Send(mail);
}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
}
when i run this i get the Error
Transport Failed to Connect to the Server
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Check this
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
How to select a part of image using C#
explain with example
|
|
|
|
|
Try doing it yourself first. If you are facing any issues, post the problem to the forum.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
is dis a answer?????????
|
|
|
|
|
yes!!! Of course!!! Didn't make out that are you asking any help or asking us to solve the problem like in university exams.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hello
I try to make a web form, but I'm not free where i can put my control
so how can i solve this problem if some can help me this will greatly appreciated
Thanks in advance
Assaf
modified on Wednesday, June 18, 2008 7:36 AM
|
|
|
|
|
i have a treeview with one node. i want when i expanded i can create thats nodes. can i do this?
how can i define thats selected node
|
|
|
|
|
Hello Every Body
my data table
orders data table
orderID (int), subTotal(smallmoney), discount(smallmoney), Total(smallmoney), oStatus(bit)
I can bind gridview with orders data table, where oStatus is Ture then gridview oStatus checked box is ticked , if false then checked box is not ticked
but when I click gridview edit then I am getting this error below
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 93: lblTotal.Text = [String].Format("{0:C2}", +_ordersBLL.Total.ToString())
Line 94:
Line 95: cbsPayment.Checked = _ordersBLL.sPayment
Line 96: cbsFood.Checked = _ordersBLL.sFood
Line 97:
How can I solve this error
Thanks in advance
Sarfarj Ahmed
|
|
|
|
|
Sarfaraj Ahmed wrote: Line 95: cbsPayment.Checked = _ordersBLL.sPayment
Line 96: cbsFood.Checked = _ordersBLL.sFood
Seems like its not able to find the Checkboxes. Are you using TemplateField for the CheckBoxes? If yes, place a checkbox in the EditTemplate with respective names.
|
|
|
|
|
Sarfaraj Ahmed wrote: Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 93: lblTotal.Text = [String].Format("{0:C2}", +_ordersBLL.Total.ToString())
That mean your lblTotal or _ordersBLL.Total is null. Debug your code check which object returns null
regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
I want to freeze the header in gridview. i have use both horizontal and vertical scroll bar. I am searching google. But it's not working in all the browsers(IE6,IE7,Firefox).
Sathya
|
|
|
|
|
It cannot be done using one control. However, it can be done using CSS and HTML. Probably this site will be useful. Check here
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
I tried this but it's not working properly in Firefox
Sathya
|
|
|
|
|
here I am using gridview with Hoverextender control..when I click the delete button I want to get gridview id value..for getting id value I am using javasript..but its always giving value 1.If anybody knows plz reply me.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="IId" OnRowDataBound="GridView1_RowDataBound" EmptyDataText="You have deleted all records in Item list" ShowFooter="true" GridLines="none">
<Columns>
<asp:TemplateField>
<HeaderTemplate>
<table style="width: 393px" cellpadding="0" cellspacing="0" border="0">
<tr style="cursor: move;background-color:#F1AB44;border:solid 0px Gray;color:Black;padding-top:0px;"></tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width: 393px">
<tr style="cursor: move;background-color:#FFFFFF;border:solid 0px Gray;color:Black;padding-top:0px;">
<td style="text-align:left;width: 393px" class="ntext">
<asp:Panel ID="panel11" runat="server"><strong style="width:300px;"><%#FormatString(Eval("Iname").ToString(), 15)%></strong><strong style="margin-left:300px"><%#Eval("reason").ToString()%></strong>
</asp:Panel>
<b>&lt;ajaxToolkit:HoverMenuExtender ID="HoverMenuExtender1" runat="server" HoverCssClass="popupHover" PopupControlID="PopupMenu" TargetControlID="panel11" PopupPosition="Bottom"&gt; &lt;/ajaxToolkit:HoverMenuExtender&gt; </b>
&lt;asp:Panel ID="PopupMenu" runat="server" CssClass="popupMenu"&gt;
&lt;div&gt;
&lt;table style="width: 339px;border:solid 1px Black;"&gt;
&lt;tr&gt;
&lt;td colspan="2" style="text-align: center; height: 20px;"&gt;
&lt;asp:Panel ID="Panel3" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black;padding-top:0px;height: 20px;" Width="389px" Height="20px"&gt;
&lt;span style="font-size: 12pt; color: chocolate; font-family: Verdana"&gt;&lt;strong&gt;&lt;%#Eval("Iname") %&gt;&lt;/strong&gt;&lt;/span&gt;
&lt;/asp:Panel&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="width: 146px; text-align: right;padding-left:3px;" rowspan="4"&gt;
&lt;asp:Image ID="Image1" runat="server" ImageUrl='&lt;%#Eval("IImage") %&gt;' Height="138px" Width="182px" /&gt;&lt;/td&gt;
&lt;td style="width: 219px; text-align: left;padding-left:10px;" rowspan="4" valign="top"&gt;
&lt;%#Eval("IDesc") %&gt;&lt;/td&gt;
&lt;tr&gt;
&lt;td style="text-align: right" colspan="2"&gt;&lt;%#Eval("id") %&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2" style="text-align: center"&gt;
&lt;span style="font-size: 12pt; color: Black; font-family: Verdana"&gt;&lt;strong&gt;&lt;%#Eval("ICategory") %&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: center" colspan="2"&gt;
<b>&lt;input id="id" type="hidden" value='&lt;%#Eval("id") %&gt;' name="id"/&gt;</b>
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="center" style="text-align: center"&gt;
&lt;asp:Button ID="btnlock" Text="Lock" runat="server" OnClick="btnlock_Click" /&gt;
&lt;asp:Button ID="btnremove" Text="Remove" runat="server" OnClientClick="JavaScript:getid();" OnClick="btnremove_Click" /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;/asp:Panel&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;/Columns&gt;
&lt;/asp:GridView&gt;
&lt;script&gt;
function getid()
{
//alert("getid");
<b>var getid = document.getElementById('id').value;</b>alert(getid);
}
&lt;/script&gt;
Rajendran.AL
|
|
|
|
|
i was tryig to download the file through the gridview link button.The gridview is in the update panel.
on cliking the link button it showed the followig error
"Sys.Webforms.PageRequestParserErrorException: The message received from the server could not be parsed. Errors parsing near
there were few square boxes after this.
I am writing the following code.
string filename = f.Name;<br />
Response.ContentType = "application/octet-stream";<br />
Response.AddHeader("content-disposition", "attachment; filename = " + str);<br />
Response.BinaryWrite(b);<br />
Response.End();
Please help.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
<blockquote class="FQ"><div class="FQA">Pankaj Garg wrote:</div>"Sys.Webforms.PageRequestParserErrorException: The message received from the server could not be parsed. Errors parsing near
there were few square boxes after this.
I am writing the following code.</blockquote>
Yes. Response will not work for Update Panel.
You need to trigger that event as PostBackEvent.
Example.
<triggers>
<asp:postbacktrigger controlid="DownloadLinkButtonID" />
</triggers>
Regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
my linkbutton is in datalist and datalist is in update panel.
How should i find the link button id now?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
How to send a mail to user for get the new password?
My web.config like follows:
<pre><system.net>
<mailsettings>
<smtp from="admin@pmtt.net">
<network host="smtp.pmtt.net" password="" username="" />
</smtp>
</mailsettings>
</system.net>
</pre>
And membership's property "enablePasswordReset="true"".
if My domain is "pmtt.net"
How send a mail use Gmail or Hotmail,
Or configure my own mail domain for send email?
Thanks.
|
|
|
|
|
You may use either web.config or asp.net configuration to specify the SMTP Server..
You need to remember that Hotmail and Gmail requires proper authentication so you need to provide an username and password as well.
Thereafter, you need to code the mail which you will be sending. Here is a small code snippet which does this:
SmtpClient smtpClient1 = new SmtpClient("ServerName", "smtpPort");
MailAddress fromEmailAddress = new MailAddress("fromEmailAddress");
MailAddress toEmailAddress = new MailAddress("toEmailAddress");
MailMessage msg = new MailMessage(fromEmailAddress, toEmailAddress);
msg.Subject = "Password sent";
smtpClient1.Send(msg);
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
how to connect sql server database using asp.net with vb and c#
|
|
|
|
|
You mean asp.net with sqlserver connection ....?
|
|
|
|
|
You need to purchase ASP.NET book.
If We give you an answer of this question then you will ask How to add values in database or how to bind DataControl or how to access data from database etc...
regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|