|
Hi
I was trying to use Application_Start method of Global.asax file to catch Exceptions. Can we add Global.asax to Window application. I am not able to add it. Can anyone help me on this.
Thanks & Regards
Inderjeet Kaur
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
You can't use the Global.asax in a WinForm application AFAIK.
Maybe you should have a look at the System.Windows.Forms.Application.ThreadException event instead.
|
|
|
|
|
|
when you create a winForm project.
you will find a file called "program.cs";
you can write codes there
modified 27-May-14 5:31am.
|
|
|
|
|
Hi.
Three printers were installed on my system.
I gonna print a WebBrowser on a specific printer in a specific size !
Could you please guide me how I can do it ?
Thanks
|
|
|
|
|
Do you have a print button or menu selection in your browser?
|
|
|
|
|
you can use this function:
"WebBrowser.ShowPrintPreviewDialog()",
you can choose one printer here.
modified 27-May-14 5:31am.
|
|
|
|
|
Hi,
i want to display the list of websites that are using Google ad-sense for given list of key words
i am using c#.net and windows application
please tell which webservice i have to use to accomplish this task
Thanks
Anil Veeraghattapu.
|
|
|
|
|
Well, I can't imagine a time when it wouldn't be more appropriate to ask what google told you.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
irony
of, resembling, relating to, or tasting much like iron
eg:
"The anvil was delicious, but irony."
|
|
|
|
|
4th hit when I google it looks promising.
|
|
|
|
|
i need some help on xml. i want to send an xml document to an xml web service using get method. but i didn't find any article, helping material. i did not use xml before. please help me.
thanx
amirzada
|
|
|
|
|
XML is just a string in a special format. All web services use SOAP, which is an XML format. You could well put an XML string in the content of a SOAP request. Your best bet is to create a reference to the web service and let Visual Studio create a stub class to handle all the details.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
aamirzada wrote: i want to send an xml document to an xml web service using get method.
What do you meant by get method?
Read XML file into a string and send the string. Or are you looking for sending XmlDocument class's instance? If yes, it is not possible as XmlDocument class can't be serialized.
aamirzada wrote: i did not use xml before. please help me.
A good book should get you started. Try this[^] W3Schools article.
|
|
|
|
|
Let's say my someApp.exe references log4net.dll
How should I checkin dll into TFS? Best Practice?
Thanks
dev
|
|
|
|
|
Create a directory something like External references and put all third party assemblies there. You can check in this folder to TFS.
|
|
|
|
|
Create a "Shared Binaries" Folder and check all the reference dll's in this folder.
Bring it down to your dev box and reference the shared binaries folder in your project.
We are following this method and it seems to work fine.
|
|
|
|
|
Hi All,
I have a table which has multiple row.
User wants to see some data based upon criteria(Primary Key) through user interface. After displaying the row on the datagrid(Infragistic), user wants to delete some rows or update.
In my code, I am using two table. One is "Maintable" and other is "Displaytable". I donot have any problem to display the row using "Displaytable" in datagrid but when user update or delete rows and I donot know how to update the "maintable".
Do I need to have only one table or two table? Please help me.
Thanks in Advance
|
|
|
|
|
Why do you have two tables again ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I am using two tables because one for displaying the contents of the selected row in Displaytable when user send data through text box and other one is used for maintable (getting the data for displaytable).
I donot have any problem to use one table but I donot know how to use and display the contents of the selected 10 row.
If user modify one row or delete how to update the maintable.
|
|
|
|
|
Basically, I have xml format table that's why I am using two table( I guess so)
|
|
|
|
|
You only need one table. When user updates the value, update it to database and refresh your table with latest values.
|
|
|
|
|
When I Print from my computer life is good. when I print from the SQA computer life - not so good.
My box Windows XP sp 2
SQA Windows 2003 SE SP 2
Using the local system account results in the following error:
[2009/08/31 17:19:49.392] System.ComponentModel.Win32Exception Access is denied
File Name : Method : StandardPrintController.OnStartPrint Line Number : 0
File Name : Method : PrintControllerWithStatusDialog.OnStartPrint Line Number : 0
File Name : Method : PrintController.Print Line Number : 0
File Name : Method : PrintDocument.Print Line Number : 0
File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\PrinterStrategy\LocalPrinter.cs Method : LocalPrinter.OutputContext Line Number : 71
File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\Configuration\PrinterElement.cs Method : PrinterElement.printHelper Line Number : 94
File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\Configuration\PrinterElement.cs Method : PrinterElement.Print Line Number : 44
File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\PrintManager.cs Method : PrintManager.ProcessPrintRequest Line Number : 160
If I enter a specific user account, and validate Both RPC services are running, the error changes to:
[2009/09/03 10:10:06.595] System.ComponentModel.Win32Exception The RPC server is unavailable
File Name : Method : StandardPrintController.OnStartPrint Line Number : 0
File Name : Method : PrintControllerWithStatusDialog.OnStartPrint Line Number : 0
File Name : Method : PrintController.Print Line Number : 0
File Name : Method : PrintDocument.Print Line Number : 0
File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\PrinterStrategy\LocalPrinter.cs Method : LocalPrinter.OutputContext Line Number : 71
File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\Configuration\PrinterElement.cs Method : PrinterElement.printHelper Line Number : 94
File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\Configuration\PrinterElement.cs Method : PrinterElement.Print Line Number : 44
File Name : c:\CATOS6.7.1\CATOS6\CATOS.NET\PServer\Core\PrintManager.cs Method : PrintManager.ProcessPrintRequest Line Number : 160
I am out of ideas, Any thoughts are welcome
The Framework code, StandardPrintController, causing me grief:
public virtual void OnStartPrint(PrintDocument document, PrintEventArgs e)
{
IntSecurity.AllPrintingAndUnmanagedCode.Assert();
this.modeHandle = document.PrinterSettings.GetHdevmode(document.DefaultPageSettings);
}
You can only be young once. But you can always be immature.
- Dave Barry
|
|
|
|
|
Hi All Wizards....
I have this code as an entity and it is working perfectly, but now I try to create the collection for this entity... Can't seem to get it rights... Really need help on this... Thank you all in advance...
Actually, what I try to do is this... I can get only 1 record from the db back at a time, but I want to get nultiple return records from the db....
Here comes the sample codes for entity...
namespace Testing.DataLayer
{
[Serializable]
public class Selected_DocType
{
string userID;
string password;
string doctype;
string fileshortdescription;
public string UserID
{
get { return userID; }
}
public string Password
{
get { return password; }
}
public string DocType
{
get { return doctype; }
}
public string FileShortDescription
{
get { return fileshortdescription; }
}
public Selected_DocType( string userID
, string password
, string doctype
, string fileshortdescription
)
{
this.userID = userID;
this.password = password;
this.doctype = doctype;
this.fileshortdescription = fileshortdescription;
}
public static Selected_DocType GetWebSelected_DocType(string userID, string password)
{
Selected_DocType t = null;
using (SqlConnection conn = Database.CreateConnection())
{
SqlCommand cmd = StoredProcs.GetWebSelected_DocType(conn);
cmd.Parameters["userID"].Value = userID;
cmd.Parameters["password"].Value = password;
cmd.ExecuteNonQuery();
t = new Selected_DocType( userID
, password
, (string)cmd.Parameters["DocType"].Value
, (string)cmd.Parameters["FileShortDescription"].Value
);
return t;
}
}
}
}
|
|
|
|