|
|
If I hadn't just wrote it I would never post it.
<asp:CompareValidator id="DateValidator" runat="server" Type="Date" Operator="DataTypeCheck" ControlToValidate="TextBox1" ErrorMessage="!" />
|
|
|
|
|
i am reading from a gridview that have atleast 10 rows
i want to insert all rows at a time how can i do it without using any loop.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
How Can I convert MM/dd/yyyy format into dd/MM/yyyy and the date.
using Asp.net 2.0 with c#
|
|
|
|
|
Use the DateTime.ParseExact method to parse the string into a DateTime value, then use the ToString method on the value to format it into the desired string.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I am developing website...I want to display 3 table details using Tab control...I am using following code..but its displaying different position..i wnt to display with same position...
function VisibleMe(no)
{
//alert("test");
document.getElementById("div1").style.visibility = "hidden";
document.getElementById("div2").style.visibility = "hidden";
document.getElementById("div"+no).style.visibility = "Visible";
document.getElementById("div"+no).style.left = 0+"px";
document.getElementById("div"+no).style.top = 0+"px";
//document.getElementById("tabtd").innerHTML=document.getElementById("div"+no).innerHTML;
}
<table>
<tr><td>
<div id="div1" style="overflow:scroll;width:814px;position:absolute;">
<table width="1600" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td valign="middle" width="110"><div class="client">PublisherName</div></td>
<td valign="middle" width="110"><div class="client">AdName</div></td>
<td valign="middle" width="120"><div class="client">ServedImpressions</div></td></tr>
</table></div>
<div style="overflow:scroll;width:814px;position:absolute;" id="div2">
<table width="2000" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td valign="middle" width="110"><div class="client">PublisherName</div></td>
<td valign="middle" width="110"><div class="client">InteractionRate</div></td>
<td valign="middle" width="170"><div class="client">InteractionAverageDuration</div></td></tr>
</table></div>
</div>
<table border="0">
<tr>
<td id="td1" onclick="VisibleMe(1)"><b>Creative Summary</b></td>
<td id="td2" onclick="VisibleMe(2)"><b>Engagement</b></td>
</tr>
<tr><td valign="top" align="left" bgcolor="#FCFCFC" colspan="3">
<span id="tabtd"></span>
</td>
</tr>
</table>
</td></tr></table>
if anybody knows..plz reply me..
Thanks
Raaj
|
|
|
|
|
Try to change the display style. Even if you change the visibility of the control, it will occupy the area for rendering it.
*jaans
|
|
|
|
|
I changed position equalto relative and absolute....but I couldnt get
Raaj
|
|
|
|
|
I asked you to change style.display .The code will be
document.getElementById("div1").style.display = "none"; for making it invisible and
document.getElementById("div1").style.display = "block"; for making it visible.
*jaans
|
|
|
|
|
Hi,
I am using ASP,NET 2.0,
In my application,I have to save file through Client Call Back.
Can any one help me in this regards
thanks
|
|
|
|
|
How to retain hyperlink color when clicked?
Thanks in Advance.
|
|
|
|
|
Check out a:visited, that is what you are trying to set.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi Bob,
Thanks for your reply.
I have written the script as follows
a:link {
COLOR: #0000FF;
}
a:visited {
COLOR: #800080;
}
a:hover {
COLOR: #FF0000;
}
a:active {
COLOR: #00FF00;
)
when I click on a link..its color gets changed and redirects to some xyz.apsx page(assume).Now the link color gets refreshed in that page.I need to retain the color of link (i.e visited color) in redirected page.
how can this be done?
Thanks in advance.
|
|
|
|
|
The honest answer, I have no idea off the top of my head. Sorry
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hy,
can i add a dropdown list to a celender control so that i can select month and year directly from the drop down list without clickng on NEXT all the time(as it takes a lot of time).
Alernative solution to this problem are welcome
|
|
|
|
|
For this you have to customise lika below
Add a row above to calender control and add two dropdown in the that row one for month and another for year and on OnSelectedIndexChanged event of both set the calendar control Selected value like
int Year = Convert.ToInt32(ddlCalYear.SelectedItem.Text);
int Month = ddlCalMonth.SelectedIndex + 1;
myCalendar.VisibleDate = new DateTime(Year, Month, 1);
Cheers!!
Brij
|
|
|
|
|
Hy thanks for replyng to my question...but can i add the list inside calender.. there is a control inside the calender (NEXT CONTROL)which shows next month..can i add droplist in place of that control.
regards
|
|
|
|
|
This is Arun,
We have shifted our WebApplication and DataBase From Old Server i.e(Both webApplication and DataBase in same server,windows 2005 server and Framework 2.0) to New Server i.e(webapplication in seperate server and Databse in seperate server,windows 2008 server and Framework 3.0).
The problem our clients facing is machine key issues ,after shifting from old server to new server,, and webapplication has been developed using framework 2.0. How to resolve this problem.
ArunVijay
|
|
|
|
|
Arun please post the error you are getting and line at which you are getting that error. enable debugging options so that you could get the source of error
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|
|
Hi Ahsan
Thanks for reply,
The Error is validation of ViewState MAC failed. if this application is hosted by a web farm or cluster , ensure that <machinekey> configuration specifies the same validtaion and validation algorithm.Auto genarate cannot be used in a cluster.
ArunVijay
|
|
|
|
|
hi....
how can i access a particular data from one website to another using RSS.
does any one have experience in this process.
thanks in advance..
|
|
|
|
|
You need RSS reader for this purpose. It is very simple. Search google or this site and you will fine many Rss readers.
I recommend this[^]
Ahsan Ullah
Senior Software Engineer
MCTS 2.0
|
|
|
|
|
Hi. I am designing website consist master page and contentpages.
i have save, delete, clear buttons on masterpage. i want to write code to fire event when i click those buttons from content page. how to fire masterpage events from content page.(Using C#.NET)
|
|
|
|
|
Don't duplicate the questions
Cheers!!
Brij
|
|
|
|
|
Hi. I am designing website consist master page and contentpages.
i have save, delete, clear buttons on masterpage. i want to write code to fire event when i click those buttons from content page. how to fire masterpage events from content page.(Using C#.NET)
|
|
|
|