Click here to Skip to main content
15,890,123 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to detect browser in using asp.net Pin
Tarini Singh26-Feb-09 1:30
Tarini Singh26-Feb-09 1:30 
GeneralRe: How to detect browser in using asp.net Pin
Shyam K Pananghat26-Feb-09 1:35
Shyam K Pananghat26-Feb-09 1:35 
GeneralRe: How to detect browser in using asp.net Pin
Tarini Singh26-Feb-09 1:59
Tarini Singh26-Feb-09 1:59 
AnswerRe: How to detect browser in using asp.net Pin
keyur satyadev26-Feb-09 2:43
keyur satyadev26-Feb-09 2:43 
QuestionPage_load vs Page_init Pin
poonam kwatra26-Feb-09 0:40
poonam kwatra26-Feb-09 0:40 
AnswerRe: Page_load vs Page_init Pin
Christian Graus26-Feb-09 8:52
protectorChristian Graus26-Feb-09 8:52 
GeneralRe: Page_load vs Page_init Pin
Yusuf26-Feb-09 10:09
Yusuf26-Feb-09 10:09 
QuestionCreate Username and password for database dynamically in codebehind Pin
Guvera26-Feb-09 0:39
Guvera26-Feb-09 0:39 
Hi,

I am using Asp.Net 2.0 application, First i have created database dynamically in my codebehind. well the db created successfully. Now i want to give username and password dynamically for my dynamically created database. Is it possible? If yes, please tell me how can we do?

Try
Dim strQuery As String

strName = txtName.Value

strQuery = "create database db" & strName & ""

createDataBase(strQuery)

Catch ex As Exception

End Try

End Sub
'Function for create database
Function createDataBase(ByVal strQuery)

Try

Dim blnResults As Boolean = False

Dim intRowsAffected As Integer

ConOpen()

Try
objCmd = New SqlCommand

objCmd.Connection = objCnn

objCmd.CommandType = CommandType.Text

objCmd.CommandText = strQuery

intRowsAffected = objCmd.ExecuteNonQuery()

If intRowsAffected > 0 Then blnResults = True

Catch ex As Exception

createDataBase = ex.Message

'MsgBox(ex.Message)

Exit Try

Finally

ConClose()

End Try

Exit_Function:

createDataBase = blnResults

Catch ex As Exception

End Try

Return Nothing

End Function

The above one is created database dynamically in code behind. I need to create username and password dynamically in code behind.

Hope yours reply.

Every Successful Person Have A Painful Story

QuestionASP.NET with MYSql throwing error Pin
.NET- India 26-Feb-09 0:19
.NET- India 26-Feb-09 0:19 
AnswerRe: ASP.NET with MYSql throwing error Pin
Christian Graus26-Feb-09 8:58
protectorChristian Graus26-Feb-09 8:58 
QuestionRelation with CMS & KMS Pin
nkmkrishna26-Feb-09 0:00
nkmkrishna26-Feb-09 0:00 
AnswerRe: Relation with CMS & KMS Pin
J4amieC26-Feb-09 0:12
J4amieC26-Feb-09 0:12 
QuestionHow can I send image tage in Response.Write Pin
Naveed72725-Feb-09 23:56
Naveed72725-Feb-09 23:56 
AnswerRe: How can I send image tage in Response.Write Pin
Anurag Gandhi26-Feb-09 1:29
professionalAnurag Gandhi26-Feb-09 1:29 
QuestionOpinion about ajax Pin
Shyam K Pananghat25-Feb-09 23:33
Shyam K Pananghat25-Feb-09 23:33 
AnswerRe: Opinion about ajax Pin
Christian Graus26-Feb-09 8:53
protectorChristian Graus26-Feb-09 8:53 
Questionexport dataset to excel file Pin
bhavna432125-Feb-09 23:03
bhavna432125-Feb-09 23:03 
AnswerRe: export dataset to excel file Pin
Tarini Singh26-Feb-09 2:10
Tarini Singh26-Feb-09 2:10 
Questionconnect to the database? Pin
che_kar25-Feb-09 22:47
che_kar25-Feb-09 22:47 
AnswerRe: connect to the database? Pin
N a v a n e e t h25-Feb-09 23:11
N a v a n e e t h25-Feb-09 23:11 
QuestionLive Broadcast Pin
ashutosh kumar jha25-Feb-09 22:27
ashutosh kumar jha25-Feb-09 22:27 
QuestionCalendar? Pin
Karthick_gc25-Feb-09 19:58
Karthick_gc25-Feb-09 19:58 
AnswerRe: Calendar? Pin
Christian Graus25-Feb-09 20:21
protectorChristian Graus25-Feb-09 20:21 
GeneralRe: Calendar? Pin
Karthick_gc25-Feb-09 20:29
Karthick_gc25-Feb-09 20:29 
GeneralRe: Calendar? Pin
N a v a n e e t h25-Feb-09 21:03
N a v a n e e t h25-Feb-09 21:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.