Then u Define the connection variable
'' Connection string
Private ConnString As String = "server="192.168.8.40";Database="DatabaseName";uid="SQLLoginName";pwd="pASSWORD";"
define CONNECTION VARIABLE
Private _SqlConnection As SqlConnection
inslz connection variable
_SqlConnection = New SqlConnection(ConnString)
You can use ODBC[^] or MySQLConnector[^]. ODBC adds an extra layer to the communication which makes your communication slow. So you can use MySQLConnector, which is very efficient. Download the connector from MySQL website. Also when you connect MySQL with ODBC, you will end up with a connection pooling issue which is a known bug for MySQL.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia
I want to open a custom web page when click on Browse button on "File Upload" control in ASP.Net.
It is not possible using File Upload Control. But you can mimic or create same type of control, and can show your custom page using window.open or window.showModalDialog function. If you are using Microsoft Ajax, you can use the control toolkit which is available in www.asp.net for free which has a Popup control (I believe).
I have a gridview that generates dynamically inside an aspx page. There is a template field which is also generated dynamically inside the gridview. I need to display Image in this template field. The image data comes from a database as byte. I have created a CompositeControl that gets byte through a public property and renders this byte data as image using HttpContext.Current.Response.BinaryWrite() inside CreateChildControls() method. I am using this composite control in the above template field as a databound control to display image. But when I run the page, the page only displays the image and other page/gridview data is not showing at all. If I see the type of the generated page from the property its "JPEG Image". No "View Souce" is available.
Here I'm giving some extracts from the code:
TemplateField tc = new TemplateField();
tc.HeaderText = attribute.Name;
//tc.HeaderTemplate = new GridViewTemplateField(ListItemType.Header, attribute.Name);
tc.ItemTemplate = new GridViewTemplateField(ListItemType.Item, "AttribValueId");
tc.HeaderStyle.CssClass = "headerstyle";
We have a website developed in asp.net 2.0, c#, sql server 2005. I need to provide users with a way to import their address books from gmail, yahoo, hotmail, and aol at the least.
I searched the net, and found soooo many solutions, most providing code to be integrated with our code, some providing web sites that would do the conversion. Ideally I'd like to connect to some sort of a service where we would provide the service the user's email and password, and would get back a comma separated list of address info from their address books. The solutions on the net cost anywhere from $0-$500, and I could not find any rating as to how well the solution would work. So its hard to go with any of them, and know that they'll work well now, and continue to work in the long term, as in they'll keep adding more facilities to import from, continue to support any changes needed to current solution such as when gmail changes their address book format...
According to me, only user can import a comma separated list of address info from address books. This can be happen on variety of domains such Yahoo, Gmail, Rediff, Aol and etc. These service providers doesn't allow any third party software to access address book of their users and generate a comma separated list from it.
Even if you know User Name And password then also Domain host doesn't provide access to any information of user using Software. You can access any user account using it's User id and password and generate a comma separated list from it but only manually. There is no such (Tool)software which automatically feed user id and password and make login to domain name. These domain host keep track of such things and mark as a Spam.
So, it is better to generate a comma separated list of address info from address books after that you can use such list to your software. You can read list easily.
Also all these people on the internet talking about providing such facility is fake. If such things are possible then there is no security on the email and no secure HTTP's.
Do you have any idea how LinkedIn and Facebook are importing their user's address books? They have done what I've proposed doing. They've been doing this for a while now (a year or so), and have not been marked as spam.
I am also developing an application for same requirement i.e Importing Contacts from Mail Clients .I tried for many solutions but i didn't get any Valuable Solution for me.
we have downloaded some code from "ideabubbling" and tried it, but some times it is not working for some account's in rediff,Hotmail,AOL.in
will the maildomain's constantly change the session or links which are hardcoded in the downloaded code.If u found any solution please help me..its very Important for me.
--Can u provide any Suggestions or Solution for this Problem.
->I am little bit poor in Communication plz excuse if wrongly spell
I need any article on the topic "Application/ Benifits or Advanteges of a Digital Dictionary".Please any one help me to search this topic at least five pages.
i'll b very thankfull.
my email id is: firstname.lastname@example.org
I've read threads regarding the xhtmlconformance, but my webhost says the machine.config has it set to Transitional already and I've even added the Transitional line to the project's web.config so I'm still baffled. The same code works locally on the machine, but not on the production site.
I've got a a asp.net page that loads some embedded c# win controls. I use the <object> </object>tag to do it and it all works fine.
The problem is, when ever i rebuild my win controls dll and copy it over into my asp.net directory, the controls stop being loaded. To fix this, i need create a new project and copy everything over into this new project and it suddenly starts working again even though i have not changed ANY CODE.
I'm trying to work with nested repeaters. I have repeater 1(called repDetails), where I list errors (from table 1). To each error (row from table 1) there is a file list (from table 2). Each row with error has a unique errorCyklusId witch also is used in table 2 (so I can see which files belongs to which error)
I want my nested repeater (called repFiles) to show alle file names (from table 2).
I need to figure out, how I in ItemDataBound can find the first repeters errorcyklusId for each row and how I can call a control (in this case a hyperlink control) from ItemDataBound
As you can see in line 3 I have comment out the e.CommandArgument (because when I try to run this, I get an error which sais, It dosn't know this.
I then hard coded a 1 (which is a errorCyklusID) in (line 13) (where I call my function (to call the database table) and it works .........but on each row I get the same file names out (because I each time call with the same errorCyklusId (in this case 1).
How do I get the row's errorCyklusID from repeater 1 and how do I get to
<asp:HyperLink ID=""lnkFile" runat="server" Text='<%# Eval("fileName") %>' Target="_blank" NavigateUrl="">so I can change the NavigateUrl from codebehind in the ItemDataBound?