|
Hi Ali,
I already sent the code.
Thanks for the help.
Cheers!
if(you type your code here) {
Messagebox.Show("You help me a lot!");
}
else {
You help me = null;
}
|
|
|
|
|
I am about 40% done with a very early iteration of an MVC3 application geared toward online training and testing. I have simply used the default layout view and views generated by the default T4 templates, as me and the client both agree wholeheartedly that I should only be focusing on function and not form at this phase of development. However, I know for a fact that to demonstrate an application in this early phase, where functionality is clunky and limited, a nice UI goes a long way to colouring the clients perception in a positive way.
Are there any collections of, or even single instances of, ready-made layouts/themes for MVC3 applications that I can obtain, say, two or three of, and replace the very clunky default theme for my app, without too much layout and styling detail? I have those written up to a fairly large number of hours in a later sprint.
|
|
|
|
|
[SOLVED]
I was impersonating a user in the web.config .
[/SOLVED]
I receive the following error when going to an asp.net website.
Could not load file or assembly 'EA.DataAccess' or one of its dependencies. Access is denied.
Frankly I'm lost here. We had the problem before when the server was just installed. We added the correct assemblies to the GAC, changed machine.config, etc... until it worked.
Fo info: It's a dll using Odp.Net.
Here's the situation:
1. we have a dev and a test environment (and a production, but I'm not there yet) all servers are x64.
2. The application is running in an application pool that runs other applications using the SAME dll as well. Only this application is failing, the others work without problems. The dll version is the same.
3. The application is running without problems on the dev environment as well.
4. I tried to clean the C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files for that folder.
5. I checked the machine.config file.
6. I compared the dev and test environment on user rights and configuration.
7. I switched on the enablelog registry key: (if someone understand this better than I do)
=== Pre-bind state information ===
LOG: User = Unknown
LOG: DisplayName = EA.DataAccess
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: EA.DataAccess | Domain ID: 7
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http:
LOG: Appbase = file:LOG: Initial PrivatePath = C:\inetpub\wwwroot\EA.Travel.MailFax\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\inetpub\wwwroot\EA.Travel.MailFax\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:LOG: Attempting download of new URL file:LOG: Attempting download of new URL file:LOG: Using application configuration file: C:\inetpub\wwwroot\EA.Travel.MailFax\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.
Hope someone can help me.
Thanks in advance.
V.
modified 18-Jan-12 9:54am.
|
|
|
|
|
Hi guys,
Any 1 got ideas about how to synchronize Ms Access and SQL Server (Express Edition) database. the scenario is I Create a database and a table containing a single text column for both MsAccess as well as SQL Express (DB and table name to be similar). By performing insert / update / delete on SQL Express (Source) and I must ensure that the data is updated accordingly on the database in Ms Access (Destination) as well. Vise versa.
So did I need to create 2 connectionstrings , which 1 is OLEDB and another is SQL? As i know we can use same sql statement,just need to be cautious with reserve word for database command such as OLEDBCONNECTION and SQLCONNECTION.
|
|
|
|
|
Ok..I successfully synchronize access and sql server. Follow this step:
1.OPen your access database.
2. Go to file>get external data>link tables
3. At Files Of Type, 'choose ODBC Databases()'
4. Click new and choose 'SQL Server'. Click advanced and enter this 'DRIVER={SQL Server} DATABASE=yoursqldatabasename'. then click ok and next.
5. Enter your own datasource name ok then finish.
6. Then create datasource window will popup. choose server that locate your sql server database.Click Next
7. You can choose windows authentication or insert sql server authentication login id
8. Change default database to targeted database. Next and finish.
9. OK until popup link tables window. Choose which table you want to synchronize.
10. try update,insert and delete. Make sure both table in access and sql server update accordingly.
|
|
|
|
|
I have been attempting to get ReportViewer working in an ASP .NET Web Site (C#/.NET 4.0) using an object data source. I mean, the way it works in a WinForms application. In WinForms I simply add a DataSet to the Report Designer and it gives me the option to select classes (such as LINQ To SQL classes). However, ASP .NET only allows me to create a connection and use SQL.
I have searched the internet for two days with no luck. Could someone please provide some direction? Links and other references would be appreciated.
Thanks,
Matt U.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
Project>Add new item> Linq to sql or Object dataSource
Frazzle the name say's it all
|
|
|
|
|
I have A.js file and I need to get server value which is in *.cs code.
for example below code is working in aspx page but not working A.js file.
var hiddenYear_id = "<%=common_config.hiddenYear_id%>";
So how can i get "<%=common_config.hiddenYear_id%>" value?
Have a nice day.
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
Hi Dear,
it's not possible without .aspx because .js file(s) are loaded when
page loads and remain in cache for future.
when u write your code in aspx it executes on server and return
values of server variable(s). but in .js file code will not executes when page loads.
i think it's not possible...
DineshT
Senior Software Developer
Professional Softec Pvt. Ltd.
Jaipur (India)
|
|
|
|
|
Hi All,
I dont know if this question is for this forum or I should post it on XML forum. I will transfer the question if you think it is more suitable on that forum.
However, I have a asp.net application in C# where I have a dataset which I can transfer to xml by using the following simple codeblock
string result;
using (StringWriter sw = new StringWriter())
{
ds.WriteXml(sw);
result = sw.ToString();
}
It generates the default xml of the table structure like the following:
<NewDataSet>
<ImageInfo>
<ImageID>1</ImageID>
<ImageName>untitled.bmp</ImageName>
<ImagePath>Some Path</ImagePath>
<Width>800</Width>
<Height>190</Height>
<TileSize>256</TileSize>
<Overlap>1</Overlap>
<MimeType>image/jpeg</MimeType>
<Scale />
</ImageInfo>
</NewDataSet>
But I want the xml to be generated in the following format
<data>
<Columns>
<Column Name= "ImageID"/>
<Column Name= "ImageName"/>
<Column Name= "ImagePath"/>
<Column Name= "Width"/>
<Column Name= "Height"/>
<Column Name= "TileSize"/>
<Column Name= "Overlap"/>
<Column Name= "MimeType"/>
<Column Name= "Scale"/>
</Columns>
<Rows>
<Row>
<Cell>1</Cell>
<Cell>untitled.bmp</Cell>
<Cell>Some Path</Cell>
<Cell>800</Cell>
<Cell>190</Cell>
<Cell>256</Cell>
<Cell>1</Cell>
<Cell>image/jpeg</Cell>
<Cell></Cell>
</Row>
</Rows>
</data>
this is an example with dataset having one row. there are various rows in a dataset. In my application, I wont be knowing the structure of the dataset beforehand. i.e. there can be a resulting dataset where I have more columns than the one described in the example. How should I go about this? Any help would be much appreciated.
Thanks.
|
|
|
|
|
Hello.
I'm beginning a new asp.net website (using asp.net 4.0) and I want to try implementing some better coding practices to keep the site's code "cleaner". From what I've read, updatepanel's bring along with them, a lot of unnecessary code, so my 1st plan is to avoid using them entirely.
So, I was planning on using only javascript (i.e. jQuery) to handle the same functionality of that of an upatepanel but I'm unsure of how to implement this functionality. In particular, how do I get jQuery to handle the postbacks to the server in order to communicate with asp.net server side controls?
Does anyone know of any tutorials on this in asp.net 4.0? I've been able to find older tutorials using asp.net 3.5 (which looks to be quite a bit of javascript code to handle the equivalent of an updatepanel), but wasn't sure if 4.0 implemented any more efficient approaches.
Thanks.
|
|
|
|
|
JavaScript, or JQuery more specifically, is independent of any version or flavor of .NET, so if you find one example it should apply to all.
In this situation you don't use JQuery to do any postback. You would use JQuery to make an AJAX call to a server resources, perhaps a PageMethod, then upon return, handle any page updates necessary via the DOM.
This is one example, there are many more available.
http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/[^]
No comment
|
|
|
|
|
asp.net is not really a factor using jquery, unless you populate a control with data, and alter the data with jquery, and then try to post it back to the server. Asp.net will think that the page has been tampered with, and will generate an error. So of anything, you really have to know asp.net really well, in how it deals with postbacks.
So start small with pages that don't postback or forms, and move on to as you get more confident.
FYI:
I got feed up with asp.net AJAX Toolkit, and decided to stop using it, replacing it with JQuery. The journey was long, but so far after 4 months of testing, it was well worth it. I get very few complaints now, and users claim that the programs are easier to use now.
Actually now that I think about it, I did get rid of many update panels as well, but not for the reason you claimed. I got rid of them because I needed smoothness or animation to transition from 1 stage to another, while showing progress, but not in the form of a wheel, but in the animations themselves. This changed the users perception of nothing happening fast enough due to bandwidth restrictions to something is happening. So now I don't get the user pressing the button over and over.
Here is the 10th Program I wrote with your idea, no AJAX or Update panels, pure asp.net controls and Jquery. It took 2 weeks to write, but works pretty good. I think the jquery is over 5,000 lines.
[^Pure Jquery and asp.net controls from server side]
|
|
|
|
|
Thanks for the advice.
Btw, your site looks very nice. The shopping cart has a very smooth feel to it
|
|
|
|
|
Hi guys,
i need your help.. i am newbie on ASP.net.. i tried to search some of our search engine, i found some yet i hardly understand.. here's my concern. I need to create a Main Page which is allow me to Add items in my Menu.. i mean dynamic.. i can add or delete my menu list using text file as my database or whatever it is.. please help or Ms Access..
thanks,
naijeru
|
|
|
|
|
|
filename1 = "のサンプル";
Response.Clear();
Response.ContentType = "text/comma-separated-values";
Response.ContentEncoding = System.Text.Encoding.GetEncoding( 932 );
Response.AppendHeader("Content-Disposition", "filename=\"" + filename + "\"");
Response.WriteFile(filepath);
Response.Flush();
System.IO.File.Delete(filepath);
Above code is used for downloading japanese file, when using as above i am getting file downloaded but the file when it shows in file save as dialog contains some machine mixed special characters(non ascii).
expected file name is
のサンプル .xls and not like "a1/4a...."
How to over come this issue.
Hi
As i found in the forum link i used this function to convert file name but this too didnt helped me out.
public static string EncodeTwit(string txt)
{
UTF8Encoding utf8 = new UTF8Encoding();
byte[] bytes = utf8.GetBytes(txt);
char[] chars = new char[bytes.Length];
for (int index = 0; index < bytes.Length; index++)
{
chars[index] = Convert.ToChar(bytes[index]);
}
string s = new string(chars);
return s;
}
|
|
|
|
|
Any 1 got solution for this error?
File or assembly name CrystalKeyCodeLib, or one of its dependencies, was not found.
Currently I try to deploy a system to 64bit machine..the system looks fine except for the crystal report. I'm using cystal report version Version=9.1.5000.0.
I've googled and found some suggestion but it also cant help me..The crystal report already installed..any1 have idea for this issue?need your help ASAP.
|
|
|
|
|
|
So mean that I need to create deployment package and install it for each user's PC..Is it problem cause by 64bit machine? Because crystal report did not support some of 64bit machine? How about If I try to add merge modules into the project?
|
|
|
|
|
Is that web application right? If yes then you don't need to install for every user PC. All you need is just install the things in Server machine, that's all.
|
|
|
|
|
Yup..this is web application..nvm I already issue this to my software engineer..ask him to install the correct windows version..I still did not understand y he install image windows 64bit on 32 bit machine..zzzz..thanks for your reply..=)
|
|
|
|
|
how to connect sqlserver to asp.net mobile framework or AMF please tell me....
|
|
|
|
|
guys;
I am targeting an image/jpeg response to an iframe. but its displayed in unexpected padding
in IE its displayed with padding, but not in chrome, is there anyway i can control this?
Help people,so poeple can help you.
|
|
|
|
|