For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
I am very new in ASP.NET. Actually I code in vb.net and trying to make a database driven dynamic website.
I use to connect database through an XML file where I put the server, database name, user id and password. Then from a class I call these to connect the database. In this class I put the connectionstring which always read the data from the XML file like...
If (IO.File.Exists("db.xml")) ThenDim DbXmlReader As XmlReader = New XmlTextReader("db.xml")
Dim DbNodeType = DbXmlReader.NodeType
If (DbNodeType = XmlNodeType.Element) ThenIf (DbXmlReader.Name = "server") Then
srv = DbXmlReader.ReadInnerXml.ToString
the above code is just a snippet.
Now my questions are...
1. Is the above method possible in ASP.NET to connect with a database ?
2. If not, then how should I connect with the database ?
3. Lastly, is there any good tutorial for beginners that how to create a database driven dynamic website from scratch in ASP.NET?
The tutorial should have all like add a template, adding css, database connection etc.
For more examples of connection strings, see:
Dim connectionStringSettings As ConnectionStringSettings = ConfigurationManager.ConnectionStrings("MyConnectionString")
Using connection AsNew SqlConnection(connectionStringSettings.ConnectionString)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
if you are saying that you have a web application and a user open your web site on a mobile browser - and you want to track that user - then, you can follow the following:
- each request to your page from any browser will have headers associated with them which will tell you which device is the request from.
- you can use this 51degrees api to detect the mobile devices - http://51degrees.codeplex.com/[^]
- once you detect the device - you can perform your business logic
In a small company, I am making small changes to a vb.net web forms 2010 application. There are no pervious directions on how toset up the deployment of the application. I have used the old version of deployment using msi packages that are not supported after asp.net 2010. I have not used web deployment yet. I set attached to this application that there is a web deployment project that was used.
Thus can you give me directions and/or point me to a url that will tell me how to setup a web deployment project that can be installed on an IIS server.
Last Visit: 31-Dec-99 18:00 Last Update: 28-Jul-14 14:39