/    Sign up×
Community /Pin to ProfileBookmark

Microsoft JScript runtime error: Object expected

Hi I am getting the error in the following code:mad:

function selectProviderinfo(CSAuths_SelectedRefProviderId, CSAuths_SelectedRefProvider_CompanyId)
{
😡 if( queryString(“provType”)==”referring”)
{
window.opener.document.getElementById(“txtRefProvID”).value=CSAuths_SelectedRefProviderId;
window.opener.document.getElementById(“FindCompanyID”).value=CSAuths_SelectedRefProvider_CompanyId;
window.opener.document.getElementById(“btnLoadRefProvInfo” ).click();
}
else if ( queryString(“provType”)==”servicing”)
{
window.opener.document.getElementById(“txtAdmitProvID”).value=CSAuths_SelectedRefProviderId;
window.opener.document.getElementById(“FindCompanyID”).value=CSAuths_SelectedRefProvider_CompanyId;
window.opener.document.getElementById( “btnLoadAdmitProvInfo” ).click();
}
self.close();
}

The code behind is

Protected Sub ImageButton_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
Dim img As ImageButton = CType(sender, ImageButton)
Dim CSAuths_SelectedRefProvider_CompanyId As Int32
Dim CSAuths_SelectedRefProviderId As String
Dim CSAuths_SelectedServicingProviderId As String
If Not IsNothing(img) Then
Select Case Request(“provType”)
Case “referring”
CSAuths_SelectedRefProvider_CompanyId = MyApp.CallerCompanyId
CSAuths_SelectedRefProviderId = Me.lblProviderID.Text
Functions.CallFunction(Me.Page, “selectProviderinfo”, CSAuths_SelectedRefProviderId, CSAuths_SelectedRefProvider_CompanyId)
Case “servicing”
CSAuths_SelectedRefProvider_CompanyId = MyApp.CallerCompanyId
CSAuths_SelectedServicingProviderId = Me.lblProviderID.Text
Functions.CallFunction(Me.Page, “selectProviderinfo”, CSAuths_SelectedRefProviderId, CSAuths_SelectedRefProvider_CompanyId)
End Select
End If
End Sub

Can anybody help me to find this error.I need to fix this aspp
Thanks

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Mar 23.2007 — If it is .NET, txtRefProvID is not the id of the element. The >NET framework changes it. You need to reference the generated ClientId.

Eric
×

Success!

Help @evar spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...