i need some help regarding next few line of code.
fillcombo is my method which i want to use to populate many dropdownlist,i am passing id of dropdown box & query to method & calling method in page load.
there is no problem with query, but method is not getting id of dropdown list,it is just receiving system.Web.UI.WebControls.DropDownList
Thnx $ regards
public void fillcombo ( system.Web.UI.WebControls.DropDownList cntrl,string query)
SqlDataAdapter da = new SqlDataAdapter(query,con);
ds = new DataSet("ref_codes");
cntrl.DataSource = ds.Tables.DefaultView;
hai iam trying to get the image from digital camera and to store, but its giving , out of memory error.pls give me code to rectify this error.how to convert bitmap to binary format , or formatting image.
i am facing a problem in communicating web services through desktop client.
my pc is behind the firewall. when i am testing the application through the .net iDE its working fine.its communicating properly. when i am installing the client through setup its giving the error
error : ---- start
The underlying connection was closed: An unexpected error occurred on a receive.
at System.Web.Services.Protocols.WebClientProtocol.EndSend(IAsyncResult asyncResult, Object& internalAsyncState, Stream& responseStream)
at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
at WebServicesTestingClient.com.sterlinginet.dev.UASPDetails.EndUASPDetailsSet(IAsyncResult asyncResult) in E:\GamaProjects\WebServiceProxyTestingClient\Web References\com.sterlinginet.dev\Reference.cs:line 49
at WebServicesTestingClient.Form1.button1_Click() in e:\gamaprojects\webserviceproxytestingclient\form1.cs:line 211
my code is looks like
private void button1_Click()
richTextBox1.Text = "";
richTextBox1.AppendText("initializing the web services\n");
com.sterlinginet.dev.UASPDetails service = new com.sterlinginet.dev.UASPDetails();
// Firewall/Proxy Setting (use this settings if you are accessing behind a firewall).
WebProxy oProxy = new WebProxy(addressTxt.Text, Convert.ToInt32(portTxt.Text));
///oProxy.Credentials = new NetworkCredential();
service.Proxy = oProxy;
i have a client/server application. i dont want the users of my client application to be able to terminate the process of the client application. how will i do that? is it possible to hide the process from the task manager? or is there a better way of doing this? please help...
i have a application in c# that uses web browser control
How can i disable Back buttons and forward button of my application if there is no page to be navigated. ifa nayone can help please.