|
Don't cross post. It's just plain rude. If people don't reply, it doesn't mean to try again. Maybe no one knows.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
How to call JavaScript function to FooterTemplate textbox of the GridView
|
|
|
|
|
Hi! I have an application which are both deployed in an intranet and an internet. But how can I determine if the user is accessing through the internet or intranet?
|
|
|
|
|
|
You can get the client's IP address by using Javascript. So, you can determine whether this IP address is in your LAN IP addresses range or not. but if you want to move your site to another LAN that uses the different IP ranges then you will need to change the IP address again.
|
|
|
|
|
i am having try and catch block in aspx page which calls class1 which again call class2.There are separate try and catch block in classes .How will i show to the user where has the exception taken place in aspx page or class1 or class2 . Please help me out. Thanks .
|
|
|
|
|
I think you can probably use Exception.StackTrace[^] for that. You have to throw the exception from the classes. If your classes eats the exceptions then you wont get it in your page.
|
|
|
|
|
In class2 handle the specific exception, and do the cleaning code. Re-throw exception with a user friendly message and your first class can handle it. I'd use a custom Exception class.
|
|
|
|
|
I am using Microsoft.Web.UI.WebControls(tab control and multi page) , in Localhost it run good , in my hosting when i view by IE it don't appear the tab but view by Firefox it appear. Why? Please help me. Thanks
Thanks In Advance
|
|
|
|
|
With which version of IE have you tested this with?
I just tested the same issue with 7.0 and it worked fine at my end.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
|
We speak English here.
I'd ask what you want to know, but I suspect if you're asking at this sort of level, you probably don't know yourself. Try googling, try to see if Amazon has a book, your question is far too broad and top level to be adequately answered in a forum post.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
I have a problem in HOVER MENU and ROUNDED CORNER EXTENDER control of ASP.Net AJAX....
I took a label and 3 link buttons in a panel and tuk hover menu extender....set the properties of it like the
Target control id=Label1;
Popup Control id=Panel1;
but i want the panel with rounded corners at the bottom...so i tuk a rounded corner extender control and set its Targetcontrol id = Panel1...
Here comes my problem... the panel1 which is Popup Control id for HOVER MENU is not at all displaying the link buttons that are present in it....
That is the bottom of the panel is rounded but the hover menu functionality is not working at all... ....
Cud u plz help me out of this problem...
|
|
|
|
|
Hi
I am using a grid view control, on click of update link in the grid view i want to popup one window in which the user will insert a string value on click of ok button on this window the string value should be send back to grid view page where i will display this value.
can any one tell me how to do this?
|
|
|
|
|
You may check-out this link. but it doesn't include for showing the input string in gridview so that you may probably need to extend a lit bit.
Custom Javascript Dialog[^]
|
|
|
|
|
How Can i add color to my content page?
|
|
|
|
|
You might want to try giving the gridview a cssClass, then in the stylesheet
Code:
.SomeGridView a {color:#000000;}
.SomeGridView a:hover {color: #ff00000;}
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
You can set the style to the element which is available in content page. Normally, there is at least one DIV in content page. so, you can set the style to this div.
Hope it helps.
|
|
|
|
|
The content page itself is not rendered as an html element, so you can't set any style on the content page at all.
You have to set the color on an element outside the content tag (in the master page) or inside the content page.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
How to use SQL Query in JavaScript in ASP.Net?
If this is not possible can you suggest me on alternate plss
Thank you
|
|
|
|
|
Try to use ajax instead of this.That will be more easy.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
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;
}
}
|
|
|
|
|
Then your code is broken. Tell us the error you're getting and what you've done to try and fix it.
Is this the ASP.NET AJAX library you're using ? You shouldn't need a third party library for a basic call like this, is this the only reason your code is dependant on it ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
To add to what someone else said, AJAX is not just easier, it's the only way. javascript cannot talk to your database, even if it was visible to the client.
I suggest reading up on how ASP.NET works, so you understand the difference between the client and the server.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|