|
function foo(){
alert('foo');
var textbox = document.getElementById('txt');
txt.style.textAlign='right';
}
|
|
|
|
|
Sorry for late reply.. not text-align . it should be "textAlign"..
Hope, it helps.
|
|
|
|
|
Hi good morning,
Using month value and year value how to display all dates in that month,
Means,suppose month value=6(june) and year value=2007,
Then it want to display,
6/1/2007
6/2/2007
...
...
6/30/2007
How to do that,
Advance thanks,
Regards,
Magi
|
|
|
|
|
Get it[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Hi in that link they used some procedure,
In that i dont know where the month value passing and where the year value passing...,
In backend coding its possible to get all dates of that month?,
Regards,
Magi
|
|
|
|
|
int[] TotalDates = {31,29,31,30,31,30,31,31,30,31,30,31};
int CurrentYear = 2007;
int CurrentMonth = 6;
if( DateTime.IsLeapYear(CurrentYear) )
TotalDates[1] = 28;
for(int i=1; i<=TotalDates[CurrentMonth - 1]; i++ )
{
Console.WriteLine(CurrentMonth.ToString() + "/" + i.ToString() + "/" + CurrentYear.ToString());
}
Console.ReadLine();
|
|
|
|
|
I have an existing ASP.NET 1.x commerce site up and running, but with the IIS server "switch" set to 2.0, so it can accept new ASP.NET 2.0 pages and features.
I'd like to show someone an altered, fully-functional but non-public ASP.NET 2.0 version of the site. Can I place the entire "new" site, with bin file, .dll and all, in a subfolder, so that it can be viewed remotely, without interfering with the current 1.x site up in the root folder?
|
|
|
|
|
Yes.
In the Home Directory settings for the folder in IIS manager, press the Create button to create an application for the folder.
If you are using Server 2003, you have to make sure that applications that use framework 1.1 and applications that use framework 2.0 are in separate application pools.
---
single minded; short sighted; long gone;
|
|
|
|
|
To be clear, the site is hosted on a webhosting company's server which I have access to through FTP. I'm not sure if I can directly access IIS on their server, but I can ask them about it.
I take it from your answer, though, that just creating a subfolder in the root of my website's FTP folder and dumping the contents of the "test" website into it won't work?
i.e. ftp.mywebsite.com containing
- mywebsite's bin & .dll, aspx files, etc
- subfolder containing:
-- mytestsite's bin folder with .dll, aspx files, etc.
Thank you!
|
|
|
|
|
Nostromo77 wrote: I take it from your answer, though, that just creating a subfolder in the root of my website's FTP folder and dumping the contents of the "test" website into it won't work?
That's right. The applications are controlled by the settings in IIS, not by the files that you put in the folder.
---
single minded; short sighted; long gone;
|
|
|
|
|
hi to all
how to edit the datagrid
|
|
|
|
|
wat exactly do u want??/ can you explain a bit???
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Hi all!
I'm looking for examples of inline editing written for the ASP.net AJAX framework. I would like something like this http://anthem.talloaksoftware.com/Extensions/EditLabel.aspx . Any tips?
Knd regards, Erik
|
|
|
|
|
Hi all,
How to include java script for a windows application.
where do i write the code.
Help me
thanks and regards
Narendra Mohan
|
|
|
|
|
what do you want to do ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
do u ve any pblme???
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
You can't - a winforms app doesn't know how to run javascript. Only internet explorer knows how to run javascript, are you running an IE control in your page ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi,
I have a page set up with a formview control. i have edited the template so that it contains 10 text fields that are bound to a database. Instead of using 'Paging' i would like to have a 'Previous' and 'Next' button to navigate.
i have no idea how to do this, please advise
Thanks in anticipation of your response
Jonathan Harker
|
|
|
|
|
Hi,
I am looking for an effective way to prevent my C# asp.net web application from reloading by backward navigation after logout. I have tried alot of existing methods that are posted on the internet but none of them are effective enough. For instance after I refresh the page it reloads again.
Regards
Yasin
|
|
|
|
|
I'm a beginner here,I found problem to insert data into MySQL using ASP.NET. Anyone can give me some solution here?
This is my code running VB backend:
Dim strConnString As String = "Driver={MySQL ODBC 3.51 Driver};Server=localhost;option=3;Database=Database;Uid=User;Pwd=Pass;"
Dim ObjConn As New OdbcConnection(strConnString)
Dim ObjComm As OdbcCommand
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
ObjComm = New OdbcCommand("INSERT INTO member_1(Member_ID,Username,Gender,Email,Contact_No,Address,Password)VALUES(" & TextBox1.Text & "," & TextBox2.Text & "," & TextBox3.Text & "," & TextBox4.Text & "," & TextBox5.Text & "," & TextBox6.Text & "," & TextBox7.Text & "", ObjConn)
If (TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text = "" Or TextBox5.Text = "" Or TextBox6.Text = "" Or TextBox7.Text = "") Then
Else
ObjConn.Open()
ObjComm.ExecuteNonQuery()
ObjConn.Close()
End If
Catch ex As Exception
Console.WriteLine(e.ToString())
End Try
Anyone could tell me whats wrong with my code here? I unable to insert to MySQL database. But I have test the connection string with SELECT roles and it works. Thank you for reading.
Regards
Drex
|
|
|
|
|
Hi
Regarding your problem
i never used MySQL but in sql server
if you are inserting strings into DB you need to put quats before and after the string like this
ObjComm = New OdbcCommand("INSERT INTO member_1(Member_ID,Username,Gender,Email,Contact_No,Address,Password)VALUES('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "','" & TextBox7.Text & "'", ObjConn)
hope it works
|
|
|
|
|
Nope,I have try your ideas before. But it doesn't work for this too. I think I need other further help from an expert here about this problem.
Hope to get someone can help me on this. Thanks anyway ~!!
|
|
|
|
|
How can i include a javascript file in aspx? also how can we add textbox in aspx during runtime?
|
|
|
|
|
TextBox myTextbox = new TextBox();
Page.Controls.Add(myTextbox);
<div class="ForumSig"><hr>only two letters away from being an asset</div>
|
|
|
|
|
What Mark said, except
1 - the script tag needs to be closed, and
2 - if you want to access the textbox in code behind, you need to add it before the page load event, so that viewstate is restored to the control.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|