Why Web Controls Does Not Have Sufficient Events Like Windows Application
Mar 16, 2010
An asp panel contains only 6 events. if they provide a visibilechanged event it may very useful for me. if it is in windows application ,how easy it is.I dont know why thy are not providing all these.This is same as in the case of gridView, button ,etc. just think , I have an Iframe in an asp panel and two buttons. In first time it is invisible .Buttons named first and second respectively. Two another pages One.aspx,two.aspx. These two pages contains each text box. When you click on the First button . I want to set the Iframe src="One.aspx" and display "first" in the textbox on One.aspx. as same in the case , when user clicks Second button. How to do this ?
View 2 Replies
Similar Messages:
Oct 3, 2010
Can we Determine the availability of sufficient memory for an operation? if yes, then how can?
View 3 Replies
Apr 30, 2010
I've noticed a number of events being logged on our Windows server, coming from an Asp.net application. I wouldn't know where to begin troubleshooting this problem, but the basics are this:
- Windows Server 2003 Standard Edition (NLB)
- Asp.net 3.5 App
- Oracle 10g DB
Event ID: 1309
Event code: 3005
Event message: An unhandled exception has occurred.
Exception information:
Exception type: CryptographicException
Exception message: Padding is invalid and cannot be removed.
The second last line here is why I posted in the security forum. The page that it's coming from is webresource.axd
Stack trace: at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) [code]....
View 2 Replies
Aug 29, 2010
I have a asp.net web app and a windows service running on separate machines. How can i enable the windows service subscribe/listen to events raised by the asp.net app on the remote machine? What methods can i use?n example of events that can be raised on the asp.net app is a user uploading a file. Once the upload has completed the windows service should be notified so it can do some work. It seems that there needs to be a layer in between asp.net and windows service, possibly another windows service or WCF app? Or plain old polling through a shared database containing the state?
View 1 Replies
Nov 23, 2010
I have a ASP.NET application. From that, User register, User will get email after registration. My Req : When user click on link provided in email. Then it should go to my ASP.Net application page . That page should install a wincows application on Client system through web ( I was inspired by Microsoft Windows update from Microsoft site)
View 1 Replies
Sep 2, 2010
On the old project (Visual Studio 2005), I used cdo library to control the smtp events sink.
I upgrade to windows 2008 R2 the project, and the cdo library seems to old (Windows 2000 library).
I would like to replace the library and I want to know what is the best library to use smtp sink event?
View 1 Replies
Dec 13, 2010
Iam using ftp client wrapper class for accessing ftp.
iam able to download files from ftp when used in windows application
when i try to use the same code with windows service i get an error
the error is
"The underlying connection was closed: An unexpected error occurred on a receive. "
this error i get on directory listing
the stack trace is:
[Code]....
Note:
FTP is getting connected throgh service
FTP is getting connected throug FileZilla, internet explorer
soruce code:
[Code]....
View 5 Replies
Jul 7, 2010
We have a website portal hosted in Windows 2003 server. For security reasons we are using different windows Login user say (xxxx) for signin other than Administrator. Now with this user (xxxx) name I installed .net Windows Application. It was working fine. For some reasons I renamed the original windows Login user(xxxx) to different say (yyyy). Now this .net Windows Application is not working with (yyyy) and even it is not allowing me to uninstall it.
View 3 Replies
Apr 9, 2010
I've googled a bit for the exact order of all gridview events relative to and where inbetween page events. The only Microsoft article: [URL] is not very clear. I'm especially interested in the gridview row_command event relative to page events.
View 4 Replies
Jan 12, 2010
I have .Net web application which connects to Oracle 10g database. I want to check for space availibility before creating Indexes. Also if space is not sufficient then I would like to send an Email message to admin. How to do that from .Net web application?
View 2 Replies
Apr 12, 2010
i have created one windows application in c# .net and its working fine in windows xp, but when i try to install the setup in windows 7 or vista,the setup never runs.. should i have to write some code for it.
View 2 Replies
Oct 19, 2010
I have a page with 2 Controls, a ListBox and a DropDownList.
In the DropDownList you can select a PLACE.
In the ListBox you can see all DOCUMENTS for the selected PLACE.
If you select a DOCUMENT, the program does a redirect on the selected DOCUMENT.
So, there are an AutoPostBack and an Event (if you select another Item) on both Controls.
The problem is: If I select a PLACE, then I select a DOCUMENT (the pdf document is opened), and then I go back on the page and I want to select another PLACE, the program doesn't select another PLACE, but opens the old DOCUMENT, because there are 2 Events, one to change the PLACE and one to open the DOCUMENTS.
Can I give a priority at the Events?
View 1 Replies
Jan 6, 2014
How to bind records in grid in windows mobile?I have a string and I want to bind it to a grid??
View 1 Replies
Jan 27, 2010
I'm experiencing a to me mysterious error when sending e-mails through a SMTP-server from an ASP.NET web application. I get the famous error "unable to relay for xxx@yyy.zzz". What's mysterious to me is that when I cut and paste the exact same code that sends the e-mail into an usual .NET Windows Forms application, send the e-mail with this application, it all works just fine. This made me think that perhaps the problem is that the ASP.NET application runs as NETWORK SERVICE while the Windows Forms application runs on a domain user account, but it turns out that I have another ASP.NET application sending e-mail through the same SMTP-server running under NETWORK SERVER at the same IIS, and this application does not experience this problem.
I've further tried to send e-mails through the SMTP-server manually by telnet the smtp-server on port 25 and running the SMTP-protocol manually, and it all works fine. The SMTP-server is not configured with any kind of authentication or SSL.
Another mysterious fact is that the ASP.NET application can send e-mails from an adress within the same domain to an e-mail adress within the same domain, but not to any adress outside of the domain. But the Windows Forms application, that uses the exact same code, can send e-mails from any adress to any adress both within AND outside of the domain.
So to summarize:
The ASP.NET application can send
e-mails from addresses within the
domain to adresses within the domain,
but not to addresses outside of the
domain.
A Windows Forms application running
the same code on the same computer
can send e-mails from ANY address to
ANY address.
Another ASP.NET application on the
same IIS running under the same
account (NETWORK SERVICE) can send
e-mails using the same SMTP-server
from ANY adress to ANY adress.
There is no authentication configured
on the SMTP-Server.
Both the ASP.NET application and the
Windows Forms application utilizes
the System.Net.Mail.SmtpClient class
to send a
System.Net.Mail.MailMessage.
The code that sends the e-mail massage is:
private void button1_Click(object sender, EventArgs e)
{
MailMessage mesasge = new MailMessage(txtFrom.Text, txtTo.Text, "Test mail", txtBody.Text);
SmtpClient client = new SmtpClient();
if (!(string.IsNullOrEmpty(txtUserName.Text))) //Is false since txtUserName.Text is empty
client.Credentials = new System.Net.NetworkCredential(txtUserName.Text, txtPassword.Text);
client.EnableSsl = false;
client.Host = txtServer.Text;
client.Port = 25;
try
{
client.Send(mesasge);
}
catch (Exception ex)
{
txtResponse.Text = ex.Message;
}
}
As far as I can understand, this should be a matter of configuration rather than coding issues.
View 2 Replies
Jun 1, 2013
how to add listbox items to database ..all items without selecting any particular...
View 1 Replies
May 22, 2013
How to use progressBar with thread in windowsApplication..
I have a for loop in c# layer when loop start progressBar with start and when loop finish progressBar is full ???
View 1 Replies
Aug 10, 2012
I have 2 ListBoxes. 1st SelectionMode is Multiple. Once I select many options from 1st ListBox I can copy it in ListBox2 but i Unable to remove it.
Code :
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
For i = 0 To ListBox1.SelectedItems.Count - 1
ListBox2.Items.Add(ListBox1.SelectedItems(i).ToString())
' ListBox1.Items.Remove(ListBox1.SelectedItems(i).ToString()) it is not removing.
Next
End Sub
View 1 Replies
Mar 10, 2010
Currently we are running an application build in VB6,ASP,Commerce Server2000 and Sql Server 2000. This application is running in Windows 2000 server.Now we are planning to migrate Windows server 2000 to Windows 2008.Will this application run in Windows 2008 or do we need to upgrade this application to dotnet and Sql 2008?
View 1 Replies
Jan 5, 2011
I have some common dlls that are referenced by both a windows service application and a asp.net web application. I don't want to make separate copies of the dlls and I also don't want to put those dlls into GAC. I try to put that service application under the same root folder as the web application so that they can share the same bin folder. I am not quite sure if this will cause any problems? I did find the web application had random session timeout, but not very often. Not sure if it was caused by the shared dlls.
View 1 Replies
Nov 3, 2010
I have a simple windows form app that I need to get the file path for. I am placing a config file in the same directory and I need to be able to get the path to that file.
I have used
Application.CommonAppDataPath
but that returns the path with 1.0.0.0 at the end.
and
Applicaiton.StartupPath
but that returns the path with indebug at the end
Is there anyway to get the path to just the main file directory without anything appended to the end?
View 3 Replies
Jan 25, 2011
why is it that the exact same codes that i use to create a Windows application, which is able to work, does not work on a Web application? i created a windows application using c# and socket programming language. i will be connected to a remote server and through the windows application, and i will be able to send the "byte[] msg" to the server and activate the LED lightbulbs attached to the remote server. that exact same codes works well on the Windows application. however, when i create another Web application using the same exact codes, i does not have any error yet i am not able to activate the LED lightbulbs attached to it. is it that through the web or internet explorer i am not able to send the "byte[] msg" correctly? or that i sld modify "byte[] msg" to suit the web usage? or any other reasons?
View 7 Replies
Dec 24, 2010
i have grid with linkbutton and path of image files how can i open that images in windows default application below is the code in rowdatabound LinkButton btn = new LinkButton();
View 3 Replies
Feb 15, 2011
First of all, I am creating a something like a client/server solution using a standard ASP.NET website - I do know this method is not adviced, and most people would love to scream "COMET!" or "HTML5 Sockets!" - but please don't ;-) !
What I am doing...
I am creating an MMORPG on a website.
I have several clients whom need to be in contact at the same time. This is done by a global object in the Application scope.
My problem
I need to invoke an event to several clients. For instance, when an attack has been performed, I need to update some graphics. The attack logic is resolved in the global object, but each of the clients has to respond to this.
Right now I do the following:
fightTrace.Reciever.InvokeMoveEnded(this);
fightTrace.FiredBy.InvokeMoveEnded(this);
(This is a kind of observer pattern)
What now happends is a race condition. The one who loads the page_load event will get both of these events, and the one who is not running them, will experience no changes in the UI.
So what is it I really want?
What I really need is some genuine and nice way to create an observer pattern through the application state. I need to send an event out to every "listener" which is in this case is a client, and then do some update.
View 1 Replies
Mar 19, 2013
i am making use of two listboxes. the data from one listbox is transfered to other listbox on button click, bt teh the data which is selected must be added to the table in the sql server. but it is not storing values it is throwing execption...
private void InsertRecords(StringCollection sc)
{
SqlConnection conn = new SqlConnection("Data Source=ABCD;Integrated Security=True");
StringBuilder sb = new StringBuilder(string.Empty);
[Code].....
View 1 Replies
May 16, 2013
I Have bind the
CheckedListBox1.DataSource=ds.Table[0];
CheckedListBox1.DisplayMember="Name";
CheckedListBox1.ValueMember="ID"; [intelligence Not Shown in VS But Its working fine for me].
now i want To Find out The Selected Item value in checkedListBox.
View 1 Replies