Hello to everybody, I'm just starting a new asp.net 3.5 web project, I was looking on the net for the best practice on Web UI navigation but I found no valid solution... I was looking for guidelines or full commercial template on how the Web UI should look like... I mean the navigation, the menu organization and so on... For the architecture I was driven to develop a standard : Web-UI -> WebServices (Core Level) -> DB Thanks in advance Paolo
Ponzano Paolo
Posts
-
What are the best practice for Web UI Development?? -
which dll to operate with DNS Service?Hello, I need to work with DNS primary lookup zone, rigth now I'm doing it by calling shell, anyone knows which dll should I use to add/remove records? Thanks in advance Paolo
-
DNS Forward Lookup and Windows 2008 Server DataCenterHello to everyobdy, I just want to know how many DNS entries can be stored inside a Forward Lookup Zone (Primary)... thanks in advance Paolo
-
How to use jquery to notify ASP an event has happenedHello to everybody, I'm currently developing a 2 level menu using jQuery... I load data from a Webservice and populate the toplevel item and sublevelitems... my webapplication is made of ascx and I've got a main page that load the ascx, I was wondering if there's a way using jQuery to notify the server that a menu item has been clicked ( I tried creating an ajax asp.net server control menu but got lost, so I moved to jQuery)... Thanks in advance Paolo
-
Custom Control with different Templares...Hello to everybody, I'm currently writing my first "serious" Server Control, I have written a dual layer tabbed Menu (not ajax).. it's almost finished but today I discovered we'll have two different menu based on user credential. I'll use it into a MasterPage and it will be present in all the pages I've developed. How can I make something as some ASP.NET control do? for example
<cc1:ServerControl1 runat="server">
<CaseAdmin>
<TopLevelItems>
<TopLevelItem Text="First Item - Admin">
<TopLevelItem Text="Second Item - Admin">
</TopLevelItems>
</CaseAdmin>
<CaseUser>
<TopLevelItems>
<TopLevelItem Text="First Item - User">
<TopLevelItem Text="Second Item - User">
</TopLevelItems>
</CaseUser>Is somewhere an example on how to do this? Thanks Bests Paolo
-
Multiple Gridview mantaining LINQ relationshipsHello, I try to explain as best as I can what I'm trying to do: 1)I'm writing a web app using ASP.NET / FW 3.5 and LINQ to SQL. 2)I've got a table called Categories {id, description} and SubCategories {id,parentid, description} 3)I've got two gridview binded to the tables above with LinqDataSource (tried with a single data source and 2 different one) Even if on db there's a relationship between Categories and SubCategories I can't find an easy way to have the second gridview (the subcategories one) binded to the first one. right now I'm doing the "binding" between the two manually, getting the selected row from first and digging to get the id, but I don't like it much, since sometimes category grid view loses the selectedrow property. Is somewere an example or tutorial about how can I do it in the best way? Thanks Bests
-
Localizing a text fileHello, I try to explain you my situation : I've got a web application (vs2008 and fw 3.5),I've also got a file.txt I've added under App_GlobalResources called resistrationBody.txt, my questions are : 1) how can I read this file from resources (not being this file a .resx file) 2) can I localize it as it can be done with .aspx.en.rex file? Thanks Paolo Ponzano
-
.NET remoting and calling a Constructor with parametershello Pete, I've tried with this :
myDBHelper = (DBHelper)Activator.CreateInstance(typeof(DBHelper), new object[] { idCup, idSeason, idMatchCode });
but I get this error : {"Cannot run a non-default constructor when connecting to well-known objects."} Getting bored.... with CAO object I'm able but I got the memory used by the server increase a lot and won't free in any way... Thank -
.NET remoting and calling a Constructor with parametersHello to everybody, I need to use .NET remoting to create a remote object with a 3parameter constructor, I'm not able to find an example, can anyone provide me a working example? I've also tried to call a parameterless constructor then using the properties but I got the error below:
myDBHelper = (DBHelper) Activator.CreateInstance(typeof (DBHelper)); myDBHelper.IdCup = 1; <- //The server committed a protocol violation. Section=ResponseStatusLine int i = 0;
Thanks Paolo -
How to use ObjRef.GetRealObject() functionHello to everybody, I was wondering how to use this function to have the Real Object instead of the trasparent proxy one. I'm asking this since I wish to use .NET remoting to remotize a SQLDataReader. Last Time I tried I have a really bad performance, since each single sdr.Read() returns to the remote object and then to the calling client, with a really high time overhead. I've seen that ObjRef has got this method :
GetRealObject(StreamingContext context)
, it's possible to use it in the code or it's used just when overriding it? if yes, where I get this StreamingContext? Thanks Paolo -
DataGridView and Genericsok, now that the problem has been fixed we've another one that came out, and for this I need your help at all!!! This is the main form event :
private void Form1_Load(object sender, EventArgs e) { myWorker = new Worker(); dataGridView1.ReadOnly = false; dataGridView1.DataSource = myWorker.myList; Thread myThread = new Thread(new ThreadStart(myWorker.DoWork)); myThread.Start(); }
The Worker class is this one :public class Worker { public BindingList myList = new BindingList(); public void DoWork() { Random r = new Random(); for(int i=0; i<1000; i++) { myList.Add(new Product("Test",r.Next(),r.Next())); Thread.Sleep(1000); } } }
At themyList.Add(...)
I get an exception of type "Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on." But this happen in a Business Object not in a Window's Control. I suppose this's because of the datagridview.Datasource property set, but how can I fix it? Thanks in advance, Bests -
DataGridView and GenericsFirst of all, thanks to all of you for your answe, I've resolved it using BindingList instead of List, now I've a problem of cross-threading but I'm gonna take care of it! Thanks again Paolo
-
DataGridView and Genericsso what should I do? Thanks Paolo
-
DataGridView and GenericsHello to everybody, I've got a problem with datagridview and generics, here's the piece of code :
dataGridView1.ReadOnly = false; List myProds = new List(); myProds.Add(new Product("Prod 1", 1, 1)); myProds.Add(new Product("Prod 2", 2, 2)); myProds.Add(new Product("Prod 3", 3, 3)); dataGridView1.DataSource = myProds; myProds.Add(new Product("Prod 99", 99, 99));
on video I've 3 rows but in the datagrid.datasource I've 4 items. Where do I do wrong? Thanks in advance Paolo Ponzano -
Docking a DialogBox into main formthanks for your reply, and what should I do about the left one? size it to 0? as I've asked before how do I get the parent control? have I to pass it as parameter to constructor of the dialogbox? Ho do I get it from main form? Thanks Bests Paolo Ponzano
-
Docking a DialogBox into main formThanks a lot, how do I get the Main form control in order to do dialog.parent = mainformcontrol ? Thanks
-
Windows Service and HTTP PageHello to everybody, I've ben asked to create an aspx page that reads data from a Windows Service, not a Web Service, is it possible? any idea on how I can create such application? Thanks Bests, Paolo
-
Docking a DialogBox into main formHello, maybe it's a stupid question, I had a form that before was shown as DialogBox with
DialogBox.ShowDialog();
, now my boss want me to dock it on the right side of the main application, how can I do that? Thanks in advance Paolo -
Wich tool do you use for static code analisys?Hello to all, I've used for a while FXCop for finding error coding and exception not catched, what other program do you use to do off-executing analisys for application (in my case windows application). Do you know if there're some program like Devparter but costs less? I mean memory profiling with graph and so on, thanks Paolo Ponzano
-
.Net remoting, registering two channel? how???I've fixed it, I've used:
IDictionary pros = new Hashtable(); pros["port"] = tcpPort; pros["name"] = type; IChannel ic = new TcpChannel(pros, null, null);
and I had to substituteRemotingConfiguration.RegisterActivatedClientType(typeof(DBHelper), sb);
withRemotingServices.Connect(typeof (DBHelper), sb);
Seems to work, do you know if there's still something I've to do? Thanks