|
string pstrText = "king.xls";
StringWriter oStringWriter = new StringWriter(new StringBuilder(pstrText));
error comes in stringbuilder
did i miss any assemble reference
|
|
|
|
|
add the
system.io and system.text namespace in your cs file
|
|
|
|
|
In my aspx page,I have a modal popup,on which there is a textbox and a button.
On click of the button(button_click()) ,I have written the code to save the textbox content to database.Everything seems like a simple scenario.
But somehow,when I click the button on the modal popup, it is not firing any event.
I have done the same thing on some other pages also and there it is working properly.
This is my design code :
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="addComment_lnk"
BackgroundCssClass="modalBackground" PopupControlID="Panel1">
</ajaxToolkit:ModalPopupExtender>
<asp:LinkButton ID="btn_hide" runat="server"></asp:LinkButton>
<asp:Panel ID="Panel1" CssClass="popBox" runat="server" Style="display: none">
<div>
<p style="text-align: center">
<table>
<tr>
<td class="title">
Post Comment :
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="comments_txt" CssClass="popInput" TextMode="MultiLine" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Button ID="post_btn" CssClass="button buttonGreen floatRight" OnClick="post_btn_Click"
runat="server" Text="Post" />
<asp:Button ID="cancel_btn" CssClass="button buttonGray floatRight" runat="server"
Text="Cancel" />
</td>
</tr>
</table>
</p>
</div>
</asp:Panel>
<asp:LinkButton ID="addComment_lnk" runat="server">Add Comment</asp:LinkButton>
Can anyone please suggest any possible reasons for the button not firing event.
Thank You.
|
|
|
|
|
I have two modules in my project User Side and Admin Side. I want to Use Forms Autentication Only for Admin Module. How can i use Forms Autehntication Only for this. I Tried to Create a another web project for Admin Module. But when i compiling am getting the following error.
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Can i handle these two modules with the main web.config file. Or Should i create another web project like this, If it is then why this Error is coming.
|
|
|
|
|
set virtual path of the project mycomputer rc-manage-servies and application-IIS-websites-rc on ur website and new virtual directrey create new virtual directry.. and first of all put ur project folder in wwwroot folee which must be in c.in intpub folder.
|
|
|
|
|
am using .Net Framework 2.0 so it will automaticly create virtual directory, anyway i put my project files in wwwroot and compile from there eventhough still getting the same error
|
|
|
|
|
Dear All, I am using win vista and i have installed IIS with its all features.
when i am running .aspx files from vs 2005 its executed with no error, but i am running .aspx files from browser without vs 2005 it gives me the following error.
[Error]
Server Error in '/' Application.
BC30138: Unable to create temp file in path 'C:\Windows\TEMP\': Access is denied.
[Error]
and i should say that i am using Admin Account in vista.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Just go thru the below link
http://geekswithblogs.net/ranganh/archive/2005/05/13/39582.aspx
|
|
|
|
|
Hope This[^] will help you.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
I am getting an error when I try and load a crystal report from ASP.NET. I am using Microsoft visual studio 2003 and everything workls on my development machine. When I move it to the Web Server I get the following error:
Query Engine Error: 'C:\WINDOWS\TEMP\temp_6f6125e5-259a-4b67-8903-86397812034c.rpt'
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: CrystalDecisions.CrystalReports.Engine.DataSourceException: Query Engine Error: 'C:\WINDOWS\TEMP\temp_6f6125e5-259a-4b67-8903-86397812034c.rpt'
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[DataSourceException: Query Engine Error: 'C:\WINDOWS\TEMP\temp_6f6125e5-259a-4b67-8903-86397812034c.rpt']
.F(String , EngineExceptionErrorID
) +541
.A(Int16
, Int32 ) +551
CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext) +527
CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext) +201
CrystalDecisions.Web.ReportAgent.u(Boolean N) +148
CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) +99
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
I searched everywhere for answers. I created an msi from the project and it loaded the necessary msm's then I created a different app pool so that this website used the "local system" account instead of Network service. Still got the same error. I am at a loss. any help would be appreciated.
|
|
|
|
|
How does TMZ do this?:
http://www.tmz.com/page/2/
|
|
|
|
|
|
Hi,
I have a DataGrid with the following columns: Remove, ItemName, ItemID, Size, Date, Amount. When the user clicks "Save" I need to cycle through the grid and if any of the Remove Checkboxes are checked, that row needs to get removed, but if the row isnt checked it gets saved to the database using a stored procedure with inputs (Project_ID, ItemID, Size, User). I know how to go through the DataGrid to check to see if the checkbox is checked and then to remove it, but I'm not sure how to take the non-checked rows and add them to the database. Can someone please help me with this code?
protected void btnSave_onClick(object sender, EventArgs e)
{
foreach (GridViewRow row in Control.GridViewRows)
{
CheckBox cboxremove = (CheckBox)row.FindControl("cbxRemove");
if (cboxremove.Checked)
{
RemoveCheckedTitles();
}
else
{
???????????????
}
}
Please Help! Thanks
|
|
|
|
|
|
Thank you for your reply, however, I am not sure how to read in the data from the columns (columns: Remove, ItemName, ItemID, Size, Date, Amount) into my stored procedure that takes the following inputs (Project Id, ItemID, Size, User) where ProjectID and User are from the session but ItemID and Size are from the DataGrid.
|
|
|
|
|
I think you can implement template field for those columns ,from where you want the data to be retrieved just like you are using the checkboxes and getting it by using row.findcontrol ,same try for this template field also.
|
|
|
|
|
Hi,
I am developing a web application for online training.However i want some alerts(pop-up or mail notification) to pop-up to the counselor when ever a user registers on the website.
Can anyone suggest me any webservice to use or any help regarding code....
Environment:
ASP.NET, C#
Thanks,
Fasttoshiba
|
|
|
|
|
|
If you want to show a jacascript alert then use the following code.
Page.ClientScript.RegisterClientScriptBlock(this.GetType(),"key","<script>alert('Message')</script>");
|
|
|
|
|
I am new to this. I built a web site using Scott Mitchell's example, and it works great. However, I want to move the business logic and the Data Access logic to a different machine. What must I do to achieve this?
Thanks,
Jay
|
|
|
|
|
Jay Stobbe wrote: I want to move the business logic and the Data Access logic to a different machine. What must I do to achieve this?
You know you want that on different machines but you don't know what it takes and therefore what it means for that to execute on different machines. So how do you know you want it, if you don't know what it is?
|
|
|
|
|
I have written an application bases on Scott Mitchell's Data Access Tutorial. I created the DAL (Data Access Layer) and the BLL (Business Logic Layer) but they reside on the same machine as the Presentation layer. I would like to seperate them and put my data on a machine that is behind a firewall. Do you know how to do this?
Thanks,
|
|
|
|
|
The machines would have to talk to each other by being on the same network, or they would need to use a webservice to communicate with each other. I would personally put all the code on one machine, and perhaps put the DB on a different machine on the same network.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
you have to built a classes for database management and its operation and separate
it with business logic.
for example built a general function for passing procedure in database operation class
and pass procedure from business logic class.
|
|
|
|
|
Hi all,
Can anyone help me on this,I am totally new to Multi-tenant data architecture.Please help me out with a step by step procedure.
Thanks,
Zaki.
modified on Tuesday, February 17, 2009 11:08 PM
|
|
|
|