|
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.
|
|
|
|
|
Hi,
I am using Ajax modal popup extender in my project. It works in IE 6, when it comes to IE 7, the popup is displaying behind the background. So I am not able to click on popup buttons.
Any help on this really appreciated!
|
|
|
|
|
Have you added style for the modal popup extender control in stylesheet?
If yes then set z-index as 1000
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi guys,
(sorry - lot of description about why I have an issue. My question is at the very bottom of this post...)
we have a scenario with several (more or less identical) Moss applications for different clients. Reports are the main part of it; these reports are identical as well for the clients but have to be deployed in each clients application. We display these reports using the Report viewer webpart that comes with the Reporting Services Add-on for Sharepoint.
I successfully set up kerberos auth and the RS integration. Using the ReportServer2006 (!) proxy I can programatically deploy the reports and manipulate their data sources. So far, so good.
Now there is one issue: I can deploy the reports _once_ - as soon as I try to deploy a second 'instance' of a report to a second application, the first entry in the 'Catalog' table of the ReportServer database gets deleted. So the last application gets stripped of its reports when the following application gets its reports deployed. This strange behavior does not affect the data sources; these can exist in several equally named copies in the table having different paths (URLs) for the different applications.
An obvious workaround: Rename the reports when deploying - e.g. 'Client1_ReportXY.rdl'. Works like a charm as expected.
But now we have n applications getting deployed via stsadm -o backup / restore from a template. Of course the Report Viewer webparts of the template don't know about the new names of the reports.
So I dug into the Sharepoint Object Model to try and update the reports' names in the Report Viewer webparts. I'm new in Sharepoint programming.
HERE IS MY ACTUAL PROBLEM: I can get hold of all the webparts on the page using SPLimitedWebPartManager - but the Report Viewer webpart doesn't show up in the SPLimitedWebPartCollection. Why is this? Is there any way to programmatically manipulate this webpart on an existing MOSS Page?
http://technet.microsoft.com/en-us/library/bb326422.aspx[^] points out that the Report Viewer webpart is a 'Custom Web Part'. Is this the cause - can't I access custom webparts via the object model?
Thanks for reading, any suggestions welcome. Actually I'm thinking of switching back to RS native mode - there have been lots of problems with the MOSS integration. And overall MOSS itself gave me more of a hard time than it actually helped
Juergen
modified on Friday, June 20, 2008 3:54 AM
|
|
|
|
|
Give focus to particular posion of webpage in a button click is Possible ?
Got ? Give me..
|
|
|
|
|
I am not sure whether I have understood the question correctly...
You may Panels, table or any other control and then on a button click, give the focus to the controls.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
how can i read file another process is reading
|
|
|
|
|
I am using the following method to open the files which are opened by other process.
System.IO.FileStream fs = new System.IO.FileStream("file path here", System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.ReadWrite)
*jaans
|
|
|
|