|
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 )
|
|
|
|
|
i have sucessfully created a login system that enables users to register and login using visual studion 2005. It works fautlessly on the local machine. However when i run it remotely i get an error. the details of the error are not displayed to me. It is obviously a problem with IIS configuration???? can anyone help please.
|
|
|
|
|
I have replied your message since long time back. Why do you re-post this message without replying to the original post?
RE: LOGIN SCRITP[^]
|
|
|
|
|
Hi.
I'm building a web page (ASP.NET in VB) that is displaying employee list. For each employee I need to include their availability status (I think it's called smart tag). This smart tag can be found on Instant Messenger or in Outlook Express beside person's name.
Now. Do I need to use smart tag for that or somehting else? Do I have to build it from scratch or I can reuse some objects in office? Not sure where to start. The 'smart tag' when clicked should show the menu (as it does in outlook/IM) with email, start IM, and user info, etc. If more explanation is needed please let me know.
I use VS 2003, framework 1.something
Please help. Thank you.
Alex.
|
|
|
|
|
Hello,
I am trying to have my web page check if the client has an activex control installed before loading the page. I want it to look for the Visio Viewer add-on. I tried to do a Try-Catch on loading a document and tried to check file existence but that either doesn't work or I am doing it wrong. Any help?
|
|
|
|
|
Is there anyone that can provide some assistance with this? I just want my ASP.NET page to look for an activeX control or associated DLL on the client machine. If it finds it, then it proceeds to load the diagram. If not, it redirects the client to the Visio Viewer installer located on the internal network (I don't want the client to go to Microsoft's website).
|
|
|
|
|
Hi, I just made a simple Web Page that communicates with a simple Web Service. Both work fine on my machine, but I can't seem to find the way to install them on another computer.
I even made a Web Setup Project, but it didn't help. I tried some stuff with the Default Web Site of IIS, as well as putting my files in the Inetpub/wwwroot directory, but it doesn't work.
Can any of you tell me the steps to install a Web Service and its Web page? Thank you very much!
|
|
|
|