I am new to ASP.NET. I would like to know how to create a page with a side bar, which is tree like. There are two tables with a one to many relation. So I get all records from table A that matches the Id of table B. I want to display this list in the side bar. Also, use the Create New page in the body content. Is this possible in ASP.NET? Please help.
From my site user can login and manage it's document. I need to create user wise FTP account where user can login in FTP . From that FTP credential user can download and upload file. Admin of this site access that document . Admin can download all users files.
For that i need help.
1) Create FTP user on server where site is publish from c# code.
2) Create User wise folder with user wise permission.
3) Other user can not see other user folder. Admin have all user wise folder rights.
first of all thank you very much sir for your response.
sir i want to design a web page where from anyone can ask any question of any subject for eg maths.
suppose someone want to ask about solution for (a+b)2 [a plus b whole square] then how he/she can type 2 as superscript, and other symbols like integration, differentiation etc.
You cannot type those symbols on a standard keyboard, without using multiple keystrokes, which are difficult to remember. You should use the standard operator symbols as defined in most modern programming languages, e.g. 7.2.1 Operator precedence and associativity (C#)[^]. For subscript and superscript on web pages see HTML sub tag[^].
i want to connect to my local database but it doesn't responding means some thing is going wrong.
please advised me for the syntax of as i wrote the below code.
<add name="connect" connectionstring="Data Source=DESKTOP-L6ABJBC;Initial Catalog=LoginDB1;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-WebSite3-20170707151050.mdf">
If you want someone to help you resolve an error, then first you need to tell us what the error is. Just saying "it's not responding" and "something is going wrong" is not enough information for anyone to help you.
The only obvious problem is that you're using AttachDBFilename, but you don't appear to be connecting to an instance of SQL Server Express. That option only works with Express, and is a bad idea anyway:
Database 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\LoginDB1.mdf' already exists. Choose a different database name.
Seems fairy self-explanatory to me. You're trying to attach a database with the same name as an existing database. You need to choose a different name, or stop using attached databases and create a real database instead.
Member 12761341 wrote:
string query = "select count(*) from userlogin where username ='" + txtBox1.Text + "'and pass '" + txtBox2.Text + "'";
Your code is vulnerable to SQL Injection[^]. NEVER use string concatenation to build a SQL query. ALWAYS use a parameterized query.
How do I build an XML based News page in ASP.NET MVC? I would like to enumerate XML files inside a folder and build a list of summaries on the page. Once the visitor clicks on one of the summaries, I would like to load the associated XML file and render the full news content (with nice formatting included).
An example of the summaries page can be found  while and example of the single XML news page rendered can be found here ?
Should I write everything from scratch or there is a good tutorial to start with somewhere?
We are getting complaints from the customer that they have to keep on refresh (Ctrl+F5) on the page or sometimes clear the cookies to reflect the changes done on upgrade.
Especially, when we upload CSS/JS files or Images sometimes.
To overcome this situation, I did some research and found one solution to append Query string with the name of image or CSS files. But it does not seem to be a coherent solution. Then I used NuGet packages for Bundle. It seems to be the solution but I have another issue like I am calling individual CSS file for each page (page specific) and to make a bundle for the single file is not the good idea.
What should i follow as good approach to overcome this situation where changes can reflect on the server after uploading CSS/Images or JS files.
Last Visit: 31-Dec-99 18:00 Last Update: 21-Sep-23 3:47