|
when the user click on the logout button then it is redirected to the logout page where in page load event their is the code for delete the cookie and redorect to login page.
|
|
|
|
|
Hi all,
I have one textbox,called Name which is validated for not blank.
Error msg: txtbox not blank.
if click the submit button,the validation applies and eerrror msg. displays --txtbox not blank.
and the cursor is out from the textbox.
my problem is ,after i got the error msg. the cursor will be placed in the textbox name.
i am using
txtname.Focus() but still it is not working.
If txtname.Text.Trim.Equals("") Then
lblError.Text = "Please enter Name."
lblError.Visible = True
txtname.Focus()
Exit Sub
End If
Thanks in advacce
mahaboobs
|
|
|
|
|
...
Blog link to be reinstated at a later date.
|
|
|
|
|
Hi guys ,
i like to insert some text area in to my database table...,
That text area should be like our codeproject text area...,
mean i need in that text area should look like rich textbox..,
and those datas have to store in my table...,
when i am display the data how the datas has been entered similar;ly it have to display...,
mean if i said some place bold it have to display that text have to bold...,
plz give me regarding this..,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Could not load file or assembly 'Microsoft.Vbe.Interop, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies
I am getting this error.. Please give the solution for it. When i run my application i am not able access any page.
|
|
|
|
|
Is MS Word installed on your server?
|
|
|
|
|
Hello dear,
I am in big trouble. I want to export a asp table to excel with all formating, I am unable to get that I am setting the width in html table but exported table in excel does not contain that width it has its own width according to text. Cant i set the width of cell as of table?
any help would be highly appreciated.
Thanks
Rohit
|
|
|
|
|
Hy,
how can i find the age of a person in dd/mm/yyyy format.....if the date of birth is given..
i have written a code but it doesent find the number of days(whn the current date is less than the date of birth ex 7/11/2008 - 12/10/2008 )
my code is
string m_Str = TextBox1.Text;
int m_Y1 = DateTime.Parse(m_Str).Year;
int m_m1 = DateTime.Parse(m_Str).Month;
int m_d1 = DateTime.Parse(m_Str).Day;
int m_Y2 = DateTime.Now.Year;
int m_m2 = DateTime.Now.Month;
int m_d2 = DateTime.Now.Day;
int m_date = m_d2 - m_d1;
if (m_date < 0)
{
m_m2 = m_m2 - 1;
?????
}
int m_month = m_m2 - m_m1;
if (m_month < 0)
{
m_Y2 = m_Y2 - 1;
m_m2 = m_m2 + 12;
m_month = m_m2 - m_m1;
|
|
|
|
|
Sorry, what?
You're having trouble finding someone's age when their date of birth is in the future...?
And what's wrong with this:
System.DateTime birthDate = DateTime.Parse(m_Str);
System.TimeSpan diffResult = DateTime.Now.Subtract(birthDate);
Console.WriteLine("Difference in days = " + diffResult.Days);
|
|
|
|
|
I have one link button which is by default false and based on condition i m making it enable as true from code behind which is wroking fine in IE but not Firefox. How to work with fire fox ????????
|
|
|
|
|
Could you specify what you mean by "not working"? What happens, and how does that differ from what you expect? Do you get any error message?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Can we add Listbox control to the datagridview column.
Thankq
|
|
|
|
|
Yes, use template column
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
|
how to access Closing the Internet browser in CS file code
ahmed eldeghedy
|
|
|
|
|
|
Hi,
Please check the attachment http://www.golsinc.com/app7/AJAXEnabledWebSite.zip
also i got one article at codeproject http://www.codeproject.com/KB/ajax/AJAXUpload.aspx[^]that is not working.
Here i made a small application for file upload. Made a huge form and need image upload without page refresh here.
i tried a lot, searched over net but finally my page is posting back on button click. If i dont use
<triggers><asp:postbacktrigger controlid="Button1" xmlns:asp="#unknown">
then it shows error in alert box "Object reference is not set to...."
please check the application and revert me ASAP....
Thanks in Advance....
Any Movie, Software, Song, Game and many more.... Only at Developer's Solution
http://www.devsol.co.nr
Search Any Torrent You Want
A Software for Torrent search only....
Must check it
...VAIBHAV SARAN
vikysaran@gmail.com
|
|
|
|
|
I think for file upload there is no means to do without postback.
What you may do, is to create the file upload control within a IFrame and then postback that IFrame which will be hidden.
By this way you are doing postback without posting back the whole page.
Use javascript callback to see the progress of the upload...
Abhishek Sur
|
|
|
|
|
I want to change background color of Textbox when focus comes on to it and when outof focus background color again changes to its original.
I want to do this using CSS and Javascript and i am using VS2008,C#
Do anyone have idea about this.
Thanks
|
|
|
|
|
Have a look on below mentioned html for your problem. I tested this in firefox and it worked.
<html>
<head>
<title>test</title>
<style>
input {background-color: yellow;}
input:focus {background-color: red;}
</style>
</head>
<body>
<form>
<input id="username" name="username" />
<input id="password" name="password" />
<input id="firstname" name="firstname" />
<input id="lastname" name="lastname" />
</form>
</body>
</html>
Zafar Iqbal
|
|
|
|
|
its not working background color has changed to Yellow on page load but on focus nothing is happening.
Do we have any more solution..??
|
|
|
|
|
Hi
I have an event for the onrow databound
When I try and find one of the controls using
HyperLink hyp5 = ((HyperLink)e.Row.FindControl("hl"));
it shows an object reference error.
However when I use:
for (int x = 0; x < GridView4.Rows.Count; x++)
{
GridViewRow row = GridView4.Rows[x];
HyperLink hyp = ((HyperLink)row.FindControl("hl"));
it works. The problem is, it is slowing my app down by using the second method. How can I find the control using the first method?
thnaks.
|
|
|
|
|
I believe that a GridView row can be accessed only by using GridViewRow. For eg:
foreach (GridViewRow gvr in GridView1.Rows)
{
CheckBox cb = (CheckBox)gvr.FindControl("chkbox1");
if (cb.Checked)
{
string Username = gvr.Cells[1].Text;
}
}. This will work. But if you didn't use a GridViewRow object, you will not get the cell text of a particular row. Hope this helps.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Thanks for replying, however I have another question now:
If I have an event using onrowdatebound, how can I access the current datakey for the row?
Ive tried
for (int x = 0; x < GridView4.Rows.Count; x++)
{
string ref2 = GridView4.DataKeys[x].Values[1].ToString();
but is there a way to get it using e.row?
The reason is I dont want to have to run a loop in my rowdatabound event.
thanks
|
|
|
|
|
Hi
I want to Add/update nodes in xml file using javascript.....
is it possible? if yes then HOW....
Thanks
Dinesh Sharma
|
|
|
|