|
Hi All,
I have a .Net Web service I need to pass data and some user defined objects from and to the other web services. I am able access and send the data but the objects are not passed.
Even I have declared the classes as [Serializable]. Please advice me. The two classes as as follows.
The ticket class containd the object of CI class. I am able to get data from the Ticket class objects but but unable to get the data from the object of CI class that is there in the Ticket class.
Anybody please give me some suggestion.
[Serializable]
public class CI
{
//private String CI_TYPE;
private String _ASSET_TAG;
private String _ASSET_FAMILY;
private String _location;
Note : Prperties of this class I havenot mentioed here they are there
}
[Serializable]
public class Ticket
{
private RecType _REC_TYPE;
private String _SR_ID;
private DateTime _LAST_MOD_DT;
private String _COMPANY;
private String _LOCATION;
private String _CATEGORY;
private String _SEVERITY;
private String _STATUS;
private String _BILLABLE;
private CI _SERVICE_CI;
private CI _HARDWARE_CI;
private DateTime _OPEN_DATE;
public RecType recType
{
get
{
return _REC_TYPE;
}
set
{
_REC_TYPE = value;
}
}
public String srId
{
get
{
return _SR_ID;
}
set
{
_SR_ID = value;
}
}
public DateTime lastModDate
{
get
{
return _LAST_MOD_DT;
}
set
{
_LAST_MOD_DT = value;
}
}
public String company
{
get
{
return _COMPANY;
}
set
{
_COMPANY = value;
}
}
public String location
{
get
{
return _LOCATION;
}
set
{
_LOCATION = value;
}
}
public String category
{
get
{
return _CATEGORY;
}
set
{
_CATEGORY = value;
}
}
public String severity
{
get
{
return _SEVERITY;
}
set
{
_SEVERITY = value;
}
}
public String status
{
get
{
return _STATUS;
}
set
{
_STATUS = value;
}
}
public String billable
{
get
{
return _BILLABLE;
}
set
{
_BILLABLE = value;
}
}
public CI serviceCI
{
get
{
return _SERVICE_CI;
}
set
{
_SERVICE_CI.assetFamily = value.assetFamily;
_SERVICE_CI.assetIdentifier = value.assetIdentifier;
_SERVICE_CI.location = value.location;
}
}
public CI hardwareCI
{
get
{
return _HARDWARE_CI;
}
set
{
_HARDWARE_CI.assetFamily = value.assetFamily;
_HARDWARE_CI.assetIdentifier = value.assetIdentifier;
_HARDWARE_CI.location = value.location;
}
}
public DateTime openDate
{
get
{
return _OPEN_DATE;
}
set
{
_OPEN_DATE = value;
}
}
}
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
modified on Sunday, June 22, 2008 3:06 AM
|
|
|
|
|
Hi, thanks for looking
Which of the following state management techniques allow you to track information across multiple Web pages when using multiple front-end Web servers? (Choose all that apply.)
Cookies
Session state
Application state
Hidden fields
Query string
...
Correct answers: Session State and Cookies
My question: Cant Application state be used when using multiple front-end Web servers?
Any comments are welcome
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
The problem with Application state is, it's for the entire app. So if you have more than one user, the information stored is for all users, not just the one you're focused on.
Was cross page postback on the list ? Why can't you pass information between pages by forming the appropriate query strings ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Complete list of options and explanation:
Control state
Application state
Session state
Cookies
Viewstate
Query strings
Hidden fields
Correct answers: Session and cookies
EXPLANATION:
Session state can be stored in a central state server or in a Microsoft SQL Server database. Therefore, by configuring multiple front-end Web servers to store Session state in a single server, a user can move between Web servers without losing Session state.
Cookies store all information on the client, rather than on the server, placing no server-specific requirements on the Web application.
ViewState, ControlState, and hidden fields can be used only to maintain state for a single ASP.NET form. You cannot use them to track settings across multiple Web pages.
Query strings require adding parameters to every link the user might click on your site. Therefore, it would be very difficult to ensure that every link was dynamically generated to contain state information.
Alexei Rodriguez
|
|
|
|
|
AlexeiXX3 wrote: My question: Cant Application state be used when using multiple front-end Web servers?
Not to share data between servers. Each server is running a separate instance of the application.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hi
when i use the Ajax-PopupControlExtender in the normal aspx page directly it works fine. but i have a problem in using Ajax-PopupControlExtender in WebUserControl and call the WebUserControl to the aspx page. it's not working fine . the error message is below,
WebService Call Failed : 404
my coding is,
Source code in WebUSerControl :
<asp:scriptmanager id="ScriptManager1" runat="server" xmlns:asp="#unknown">
<asp:updatepanel id="UpdatePanel1" runat="server" xmlns:asp="#unknown">
<contenttemplate>
<asp:hyperlink id="HyperLink1" runat="server">HyperLink
<cc1:popupcontrolextender id="PopupControlExtender1" dynamiccontextkey="123" runat="server" dynamicservicemethod="GetValue" xmlns:cc1="#unknown">
TargetControlID="HyperLink1" PopupControlID="Panel1" DynamicServicePath="/DisplayPopupcontrol.aspx" DynamicControlID="Panel1"
Position="bottom">
<asp:panel id="Panel1" runat="server" width="200px">
Code Behind CS code in WebUserControl :
Imports System.Data.SqlClient
Imports System.Data
Imports System.IO
Imports System.Collections
Imports HSSPMS.BusinessFacade
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Partial Class ajaxusercontrol
Inherits System.Web.UI.UserControl
Shared dtContactLst As New DataSet
Shared objCustMstr As New CustomerFacade
<system.web.services.webmethodattribute(),> _
Public Shared Function GetValue() As String
dtContactLst = objCustMstr.GetContactValues(1)
Return ContactList(dtContactLst)
End Function
Public Shared Function ContactList(ByVal dsContact As DataSet)
Dim strTemp As New StringBuilder()
If dsContact.Tables(0).Rows.Count > 0 Then
strTemp.Append("")
strTemp.Append("")
Dim dr As DataRow
For Each dr In dsContact.Tables(0).Rows
strTemp.Append("")
strTemp.Append("")
strTemp.Append("")
Next
strTemp.Append("Contact Info: | E-Mail : " & dr.Item(0).ToString() & " | Tel No : " & dr.Item(1).ToString() & " | Fax No: " & dr.Item(2).ToString() & " | ")
Else
strTemp.Append("")
strTemp.Append("")
strTemp.Append("")
End If
Return strTemp.ToString()
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim pce6 As AjaxControlToolkit.PopupControlExtender = TryCast(Me.FindControl("PopupControlExtender1"), AjaxControlToolkit.PopupControlExtender)
' Set the BehaviorID6
Dim behaviorID6 As String = String.Concat("pce6", "1")
pce6.BehaviorID = behaviorID6
Dim OnMouseOverScript6 As String = String.Format("$find('{0}').showPopup();", behaviorID6)
Dim OnMouseOutScript6 As String = String.Format("$find('{0}').hidePopup();", behaviorID6)
HyperLink1.Attributes.Add("onmouseover", OnMouseOverScript6)
HyperLink1.Attributes.Add("onmouseout", OnMouseOutScript6)
End Sub
End Class
In Source Code in Normal aspx Page :
<title>Untitled Page
<uc1:ajaxusercontrol id="Ajaxusercontrol1" runat="server" xmlns:uc1="#unknown">
Can anyone help me ??? it's urgent !!!!!
Thanks in Advance!!!
Sabarees
modified on Saturday, June 21, 2008 1:21 PM
|
|
|
|
|
Hi,
I wrote an asp app and when I deploy and run it on the server, it will run up to a point then issue a timeout error along with some Event Viewer messages.
When I run the app from my VS IDE, in Release mode the app runs happily without any errors and using the same exact data parameters and settings.
I know that when running from IDE in Debug mode, the debug=true param is set, but I'm running in release mode and I understand that debug=false in that scenario. But regardless, I set debug=true when deployed and it still errors out.
web.congif has session timeout and httpruntime timeout set to over 20 minutes and I also found a trick here on codeproject top keep the page session alive. My sql calls in the app also have high timeout settings.
Can anyone think of why an asp app would run perfectly through IDE and not in production?
If the errors I got were a bit more verbose I might be able to do something with them, but they are not, just says Timed Out.
Thanks in advance for any help!!
PhrankBooth
|
|
|
|
|
Anyone have any ideas about this?
PhrankBooth
|
|
|
|
|
Hi All,
I am hardly few months old in asp.net. My current project requires to list the folders (rootfolder) in a treeview. I am using VS2003 and thats the trouble all about. I guess it is easier in VS2005. I did a lot of research and found various codes from the web, however, when I write soemthing with a "Tree" like "TreeView", "TreeNode", "TreeNodeCollection" etc it displays a wiggly line below it. What is the namespace to be included? what am I missing....Someone please explain all this to me together with the code at the earliest....Any help in this regard is highly appreciated.
Regards,
Rinjin
|
|
|
|
|
We have deployed three applications(three different virtual directories) having the following settings for SSO.
Forms Authentication-Settings are similar in all the applications
MachineKey entry is kept similar in all the web.config.
The authentication cookie is not persistent.
SSO works well in IE. When the user opens a new window, it asks for the user to log in. When the user navigates to other sites from the same window, it doesn't ask for log in.
In firefox, even if a new window is opened, it doesn't ask for log in and logging in automatically.
Please help.
|
|
|
|
|
hi
how to clear particular page history only from browser.
please can any one help. I need hardly.
thanks
You get the best out of others when you give the best of yourself.
modified on Saturday, June 21, 2008 7:55 AM
|
|
|
|
|
Try given following options:
Add this in Head section:
<head>
<pre><meta http-equiv="CACHE-CONTROL" content="NO-CACHE"></meta>
OR
on Page load method:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetAllowResponseInBrowserHistory(false);
Parwej Ahamad
R & D: REST services with WCF
|
|
|
|
|
actually I want to clear history for particular page only not all history.
I applied
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE"></meta>
in master page
and
in page load in test.aspx.cs page
Response.Cache.SetCacheability(HttpCacheability.NoCache);Response.Cache.SetAllowResponseInBrowserHistory(false);
but still it's going back by browser.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: how to clear particular page history only from browser.
You can't using ASP.NET. ASP.NET runs on server and emits HTML for the requests. It can't access client's computer and delete history.
trilokharry wrote: I need hardly.
hardly ?[^]
|
|
|
|
|
hi,
In Masterpage i have a LinkButton control (Enabled=false)i.e Disabled.
I want to Enable that LinkButton from another page .
how do I Enable the button control created on masterpage from another aspx page?? is this possible?
Thanks in advance.
|
|
|
|
|
With the help of FindControl method:
LinkButton lbn=(LinkButton) this.Page.Master.FindControl("Likbuttonid");
Parwej Ahamad
R & D: REST services with WCF
|
|
|
|
|
Hi Parwej Ahamad,
Thanks for your reply.
Its working only in pageload, but not in other events and functions where we use Response.Redirect("url")& Server.Transfer("url").
In my case i have to Enable that Master page Button & i have transfer user to another page.
I wrote this in btn_LoginClick() Event.
So i have Enable that button and i have to transfer user to another page.
Please help me... How do i achive this.?
Thanks
|
|
|
|
|
Hi,
I am using System.Web.HttpContext.Current.Session at my cs file for accessing Session variables like:
1. String CustomerID="0";<br />
2. if(System.Web.HttpContext.Current.Session["CustID"]!=null)<br />
3. { <br />
4. CustomerID=<br />
5. System.Web.HttpContext.Current.Session["CustID"].ToString();<br />
6. }<br />
<br /> 7. //////////
It give an object reference not set to an instatnce of an object- error at line number 2.
I have allready assigned the Session["CustID"] at another page.
N a r e s h P a t e l
|
|
|
|
|
|
How to connect the sql server 2005 database to vb.net 2005 please provide the code.
|
|
|
|
|
If you have no idea how to do this, you either have not read your book, or you have not bought one. Either way, the process is too complex to answer in a forum post. Buy a book, read an article, come back if you've tried to do it, and have a *specific* question. That's where these forums are better than google, not top level 'I have no idea where to start because I haven't looked' questions.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Dim Con As New SqlConnection
Con = New SqlConnection("Data Source=server; Initial catalog=TEST;Integrated security=true;")
Sathya
|
|
|
|
|
Now, you know he's going to try this verbatim and come back to say it didn't work, right ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Or I'll get a bunch of 1 votes from retards, and he'll do what so many people do, ask vague questions and ignore all the people who try to help them further.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
if i assign in login page what happen, how to check after login user verified or not which condition i need to check
Request.IsAuthenticated is always showing true,
when it will be true and when it will false,
for setting Request.IsAuthenticated =true what we need to do
This is haneef.............................................................
|
|
|
|