|
You have to get the total number of rows from the table.Use Dataset.
For example,
For i = 0 To sqlDataset.Tables(0).Rows.Count - 1
//Your Code.
Next
Then get the checkbox items that are checked.
God is always with you.
|
|
|
|
|
Hi,
I wrote the code for email as follows
Dim mymsg As New MailMessage
mymsg.To = txtTo.Text
mymsg.From = txtFrom.Text
mymsg.Cc = txtCC.Text
mymsg.Subject = txtSubject.Text
mymsg.Body = "Please, click the following link to open report. " & Label2.Text & " This report is sent to you from " & txtTo.Text
SmtpMail.SmtpServer = "127.0.0.1"
SmtpMail.Send(mymsg)
txtTo.Text = ""
txtFrom.Text() = ""
txtCC.Text = ""
txtSubject.Text = ""
But I got the error as..................
"The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available"
Can any one give me solution for this??????????????
Thanks in advance
|
|
|
|
|
This error may occur if you did not specify a Port Number for SMTP.By default, SMTP uses Port 25.
It is also possible firewall or anti-virus program.
|
|
|
|
|
|
I was working on localhost
I've doubt on how to align menu itm center
plz help me
-- modified at 2:52 Tuesday 6th November, 2007
|
|
|
|
|
Trying this way
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" Font-Bold="False" style="text-align: center; left: 10px;">
|
|
|
|
|
|
Check out Google Help.It is more clear to u
|
|
|
|
|
how should i check whether the value in the textbox is numeic , float , date ?
like isdate in vb.net
Should i use vb script in this context
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: numeic
char.IsNumber()
Sonia Gupta wrote: date
Write a Regular expression and find out. or try to parse value into a DateTime object which will generate an error if it's not a valid date.
|
|
|
|
|
Thank You
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
can't i implement this thing in javascript , it is occuring in c#.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: he value in the textbox is numeic , float , date ?
you can do this by
int outpar;
if(int.tryParse(txtVal.Text,out outpar))
{
}
else
{
}
float outpar1;
if(float.tryParse(txtVal.Text,out outpar1))
{
}
else
{
}
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
i was trying to validate the textbox in javascript.
can i do these things there?Please explain.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Yes you can use regular expressions in javascript
|
|
|
|
|
navaneeth can u explain the meaning of this line
var NumericRegExp = "/^\d+$/";
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
u past this /^\d+$/ in to validation expression property then see what happen
Piyush Vardhan Singh
|
|
|
|
|
The web is bursting to the seams with examples of how to limit what text can be entered into a textbox using javascript.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I was working on localhost.
Every thing is working fine. Some software made changes to registery.
Now i am getting following error when i am accessing my ASP pages with database.
I am using ASP, and msAccess for backEnd.
---------------------------------------------------------------------------
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xc6c Thread 0xda8 DBC 0x1380064 Jet'.
---------------------------------------------------------------------------
Please tell me how to solve the problem
Kiran Sajanikar
Software Engineer
CleverBIT softwares.
Pune.
|
|
|
|
|
Kiran S. S. wrote: ---------------------------------------------------------------------------
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xc6c Thread 0xda8 DBC 0x1380064 Jet'.
---------------------------------------------------------------------------
You can check this and this.. or you can google for more information "Temporary (volatile) Jet DSN for process "
|
|
|
|
|
hello
i want if condition.
my code===
protected void btnSearch_Click1(object sender, EventArgs e)
{
string strDropdown = drpdwnAnalystName.SelectedItem.Text;
string strSecurityCode = txtSecurityCode.Text;
string strFromDate = dtpFrom.Text;
int flag = 0;
if (flag == 0)
{
funSearchSecurityCode();
}
if (drpdwnAnalystName.SelectedItem.Value == strDropdown)
{
funSearchAnalyst();
}
if (dtpFrom.Text == strFromDate)
{
funSearchFromDate();
}
funStyle();
funClear();
}
this code haven't error.but record is not display.
when i write only fist two if condition that time code is worked.record is display.
but when i take one more if condition that time record is not display.
so pls give me a write code.
Gayatri
Gayatri
|
|
|
|
|
Use nested if condition and check which condition is satisfied.
if(Statement)
{
......
}
else if(Statement)
{
.......
}
else
{
.......
}
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Imran Khan Pathan wrote: Use nested if condition and check which condition is satisfied.
This is not nested if statements. Nested if is
if(condition)
{
if(condition)
{
if(condition)
{
}
}
}
|
|
|
|
|
Acutally they are nested.
if (condition) {
...
} else if (condition) {
...
} else {
...
}
is really:
if (condition) {
...
} else {
if (condition) {
...
} else {
...
}
}
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Cool, I forgot that point. Good thinking
|
|
|
|