This article helps what i needed. Getting the folder path in TextBox. [URL] my question is.. here he has given D:\ as default. How can i change this... to work on DevServer, Clients .. so..on If it is in local it works fine that to for d:\.... if i want to browse from other drives how should i do that. i need to browse all folders in all drives... what should i change in this statement.
TreeNode
onjParent = new
TreeNode("D:\",
"D:\");
And How can i save the directory when i go to that page again.like keeping nodes open which are opened before.
I am having issues implementing SqlSiteMapProvider using the Wicked Code article. I am using VB.NET and SQL Server 2008 - and the OnSiteMapChanged event is not firing (the SqlDepdencyCache just seems to simply be not working at all). The article states "You also need to run the ASP.NET worker process with dbo privileges for SQL Server 2005 cache dependencies to work automatically.)" I don't understand what this means. I know what the ASPNET user account is and that it runs aspnet_wp.exe which is basically the ASP.NET run time as I understand it. I know what DBO privs are on SQL. But my SQL and web servers are on different machines, and ASPNET is not a domain account. And it seems crazy to make it one to try to simply get the SqlDepdencyCache to work, and I have trouble believing everyone is doing this?Anyone have any clue what I'm missing here?
I have taken up a project at work that was left half finished by the last guy that used to work here, it involves choosing a country, region and town from some drop down lists this is all done in Javascript which leaves this as a problem for me so now I need to retrieve the value of the townID that is stored in a hidden value, I tried this by putting the townID value inside a session and then on postback (after clicking the button) I wanted to parse the session value to retrieve the correct article, but I receive the following error:
Value cannot be null. Parameter name: String Here is what I am doing with the code (on the button): [Code].... (Postback) [Code].... This is the code I am using, the TownID is coming out null!
i need to display image for every article in my page (articles information in data base ) and i have control panel to add,delete,edit articles how to display image for every article i made fileupload that store images in folder ,but when i insert article's title,details, image name ,the image does n't appear in page
I want to add an article directory to my site that allows visitors to submit their articles. Is there any open source code out there for this or is there anything similar?
how I can get the AccountController you get from the Sample MVC 3 application, to work with your own Domain Model ?i.e. when a user registers, let his/her details be added to your own user database. same for when the login
I'm using a file "image.aspx" (with code-behind file "image.aspx.vb") to retrieve an image stored in SQL and display it in my file "main.aspx". But it is not working (I get an image error display/red "x" icon instead of the image). (All other non-binary data is retrieved/displayed fine; no "designer" file is generated/used in this project). Can anyone tell why the image is not displaying? Below is the relevant script ("Avatar" = column in SQL table containing the image file):
1. from "image.aspx" page ("template.master"---not shown here--contains form1 referenced further below):
[Code]....
2. from "image.aspx.vb" page:
[Code]....
3. from inside the script tags in the "main.aspx" page:
I searched all day a solution to my problem.I worked with MVC 2 with visual studio 2010.I want to bind dropdownlists according to the value selected in an other dropdownlidt (but the datas are not linked in the database).In fact, I have a function in a controller and I tried to call it thanks javascript. But during the debug, it never goes in this function.If I'm not clear, ask me some question.
I've received a website that uses sql server on the live environment. In the code at many places sql is created, say: However, locally on my dev machine, I use sql server express edition. It looks like select * from mytable doesn't work there, but instead I should use: How can I get my local site to work? Is there a setting I can change or am I missing something else?
This works fine but from a performance standpoint this is not good as the pages are making a lot of requests to the webresources.axd and scriptresource.axd files. When I changed the CombineScripts property to true my ASP.NET AJAX control extenders are no longer working. What is the reason for this weired behavior and is there a fix for this?
I am developing a blog site in asp.net 3.5 with C#. I have written few blog post in my site. Now, I want to give two icon below my article 1: "retweet" [Twitter], so that people can tweet my article 2: Subscribe RSS Feed for this article.
What if I write an article that is in excess of what NVARCHAR(Max) can store?What would you do?Run a quick bit of code to separate the article into smaller chunks?Or is there a better way?I know I could create some sort of key system where there is an "article" primary key and in the same table, there would be an "article part" integer, then run a query when I want to display the article to stick it back together, but is it a good idea or am I over complicating it?
I'm sure there's a blog post or tutorial out there somewhere on how to accomplish this, but I'm having trouble coming up with the keywords to search for. I'm building a website with a small content management system that allows the user to create articles that will be published to the site. I want the home page to display the 10 most recently submitted articles.What I don't want however, is for the home page to be 6 miles long. I would like to cut the article off after the first paragraph, add ellipses, and have a "continue reading" link that will allow them to view the full article. Does anyone have a link or information on how to accomplish this?
I have a article page, in the top right corner i have small icon like pdf, when click that i have to create pdf and open. i have seen fews link, those just showing static html creattion.
public class TestRoles{ public class SimpleRoleProvider : RoleProvider { public override string[] GetRolesForUser(string username) { List<string> roles = new List<string>(); roles.Add("Guest"); if (username.Equals("Dave")) roles.Add("Admin"); return roles.ToArray(); } } }
From this error, it seems like it can't find the RoleProvider.
I'm constructing a new cms with the option to create reviews and articles (blog items). Now if the user wants to write a review he/ she will want to add a lot of images in the text. Now my question to you is , what would be the best option to include those images (with keeping in mind that a CDN can be used later). I was thinking of the following methods:
Break an article in multiple blocks, each block can then include a picture and text. Just add the picture in the text via WYSIWYG editor (easiest option but not so versatile) Upload images separately and include them via tags in article text. Like Title{img_1}Content