|
Hi,
Can you anybody tell me how can we use the "API calls" in asp.net?. Please give me simple example or any idea.
Thanks,
Periyasamy.R
|
|
|
|
|
PeriyasamyRamachandran wrote: Can you anybody tell me how can we use the "API calls" in asp.net?
API just means Application Programming Interface, i e you must be having some some dll or webservices. Create an object of the required class and access the method of those class using the object or if there is static method then you can access it using the class name itself.
Are you talking about something else?
|
|
|
|
|
Yes i am looking something like i have to retrieve the data from a server and update into my local database. To retrieve the data i need to use "API cals". Can you reply how can i proceed this? or Please give an example for API calls.
Thanks,
Periyasamy.R
|
|
|
|
|
If you mean accessing windows dlls / win32 api or something, please search for "p/invoke .net api" in google or have a look here
|
|
|
|
|
I have a multiple web sits asp.net application.
In this application different domains using the same pages.
All pages inherit from base class named: PageBase
wich inherit from System.Web.UI.Page.
By using: HttpContext.Current.Request.ServerVariables["HTTP_HOST"]
i cen determine what is the domain and then get all the info i need
for this domain and everything is working good.
My problem begin when i want to use different visitor counter for each site based on session.
Because Global.asax have Global events:
Session_Start
Session_End
simple counter will count all visitors on all sites together.
I try to make code behind for the Global.asax in different class
but i cold not get in that class the PageBase(System.Web.UI.Page) web site info.
I will be very thankful for any ideas to solve this problem
cheinan
|
|
|
|
|
hi everybody - please halp...
|
|
|
|
|
Hi,
I have implemented ICallbackEventHandler interface on a page and calling it in different context with different controls. Its working okay on keydown of a text box, click of an html button control and mouseover of a button control. But i need to use it with imagebutton or button control at click event. On click event the RaiseCallbackEvent function is called, then the GetCallbackResult(), but after that the GetCallbackResult() does not call the java script function that updates the page with the results retreived from GetCallbackResult().
This is only happning with click event of the ASP.net button or image button control and here also every thing is being invoking except the last javascript funciton that updates the page.
Apparently there seem no problem in my code. it seems some thing special is required to be done for click event of the asp.net because same is done with the html button control.
Second issue is that once the after the icallback, no server side event is fired e.g row_command of a gridview control. simply gv is cleared. Please help me. Most of the work is done, only minor issue is frustating me.
Thanks,
Safvi
|
|
|
|
|
Respected
I do not access the master page control value in its child
page my code is :
string str = ((Label)Page.Master.FindControl("Lable1")).Text;
please help
Thanks And Regards
lalit
|
|
|
|
|
lrsalunkhe wrote: string str = ((Label)Page.Master.FindControl("Lable1")).Text;
its maybe just a typo on here but, you have 'lable' instead of 'label' in the control name
|
|
|
|
|
Are you asking a question? Have you debugged? What is happening? If you want help you need to do more than just make a statement and give a line of code.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
In my project we need to create test case and test data automatically on "click" of a button
Say for 2 o3 fields in a form.
On a click of download button the test case and test data must be downloaded to Excel.
Any idea ...............?
Guhananth.s
|
|
|
|
|
Hi,
When i'm trying to edit or cancel some line in gridview i'm getting this error:
"The GridView 'GridViewSearch' fired event RowDeleting which wasn't handled"
How can i solve if it??
Can please help me?
|
|
|
|
|
Try writing the row deleting event in your code behind file
protected void OnRowDeleting(GridViewDeleteEventArgs e)
{
...
}
if you don't need this event make sure that it is not called in your aspx file..
HTH,
Neh
|
|
|
|
|
i know i need to implement an evet,
but what i need to write in it?
|
|
|
|
|
treuveni wrote: what i need to write in it?
Write whatever you need for your application.
If you want someone to write the code for you, then hire them.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I created a simple aspx page on Visual Studio 2008 Web Developer using VB.
It had three textboxes and a command button and used to do some calculations upon the given data on pressing the command button.
It worked fine when debugged and run.
Then i created a html page and made a simple hyper link to the aspx page. The link is opening the page but not displaying its contents but displaying the code instead.
Any Solutions???
Visit www.raza.najam.com.pk and click the ASP Page.
|
|
|
|
|
You may not have configured your website folder as a virtual directory.
Hope that helps...
When you fail to plan, you are planning to fail.
|
|
|
|
|
Understand that all the server pages like .asp , .aspx , .php etc can only be served by your server. In this case, your IIS server. In case you want to acces your page on localhost from outside Visual Studio, go to "C:/inetpub/wwwroot/" and then address of your page will be as : http://localhost:port/foldername/file.aspx..It can be then accessed by your HTML pages in same folder. If you want to avoid all this trouble, simply put that HTML page in same project of VS. Then everything will be fine...
|
|
|
|
|
I have a master page which consists of header, body and footer. The body has contentplaceholder for embedding the pages.
in one of the page i have used ajax for partial refreshing, but the page is completely refresing instead of partial. what could be the problem.
when i have tried with sample ajax implementation with one label and a button to display the time, it is functioning well.the complete page is not refreshing.
what could be the problem in the above scenario?
|
|
|
|
|
In which place you placed your button? The button should be placed inside the UpdatePanel or your should add AsyncPostbackTrigger for the button.
|
|
|
|
|
In the actual context I have three listboxes, if i selected one item in the first listbox, the selectedindexhanged event is raised to get the neccessary details for the selected item in the first listbox and post the resulsts in the second listbox.
the same scenario for the second listbox, if the item is selected in the second listbox, postback is done to get the details to fill in the third listbox.
all the three controls are in the same <tr> which is shown as follows
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<pre><asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<tr>
listbox1 onselectedindexchanged1
listbox2 onselectedindexchanged2
listbox3
<tf>
</asp:UpdatePanel >
</ContentTemplate></pre>
|
|
|
|
|
Dear all,
Please help me.
I make an asp page to save data.
after i fill all data and click savebutton the page show error very very fast.
"The connection was reset -- The connection to the server was reset while the page was loading."
Actually it doesn't take time to page load, not going to page_load event and it show error immediately.
Can you all please tell me how to solve?
|
|
|
|
|
let us see your save button code
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hello All,
We have a scenario for exporting some data to Excel when the user clicks on Export to Excel button. We have "Export to Excel" button on Master page. Anybody has idea to stop page postback on Export button click?
Can you please shed some light on this?
Thank you in advance,
Raheem MA
|
|
|
|
|
You can set the following property of your asp button:
OnClientClick="return false;"
Example:
<asp:Button ID="btnID" runat="server" Text="ButtonLabel" OnClientClick="return false;" />
Greetings
Covean
|
|
|
|