Click here to Skip to main content
15,898,134 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Window Popup Pin
Michael Sync6-Dec-07 18:47
Michael Sync6-Dec-07 18:47 
GeneralAsp.net Master Pages... Pin
Member 46484916-Dec-07 18:12
Member 46484916-Dec-07 18:12 
GeneralRe: Asp.net Master Pages... Pin
Sathesh Sakthivel6-Dec-07 18:39
Sathesh Sakthivel6-Dec-07 18:39 
GeneralRe: Asp.net Master Pages... Pin
Michael Sync6-Dec-07 18:48
Michael Sync6-Dec-07 18:48 
GeneralRe: Asp.net Master Pages... Pin
Guffa6-Dec-07 22:52
Guffa6-Dec-07 22:52 
QuestionSql Statement in JavaScript Pin
Usharva6-Dec-07 16:53
Usharva6-Dec-07 16:53 
GeneralRe: Sql Statement in JavaScript Pin
Sathesh Sakthivel6-Dec-07 17:36
Sathesh Sakthivel6-Dec-07 17:36 
GeneralRe: Sql Statement in JavaScript Pin
Usharva6-Dec-07 18:18
Usharva6-Dec-07 18:18 
I have used AJAX but while calling that function its showing error

below is my code

<Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.ReadWrite)> _
Public Function mfn_Deliverer(ByVal strWeight As String, ByVal strShipMode As String, ByVal strDelivere As String) As String
strsql1 = " SELECT postal_rate " & _
" FROM t_master_postalRates where '" & strWeight & "' >=wt_from " & _
" AND '" & strWeight & "' <=wt_to and shipMode_id='" & strShipMode & "'" & _
" AND deliverer_id='" & strDelivere & "'"
Dim dt As New DataSet
dt = CreateDataset(sqlCn, CommandType.Text, strsql1)
dim strPostageCharges as string=""

If dt.Tables(0).Rows.Count > 0 Then
strPostageCharges = IIf(IsDBNull(dt.Tables(0).Rows(0)("postal_rate")), 0, dt.Tables(0).Rows(0)("postal_rate"))
End If
Return strPostagecharges

End Function



JavaScript

function CheckDeliverer()
{
var Weight,Shipmode,Deliverer;
var PostalCharge;
if(isNaN(document.getElementById("txtPackingcharges").value)||document.getElementById('txtPackingcharges').value=='')
{
Weight = 0.0;
}
else
{
Weight = document.getElementById("txtPackingcharges").value;
}


Shipmode=document.getElementById('ddlShipMode').options[document.getElementById('ddlShipMode').selectedIndex].value;
Deliverer=document.getElementById('ddlDelivery').options[document.getElementById('ddlDelivery').selectedIndex].value;


PostalCharge= Mailing_Mail_Order_Form.mfn_Deliverer(Weight,Shipmode,Deliverer)

if PostalCharge ==''
{
alert('Deliverer is not available');
}
else
{
document.getElementById('txtPostageCharges').value=PostalCharge;
}
}
GeneralRe: Sql Statement in JavaScript Pin
Christian Graus6-Dec-07 18:48
protectorChristian Graus6-Dec-07 18:48 
GeneralRe: Sql Statement in JavaScript Pin
Christian Graus6-Dec-07 17:56
protectorChristian Graus6-Dec-07 17:56 
GeneralIIS configuration Pin
solarthur016-Dec-07 13:48
solarthur016-Dec-07 13:48 
GeneralRe: IIS configuration Pin
Michael Sync6-Dec-07 14:43
Michael Sync6-Dec-07 14:43 
GeneralSmart Tag for web page Pin
alexfromto6-Dec-07 8:42
alexfromto6-Dec-07 8:42 
GeneralDetecting ActiveX Control Pin
Dannyrod6-Dec-07 8:09
Dannyrod6-Dec-07 8:09 
GeneralRe: Detecting ActiveX Control Pin
Dannyrod10-Dec-07 2:47
Dannyrod10-Dec-07 2:47 
GeneralWeb site/service deployment Pin
goldoche6-Dec-07 7:58
goldoche6-Dec-07 7:58 
GeneralRe: Web site/service deployment Pin
pmarfleet6-Dec-07 11:01
pmarfleet6-Dec-07 11:01 
GeneralFluid tab control using MultiView Pin
gibby104726-Dec-07 5:16
gibby104726-Dec-07 5:16 
GeneralVirtual Directory Pin
Civic066-Dec-07 4:46
Civic066-Dec-07 4:46 
GeneralRe: Virtual Directory Pin
Fred_Smith6-Dec-07 4:53
Fred_Smith6-Dec-07 4:53 
GeneralSetting Focus on a TextBox and sellecting the text in a DataGrid with TextChanged Pin
thomasa6-Dec-07 4:39
thomasa6-Dec-07 4:39 
GeneralThe solution Pin
thomasa6-Dec-07 5:25
thomasa6-Dec-07 5:25 
GeneralRe: The solution for IIS 2.0 Pin
thomasa6-Dec-07 5:53
thomasa6-Dec-07 5:53 
GeneralRe: The solution for IIS 2.0 Pin
Kelly Herald6-Dec-07 9:03
Kelly Herald6-Dec-07 9:03 
Questionhow to detect whether the requesting machine is a mobile? Pin
Rocky#6-Dec-07 4:37
Rocky#6-Dec-07 4:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.