|
I have an article which is basically a control for implementing ajax (which is what your talking about). These days though you should just look into asp.net ajax. www.asp.net
|
|
|
|
|
If it's asp.net (page.aspx would indicate this) you just need an event, say a button click to generate the postback, from which you can call the method you want.
Or, script callbacks, http://www.developer.com/net/asp/article.php/3485991[^]
only two letters away from being an asset
|
|
|
|
|
could you explain to me how to this please?
I mean, what I'm trying to do is to use a method \ function from VB\C#.NET compiled class in the App_Code folder from a simple html page at the OnClick etc. event that has been raised via a HTML and other pure client controls\events.
Shimi
|
|
|
|
|
Hello all,
I am quite in a dilemma at the moment since i cannot find some independent reading which thoroughly describes the characteristics of j2ee vs .net.
I am experienced with .net but would like to know what the j2ee platform offers since several components used are totally free.
can anybody give me his/her views on the subject.
Thank you very much,
Chris
|
|
|
|
|
ChrisFarrugia wrote: I am quite in a dilemma at the moment since i cannot find some independent reading which thoroughly describes the characteristics of j2ee vs .net.
This forum is for programming questions specifically related to ASP.NET.
I suggest you post your question in the 'General Discussions' forum.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thank you very much for your reply and excuse me.
I posted it here because my main concern was asp.net developmen vs j2ee. i will post it in the appropriate forum.
Thanks a lot and excuse me once again,
Chris
|
|
|
|
|
Hello there,
I m really stuck on one thing i have searched almost every where on the internet but so far no solution so thats why i m positing my problem here.
I have to develop a program that will copy or upload an excel file to a ftp server, this part is completed but the problem is that my client is behind proxy, so basically have to send through proxy. There is class ftpwebrequest but it work for framework 2 and above and i have use framework 1.1.
If anyone know a solution or link, i ll be grateful.
Thanks in advance.
|
|
|
|
|
Hai all ,
I have used the folliwing code to record voice in my application.
using Microsoft.VisualBasic.Devices;
using Microsoft.VisualBasic;using System.Runtime.InteropServices;
public partial class record : System.Web.UI.Page
{
[DllImport("winmm.dll", EntryPoint = "mciSendStringA", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
private static extern int mciSendString(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
// record from microphone
mciSendString("open new Type waveaudio Alias recsound", "", 0, 0);
mciSendString("record recsound", "", 0, 0);
}
protected void Button2_Click(object sender, EventArgs e)
{
// stop and save
mciSendString("save recsound c:\\lijo.wav", "", 0, 0);
mciSendString("close recsound ", "", 0, 0);
Computer c = new Computer();
c.Audio.Stop();
}
protected void Button3_Click(object sender, EventArgs e)
{
Computer computer = new Computer();
computer.Audio.Play("c:\\lijo.wav", AudioPlayMode.Background);
}
}
it is perfectly working in my local system.But when i uploaded into sver it is showing the following error.
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: System.Security.Permissions.SecurityPermission
Source Error:
Line 28: mciSendString("record recsound", "", 0, 0);
Line 29:
Line 30: }
Line 31: protected void Button2_Click(object sender, EventArgs e)
Line 32: {
plse help me its urgent.
Thanks in advance
regrds
Lijo
|
|
|
|
|
Hi Lijo,
The same happened to me also,I did n't get any error on server side but only empty file is storing with out recording.Everything working fine on my local machine.
Please suggest me if you have any idea.
Thanks
|
|
|
|
|
I'm working on an application which has a viewstate of approximately 250kb in a Notepad file. When doing a postback (e.g. on changing a dropdownlist's value) it takes a whopping 9 seconds to reload the page. This isn't really workable, problem is that I can't rebuild the application (as much as I'd like to) and I cannot disable the viewstate. Is there any way to speed this entire process off, or anything else that might be causing this besides the viewstate?
|
|
|
|
|
Rather than having the drop down list AutoPostBack, have you thought of using AJAX or JavaScript to handle the onchange event? Would be a lot quicker and provied a better user experience all round.
Clean code is the key to happiness.
|
|
|
|
|
I know sorting can be done ascending/descending on a gridview.
Can it be done on each page of the grid when paging also is enabled?
Thanks
|
|
|
|
|
when you want to change your sort direction, aren't you have to bind the data again? that process will bring you back to page index 0, isn't it ?
well if you want to go to certain page, just assign that certain page index at gridview.currentpageindex ...
hope it helps..
|
|
|
|
|
I have a drop down list with gridview. When the page loads the option in the drop down is 'select an item'. However the gridview does not load all records when the page is first loaded and the user has not made a selection yet in the drop down. Here is my code:
<asp:dropdownlist id="DropDownList1" runat="server" autopostback="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged">
<asp:listitem>Select an item
<asp:listitem>A
<asp:listitem>B
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
If DropDownList1.SelectedIndex.Equals(0) Then
tabledata.SelectCommand = ("SELECT * FROM [table]")
End If
End Sub
|
|
|
|
|
Hi,
You will need to handle the initial population of the DropDownList in Page_Load, or another page event, as the SelectedIndexChanged event of the list will not get fired on the inital GET of the page.
Hope this helps...
Clean code is the key to happiness.
|
|
|
|
|
putting it in page load worked. Thanks for your help!!
|
|
|
|
|
hi .
can any one know a free or open source PDF library that support Unicode?
sepel
|
|
|
|
|
|
kindly tell me the coding to display thumnail of an image using csharp asp .net coding
|
|
|
|
|
amitbhatt wrote: to display thumnail of an image
Image.GetThumbnailImage should help you right?
I have also shared a few tips on System.Drawing API over here:
http://www.dotnetspider.com/kb/Article3446.aspx[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Have you even tried searching? There are planty examples available.
only two letters away from being an asset
|
|
|
|
|
I have a login page made in ASP.NET C#.
i want to create a response for logout for example a void in the c# code that when the ?action=logout is attached to the end of the address this void should be ran.
Shimi
|
|
|
|
|
Use Request.QueryString["action"] to look for the value in the query string. The value returned is as string, which is null if the value was not present in the query string.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I want to show the query result in Html table view directly..
with this sql statements we can make html table view for 'select * from tab'..It is working in Oracle Console..How Can I execute it in VB.net
SET markup HTML ON
spool INDEX.html
SELECT * FROM tab;
spool off
SET markup HTML off
|
|
|
|
|
Have you even done a cursory search for displaying data on web pages?
only two letters away from being an asset
|
|
|
|