|
I have mysql database named 'sample' which consists of a table named'masterprojects'
Now I need to access this database in a "*.aspx.cs" page.
I get an error message that
"Host '192.168.1.163' is not allowed to connect to this MYSQL server."
I think the problem is related to the user name and the password required to access this database.
My Connection String is something like-->
myConn = new OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server= 192.168.1.163;Database=sample;User=localhost;Password='';");
Can anyone help me to know the default username and passwrd that is asssigned to mysql database.......
|
|
|
|
|
arpitcompro wrote: "Host '192.168.1.163' is not allowed to connect to this MYSQL server."
That's quite self-explanatory.
arpitcompro wrote: myConn = new OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server= 192.168.1.163;Database=sample;User=localhost; password='';");
And where is your MYSQL server? On localhost? Try Server=127.0.0.1
To me it looks like you are trying to connect into wrong server, where you don't have permission to do so. Either change host name or contact administrator of server with IP 192.168.1.163
arpitcompro wrote: Can anyone help me to know the default username and passwrd that is asssigned to mysql database.......
Your MySql server administrator.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Hi, In my application, on click of an image, a calender popup is shown, which is another aspx page.
If i keep a button in calender.aspx page, then in 'onclick event' i send the selected date to the parent form...but i want to do this in selectionChanged event of the calender control...i do th following:
strSelectedDate = Calendar1.SelectedDate.ToString(objConfig.DateDisplayFormat);//Calendar1.SelectedDate.ToString("dd/MM/yyyy");
strFormName = Request.QueryString["FormName"];
strCtrlName = Request.QueryString["CtrlName"];
string strJava = "" +
"function ReturnDate()" +
"{" +
"window.opener.document.forms['<%= strFormName %>'].elements['<%= strCtrlName %>'].value = '<%= strSelectedDate %>';" +
"window.close();" +
"}" +
"";
How do i run this script in selecttionChanged event of calender control?
|
|
|
|
|
String.Concat
StringBuilder.Append
String.LookItUpInMSDN
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: String.LookItUpInMSDN
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
how to display time on webapplication with out using javascript code i.e means it has to work on server, why because page has to refresh for every min.for that purpose
|
|
|
|
|
The otherway is Ajax. But i have coded it before with Javascript only. I have not yet tried with Ajax.
Regards,
Satips.
|
|
|
|
|
Try reading the "How to get answers to your question" post at the top.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Very Urgent is not descriptive and will more likely be ignored
only two letters away from being an asset
|
|
|
|
|
displaying time in server with out using javascript and ajax general code
|
|
|
|
|
if you want to show server time on client side then go for AJAX
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
you can use the DateTime class of the .net framework to show the date or time or both from the server side
|
|
|
|
|
That's what i too said.
Regards,
Satips.
|
|
|
|
|
hey you posted some secs before i posted...thats y the duplication
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Ok. I too Didn't notice the Time.
Regards,
Satips.
|
|
|
|
|
Please read the forum guidelines and give your questions appropriate titles.
__________________
Bob is my homeboy.
|
|
|
|
|
i want to Format Textbox to currency format with comma and decimal place when the control lost focus
|
|
|
|
|
So, handle the event.
only two letters away from being an asset
|
|
|
|
|
|
How can one change the gridview cell width programatically?
thanks for your anticipated answer
|
|
|
|
|
Gridview[^].There are lot of articles related to the change in cell width in Gridview.
Regards,
Satips.
|
|
|
|
|
Somebody to help me with CSS Submenu and Hover. The Hover menu effect is not working. Below is my aspx page and my css.
Thanks
homeMaster.master
-----------------
<title>Untitled Page
| |
<asp:textbox id="TextBox1" runat="server" visible="False" width="568px"> | |
| <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
| |
© 2007. All Rights Reserved |
mycss.css
---------
body
{
/*background-color: #008000;#eff3fb; ##e4e4c4*/
font-family:Verdana Arial Georgia;
font-size:13px;
}
h2
{
background-color:#d2b48c; /*#d9f38e;*/
height:12px;
width:100%;
margin-bottom:-12px;
}
.txtcenter
{
text-align:center;
}
.cellbg
{
background-color:#bb9966; /* #eee8aa;*/
}
.td1
{
border-bottom: maroon thick solid;
}
.tdhdr
{
background-color:#d9f38e;
vertical-align:top;
}
.ralign
{
text-align:right
}
.lblalign
{
text-align:right;
/*background-color:#cccc99;*/
vertical-align:top;
}
.tcap
{
text-transform:uppercase;
}
.navigation
{
font-size:11px;
margin:50px 0px;
width:200px;
font-family:Arial,Sans-Serif,Helvetica;
position:relative;
height:150px;
}
.navigation ul li a {
BORDER-RIGHT: #fff 1px solid;
BORDER-TOP: #fff 1px solid;
DISPLAY: block;
FONT-SIZE: 11px;
BACKGROUND: #c9c9a7;
BORDER-LEFT: #fff 0px solid;
WIDTH: 104px;
COLOR: #000;
LINE-HEIGHT: 19px;
BORDER-BOTTOM: #fff 0px solid;
HEIGHT: 20px;
TEXT-ALIGN: center;
TEXT-DECORATION: none;
}
.navigation ul li a:visited {
BORDER-RIGHT: #fff 1px solid;
BORDER-TOP: #fff 1px solid;
DISPLAY: block;
FONT-SIZE: 11px;
BACKGROUND: #c9c9a7;
BORDER-LEFT: #fff 0px solid;
WIDTH: 104px; COLOR: #000;
LINE-HEIGHT: 19px;
BORDER-BOTTOM: #fff 0px solid;
HEIGHT: 20px;
TEXT-ALIGN: center;
TEXT-DECORATION: none;
}
.navigation ul
{
PADDING-RIGHT: 0px;
PADDING-LEFT: 0px;
PADDING-BOTTOM: 0px;
MARGIN: 0px;
PADDING-TOP: 0px;
LIST-STYLE-TYPE: none;
}
/*.navigation li
{
BACKGROUND: #b3ab79;
position:relative;
height:26px;
}
.navigation a
{
border-right:#fff 1px solid;
border-top:#fff 0px solid;
display:block;
border-left:#fff 0px solid;
width:200px;
color:#000;
text-indent:5px;
line-height:25px;
border-bottom:#fff 1px solid;
height:25px;
text-decoration:none
}
.navigation a:visited
{
border-right:#fff 1px solid;
border-top:#fff 0px solid;
display:block;
border-left:#fff 0px solid;
width:200px;
color:#000;
text-indent:5px;
line-height:25px;
border-bottom:#fff 1px solid;
height:25px;
text-decoration:none
} */
.navigation ul li {
FLOAT: left;
MARGIN-RIGHT: 1px;
POSITION: relative;
}
.navigation ul li ul {
DISPLAY: none;
}
.navigation ul li:hover a {
BACKGROUND: #b3ab79;
COLOR: #fff;
}
.navigation ul li:hover ul {
DISPLAY: block;
LEFT: 105px;
WIDTH: 105px;
POSITION: absolute;
TOP: 0px;
}
.navigation ul li:hover ul li a.hide {
BACKGROUND: #dfc184;
COLOR: #000;
}
.navigation ul li:hover ul li:hover a.hide {
WIDTH: 150px;
}
.navigation ul li:hover ul li ul {
DISPLAY: none;
}
.navigation ul li:hover ul li a {
DISPLAY: block;
BACKGROUND: #b3ab79;
WIDTH: 150px;
COLOR: #000;
}
.navigation ul li:hover ul li a:hover {
BACKGROUND: #dfc184;
COLOR: #000;
}
.navigation ul li:hover ul li:hover ul {
DISPLAY: block;
LEFT: 151px;
COLOR: #000;
POSITION: absolute;
TOP: 0px;
}
.navigation ul li:hover ul li:hover ul li a {
DISPLAY: block;
BACKGROUND: #dfc184;
WIDTH: 200px;
COLOR: #000;
}
.navigation ul li:hover ul li a:hover {
BACKGROUND: #bd8d5e;
COLOR: #fff;
}
|
|
|
|
|
How to set a filter ie to display files of *.txt extension in fileupload control
ie when i click on browse button i shd get only those files that have extension *.txt to select.
-- modified at 5:45 Friday 18th May, 2007
|
|
|
|
|
Hi all,
i want to know, How to store data from one table to another table in a dataset.
* ex: dataset contains 2 tables.
one table has data, other is empty.
thanks
|
|
|
|
|
<br />
Clones the structure of the DataTable, including all DataTable schemas and constraints.<br />
DataTable newTable =ds.Tables[0].Clone();<br />
<br />
Iterate through the dataset assign data to new table <br />
newTable.Rows.Add(ds.Tables[0].Rows[0]);<br />
add new table to Dataset <br />
ds.Tables.Add(newTable);<br />
<br />
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
asp.net,c#. I had completed a application named discussion forum in which every one can post their messages and view replies to that messages..
My Question is if I posted a new message will a alert can be genarated to all the persons who r using it.. it is possible or not if possible help me out
-- modified at 5:20 Friday 18th May, 2007
ddddd
|
|
|
|