|
|
|
You don't know about www.google.com
|
|
|
|
|
Hi
I am using AJAX TabContainer control with following settings. When I change a tab the postback happens and whole page refreshes. Because AutoPostBack="true"> . To AJAxify the behavior, I added UpdatePanel around it but still the page is refreshing. The control need to go to server because user controls contains some grids which need to be populated.
<br />
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager><br />
<asp:UpdatePanel ID="upTLTop" runat="server" UpdateMode="Conditional"><br />
<ContentTemplate><br />
<br />
<AjaxCT:TabContainer ID="tcProducts" runat="server" ActiveTabIndex="0" Style="height: 100%;<br />
vertical-align: top; margin: 0px; padding: 0px;" OnActiveTabChanged="Products_OnActiveTabChanged" AutoPostBack="true"><br />
<AjaxCT:TabPanel runat="server" HeaderText="MBS" ID="pnlMBS"><br />
<ContentTemplate><br />
<uc1:ucA ID="ucA1" runat="server" /><br />
</ContentTemplate><br />
</AjaxCT:TabPanel><br />
<AjaxCT:TabPanel runat="server" HeaderText="ABS" ID="TabPanel1"><br />
<ContentTemplate><br />
<uc2:ucB ID="ucB1" runat="server" /><br />
</ContentTemplate><br />
</AjaxCT:TabPanel><br />
</AjaxCT:TabContainer><br />
</ContentTemplate><br />
</asp:UpdatePanel><br />
<br />
<br />
How can I disable the page refresh and at the same time server side operation happens in this case?
Please advise. Thanks
AJ
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
Hi
I have two user controls on one aspx page. UC1 has a grid which contains a link button column which user clicks. Based on the value of clicked cell, I need to show some data into UC2.
1. How do I pass data from UC1 to UC2?
2. How do I invoke a function of UC2 from UC1?
Please advise. Thanks
AJ
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
mittalpa wrote: 1. How do I pass data from UC1 to UC2?
You can make use of Session or Delegates here.
mittalpa wrote: 2. How do I invoke a function of UC2 from UC1?
If it is a method needed by both the user controls, place it in a separate class and have it public/internal. Then call it from both the user controls.
|
|
|
|
|
From what I understand when you create an HttpModule you can register only the events you want the HttpModule to handle.
However, aren't HttpModules designed to run for all pages and you have to register it in Web.config?
If I wanted to create a service (class) that would use event chaining on the PreRender/Render event for a *given page* what would be the recommended design for this?
I'm guessing just a simple class that is bound by a delegate for the PreRender/Render event right? Are there any recommended base classes/interfaces I should inherit for this design?
|
|
|
|
|
Hi - I'm developing an ASP.net component that I need to implement through event chaining. For example:
this.Render += MyComponent.Render([Request])
Can someone show me how I would implement this?
|
|
|
|
|
|
OK - So I can do this in MyPage.aspx
this.PreRender += new EventHandler(_MyPage_PreRender);
But what I'd like to do is chain the event handler to a different class.
For example:
this.PreRender += MyComponent.PreRender
or even better:
this.PreRender += MyComponent.MyCustomMethod
So can I chain directly to a method in another class? If so then will you please provide some code to show me how to do this?
|
|
|
|
|
Hi
I need some help in developing one application based on forums in asp.net. I saw one application based on forums in code project website. This is the same application which I am looking for. For example this is the link which has the forum application.
http://www.codeproject.com/Forums/12076/ASP-NET.aspx
I just do not know how to implement this application. I would appreciate if anybody can give me sample application or any guidance how to do this application...
Thank you....
|
|
|
|
|
"Some help" and "give me sample application" are very different things. If you have absolutely no idea how to even start without someone handing you code, then you shouldn't try to develop this yourself. There are plenty of forums apps you could download.
|
|
|
|
|
Thank you very much for your guidance. But, Actually I developing a website. I need to implement this forum application in that website. If download forum app from internet, Is this possible to put in my website.
If it is possible, can you give me any link to download that application...
|
|
|
|
|
Hi I have created a method within a webservice to return object in JSON.
public class Car : System.Web.Services.WebService
{
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string GetCarSpecs(string CarID)
{
Guid photoid;
Guid thisCarID;
thisCarID= new Guid(CarID);
Car car = new Car(thisCarID);
string output = "{id:" + thisCarID.ToString() + " " + "name:" + car.name + " " + "details:" + car.details+ " " + "photoid:" + (Guid)car.photoid+ " " + "}";
return new JavaScriptSerializer().Serialize(output);
}
}
But I am very much in doubt i have got this wrong as I am hardcoding the JSON format which shouldn't be the case.
What am I doing wrong here and how can i fix it ?
Any help would be appreciated.
Thank You
Andyyy
|
|
|
|
|
You can directly serialize the Car object to JSON
like followng
return new JavaScriptSerializer().Serialize(car);
But this is the old way of doing, Now you don't need JavaScriptSerializer to serialize your object to JSON.
You can check this article, where i did something similar
ASP.NET Lazy Content Loading Through WCF REST Service[^]
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
but directly serializing the car object to jason is giving following error -
System.ArgumentException: RecursionLimit exceeded.
at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
at System.Web.Script.Serialization.JavaScriptSerializer.SerializeCustomObject(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
at System.Web.Script.Serialization.JavaScriptSerializer.SerializeCustomObject(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
at System.Web.Script.Serialization.JavaScriptSerializer.SerializeEnumerable
I will have a look at this lazy content loading article aswell.
Thank you
|
|
|
|
|
It seems that your Car class is referring itself in some way that’s why you are getting this error while serializing.
Can you share the Car class code?
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
I can mail you the class if you like as it's bit big for CP ?
|
|
|
|
|
Hi,
I need some guidance on how to store the information in a page for the specific requirement.
There are following steps involved in the process.
1) Web application A has deafult page hosting two frames a)frame for drop downs (dd.aspx) b) frame for forms (form.aspx)
2) default.aspx calls a webservice on page load.
2) webservice returns some information e.g. company name, departments, employees in each department, each employees details to Web application A.
<b>Question 1: which format the webservice should return the information . Dataset or XML or JSON</b>
3) Web application's default.aspx forms related drop down lists in dd.aspx (Frame 1)
4) When user selects company name, related dept, a specific employee from the drop down list and clicks ok
5) Second frame (form.aspx) gets the information and generates a form dynamically using this information. Here it uses some javascripts which are based on the information recieved from selected Dropdowns and used to create the data etnry form.
Question 2: <b>Should web service be sending the ready made javascripts? </b> in this case it will be huge information for each object sent .
or
Should the webapplication has code to generate the javascript based on the selected drop down lists?
<b>Question 3: How should the default.aspx or dd.aspx should store the information? Should it be session variable or viewstate? should the data be in dataset format? If the javascripts are to be stored then will it cause performance problem in storing the huge information at page level.
</b>
regards
Vijay
|
|
|
|
|
|
Hi,
I created a virtual directory and connected it to physical path.
My problem is that i recieve an error where i'm trying to access to the address.
Here is the error-
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 49: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 50: <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 51: <add assembly="System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 52: <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 53: <add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Source File: C:\www\root\AdminDailyLog\web.config Line: 51
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Can someone please help me?
Tamir
|
|
|
|
|
Looks like your webserver has not .net 3.5 framework installed. Install .net3.5 sp1 there then there should not be an error.
|
|
|
|
|
i'm not sure,
because i have applications that already running on the server.
|
|
|
|
|
treuveni wrote: i'm not sure,
You are not sure of what? How to install .NET 3.5 while other applications are running?
OR
You are trying to say that other applications that need .NET 3.5 are already running so that installation would not resolve your issue?
If it's the first one, you don't have an option other then to have a downtime and install it on server!
|
|
|
|
|