C# - Passing File Data Between Administration App And Website App?
Oct 14, 2010
We have two separate web applications for a site: One for the site itself, and one for the cms/administration side. I'm not sure why the original developer designed it this way, but whatever.
I am tasked with adding some functionality to the administration side that uploads files. These files then need to exist within the folder structure of the actual site. I was thinking I might have to write a web service that sits on the actual site that accepts the file bytes and file name from a call within the administration site, and creates the file in the correct folder, but I was wondering if anyone had any ideas about a cleaner way to accomplish the same thing.
In general, how would you tackle a scenario where you upload a file on one site, and send it to the directory structure in another?
View 2 Replies
Similar Messages:
Dec 9, 2010
I'm currently creating a web application.
I had Administrator, Teachers, Students roles.
I wanting to create a function where Administrator able to change username of the users that login to my web application or delete that user.
The users are created from asp.net web site administrator tools (security tab)..
View 4 Replies
May 19, 2010
Can anybody tell me where can i access 'website administration tool' in visual studio 2010. I couldn't see any website tab in my IDE.
View 5 Replies
Aug 14, 2010
im using web developer 2008, but i didnt found Web Site Administration Tool in menu, some 1 can tell me what is going on?
View 1 Replies
Jan 3, 2011
since installing VS2010 I have problems with configuring membership. Using a online sql database what I prepared with the aspnet_regsql tool tables are there connection string is ok! when I open the ASP net config tool, I do not manage to select the membership provider. Underneath my web config file. can sombody tell me what is wrong??
[Code]....
View 3 Replies
Oct 1, 2010
I've learned asp.net from books available on the internet, but I didn't find a good book that teaches you some techniques or logic to follow to build an administration area to control the front-end.I mean they talked about security, membership and roles. but still they didn't show you how to manage anything that's not related to a database, anything that's related to a database you'll probably create a page to display some info from a db with some SELECT commands and another page for the admin to INSERT, DELETE, UPDATEbut how can I connect to the other controls from my admin panel.for example : a textbox in the admin.aspx will edit the value of a certain label in display.aspx
another example : I built a web user control to retrieve articles from a DB and another control to be placed in the admin page, which will let the admin add new articles and it will insert it to the database, how can I add more power to the admin page to control the number articles to display on the page, or to control the sorting of the articles, etc...If i could get a name of a book that helps me with the logic or basics of creating a page that works like my admin panel to control the front-end it would be great,
View 4 Replies
Jan 6, 2010
I'm very new to ASP.Net, but I've put together a reasonable site. I have used the user account and rolls which come with VS.
This all works fine for me, but I want to be able to change user's rolls and folder security when the site is live.
Is there any way of accessing the ASP.Net Web Site Administration Tool once the site has been moved to a production server?
If not is there any easy way to accomplish this other than write pages to do this yourself?
View 7 Replies
Oct 5, 2010
Getting error: "Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider."
I am not usign SQL Express
1. Installed VS2008 + sp1 after that Installed SQL 2008 Standard x86 + sp1
2. Used aspnet_regsql to add aspnetdb to the sql (I can see that db in MSSMS)
3. From my WebProject I can access WSAT but when I click on the Provider and try to test I am getting above error.
Tried diffetent settings in the web.config and also check machine.config Check different solutions form different forums but nothing seams to work.
I strongly believe there is something wrong with my <connectionString/> as by default WSAT points to .SQLEXPRESS but I do not know which file should I update (web.config or machine.config or Web.config)
Do I need to add <connectionStrig> tag to web.config ?
View 5 Replies
Feb 8, 2011
Is anyone able to see Web Site --> ASP.NET Configuration if you are creating a web application using File --> New Project --> Visual C# --> Web. If so, how and where?
Base on what I've tried, the menu Web Site --> ASP.Net Configuration appears only if you create a website by File --> New Website.
What I am actually trying to find is the Web Site Administration Tool (WSAT).
View 5 Replies
Nov 15, 2010
I am building a web site and am trying to run the web site administration tool.
I have reinstalled SQL Server 2008 express and have run the command line administration utilites. When I try to run the administration tool, get the following error when I click on the security tab is
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
I have ensured that I have user instances are enabled
When I click on Choose Data Store I get the following error
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
View 2 Replies
Feb 2, 2010
I am have problem getting the security selection to view properly. Instead of getting roles and so on I get this following error message:There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the problem:Unable to connect to SQL Server database.
View 2 Replies
Jul 14, 2010
I have googled the similar problem that many people are facing but I still can't solve mine.I'm trying to visit the ASP.NET Web Site Administration Tool at
http://localhost:49274/asp.netwebadminfilesThe page shows me the error "An error was encountered. Please return to the previous page and try again."Some says it has to do with web.config file, I'm new to ASP.NET, here is my web.config file
[Code]....
View 1 Replies
Mar 1, 2010
I have a website which is developed using HTML. I have another asp.net application which is in different server. Now I have to design login block of my asp.net application in HTML website. That is user will login from HTML website but the validation of that user will be checked in asp.net application. So how to transfer my user name and password from HTML website to asp.net application.( Both are in different servers)
View 4 Replies
Mar 29, 2010
I have a image control in aspx.vb file....I want the image to become invisible in other .vb class file....I have tried using properties but it doesnt seem to work.
View 11 Replies
May 13, 2010
I get the following message while trying to access the Security tab in ASP.NET Web Site Administration:A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)I have configured my own data store following this guide. Which essentially tells you to run aspnet_regsql.exe to set up a data store in order to keep authentication data for a SharePoint site (which is what I want to do).This is what I've written in the web.config at the end of the tag <system.web> for the Visual Studio 2008 project initiated to deal with the Web Site Administration:
<membership defaultProvider="AcAspNetSqlMembershipProvider">
<providers>
<add name="AcAspNetSqlMembershipProvider"
[code]...
View 6 Replies
Jan 3, 2011
Passing Variable from page to page using ASP.NET (C#) without using QueryString
The difference in my case is that the request is coming from a different website (in java) to my website (in asp.net). I do not want the variable to appear in url.
To explain my scenario, we are making a webpage(plugin), which can be called from any other website. To authenticate request, i am looking for a mechanism when other website will pass id & auth-key to my page. This i can use to authenticate the request. I do not want these variable to be visible.
View 3 Replies
Jan 1, 2011
I work for a product manufacturer and we do not sell products directly to customers, distribution is through our dealer network. I'd like to provide our website visitors with a means to build a shopping cart and then pass the cart contents off to the dealer website of their choice.
The solution needs to be platform independent, even though I will be developing in ASP.net since our dealers' website platforms vary. I would assume most, if not all, do not have an existing API to interface with.
What do you think would be a good means of accomplishing this task?
View 1 Replies
Dec 18, 2010
I have two websites both of which will share the same users in a SQL DB for membership. The first site is the standard site while the other is a subdomain for admins.
If the admin logs onto the either site, I don't want that person to have to re log on to either site if he/she is sent there via navigation. To the user it would just seem like one site. Because user would be using same session, if they log off either site they would have to reauthenticate.
How would I go about passing this information?
View 1 Replies
Jan 24, 2010
I was wondering how i could implement a message passing facility through a social networking website i am making. Instead of creating it all from the start, is there a much more simple approach i could possibly take?
I quite like the way facebook does it, how is this done?
I am ok with AJAX but would prefer something really simple not to the extent of adding emoticons etc.
View 1 Replies
Feb 2, 2014
I want to use autouser login in my website using ASP.NET C#.i.e., If I say that autouser login, this means user has to include user id and password to url for verification.
Example: http://10.9.80.210/Rmax/abc.aspx?Username=xyz,Password=1234Here, 'UserName and password' will be as autouser login, '10.9.80.210/Radmax' is the website url, 'abc.aspx' page is any of the page of website.
View 1 Replies
Aug 23, 2010
I am getting an null referance on file, what am I doing wrong.
<% Html.EnableClientValidation(); %>
<% Html.BeginForm("AddMedia", "Pattern", new { id= Model.Pattern_Guid} , FormMethod.Post, new {enctype = "multipart/form-data"}); %>
<%: Html.ValidationSummary(true) %>
<%: Html.Label("height") %>
<%: Html.TextBox("height") %>
<%: Html.Label("width") %>
<%: Html.TextBox("width") %>
<%: Html.Label("Media") %>
<input type="file" id="Media" name="Media" />
<input type="submit" name="btnAdd" value="Add" />
<% Html.EndForm(); %>
controller code:
[HttpPost]
public ActionResult AddMedia(Guid id, HttpPostedFileBase file, FormCollection collection)
{
string mimeType = file.ContentType; // Null Exception here ....
View 2 Replies
Jan 4, 2013
my form is having a label and a button, assume that you opened my website in ur system through url and now when u click the button it has to read a text file from the specified path in ur machine and display the data in label. i mean whatever machine is running my program it has to read the data from specific path from current running client machine.
View 1 Replies
Nov 26, 2010
We have a asp.net page where the user is allowed to upload a file. This file is then sent on to a back end system via a wcf services. Currently we read the file into a byte array and then send an object into the wcf service where the byte array is a property. This works fine, but we are wondering if there is a more efficient way to do it?
View 1 Replies
Mar 23, 2011
I have some javascript that calls different web methods likeso
[Code]....
That's all fine & dandy but now i need to call a web method and pass it a file!
This is my current JS code
[Code]....
Now it jumps straight away to OnUploadFailed without ever going to the webmethod
View 2 Replies
Apr 26, 2010
We recently migrated from VS 2008 to VS 2010. The migration went fine, except for our web project. Before, in VS 2008, the site showed up as http://localhost/Website. Now, it appears as C:...Website. It appears that when we did the migration, VS started to treat it as a file system website.
I've tried removing the existing site and re-adding it as an existing website, but it still displays it as C:...Website. Is there any way to convert it back to show it as a http://localhost/website, and run through IIS, as opposed to the default ASP.NET Development Server?
View 2 Replies