[Solved] Admin role management in ASP.NET website

First: My first question is: Is this a good or rather I should say,the CORRECT thing to do?? Nobody can say whether it is good or bad except you, because only you best understand the logics and scope and scalability of your system. Point is, it depends on your system and requirement. Moreover, what you … Read more

[Solved] How can I make advanced search in ASP.NET MVC? [closed]

I see your code, it have 2 problems: You get data but don’t return data for View. When return PartialView, We are can’t “public ActionResult SearchResutl()”, It can remove. Code fix same that: public ActionResult MemberSearch() { return View(); } [HttpPost] public ActionResult MemberSearch(ViewModesTest m) { var d = db.Members.Where(s => s.Name == m.Name && … Read more

[Solved] How to Format a date pass as a parameter to a function and return data is a string with “yyyy/mm/dd” format?

public string GetFormattedDate(String MyDateTime) { //Formating should happen here. DateTime dt = DateTime.Parse(MyDateTime); return dt.ToString(“yyyy/MM/dd”); } also can be done with this string dt = DateTime.Parse(txtDate.Text.Trim()).ToString(“yyyy/MM/dd”, CultureInfo.InvariantCulture); 4 solved How to Format a date pass as a parameter to a function and return data is a string with “yyyy/mm/dd” format?

[Solved] How to connect c# windows application with online access database [closed]

First of all you have to “Setting up an Access Database for Your Hosting Account” for online availability of “Access Database” as a centralized. If your hosting is with godaddy then visit this Link Here is a sample code of access online “Access Database” string connectionString = @”Provider=Microsoft.Jet.OLEDB.4.0;” + @”Data Source=”Path of you hosting provider … Read more

[Solved] testing if a link is a youtube link.

Though it would be better to add a clear question to the question, I just noticed the comment in this line of the provided code: if(url.toLowerCase().indexOf(“youtube”) > 0) // this is where my function fails. You should check what var url = $(“#<%=txtYoutubeLink.ClientID %>”).val(); actually returns, because in case the url starts with youtube, the … Read more

[Solved] How can i get “Table of content” from PDF file and save it to the tree struct?

Aspose.Pdf.Generator namespace only supports the feature to create TOC while generating new PDF and Aspose.Pdf for .NET does not support the feature to manipulate TOC in existing PDF file. However for the sake of implementation, the requirement is added in issue tracking system as PDFNEWNET-34836. Once the new feature becomes available, we would be able … Read more

[Solved] Open a file in c# [closed]

All that your code this is create a FileStream pointing to this file. So you could read the file and fetch its contents in memory. But you cannot expect it to open in any browser. You could use the Process.Start method to open the file using the default program that is associated with this file … Read more