|
Deleted Message
You really are dumb
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
.netman wrote: if (c.GetType().ToString().Equals("System.Web.UI.WebControls.TextBox"))
The above line is awful use the is (or as) keyword.
if(c is TextBox)
{
}
or
TextBox tb = c as TextBox
if(tb != null)
{
}
Also, as was correctly stated above, you need to check if 'c' is a Label as well. Note that these 2 controls both implement ITextControl which has a .Text property that you can use.
This will be my final answer to your questions. see above response for why.
modified on Wednesday, October 8, 2008 8:38 AM
|
|
|
|
|
Hi! EveryOne
I have a some problem.
My assignment is that I would design an Employee Id Card with database in ASP.Net. My requirement is when I run the program, Employee Information Form has appeared. After the submission of details all information is set on id card with employee photographs and stored in database as well.
I am a fresher. I stored all the information in database, but I don't know how set all the deails on Id card.
Please help me on this.
Thanks in advance.
|
|
|
|
|
Read all the information from the form/database and set it on the IDCard page.If it doesn't solve your issue then please give detail about the ID card.
Cheers!!
Brij
|
|
|
|
|
Thanks for your Kind attention!
As u know I am fresher in dot net and i don't know what's the process to set details in Id Form.
Id details are following:
NAME:
CODE:
EMP_PIC:
LOGO
ABOVE 4 ITEMS ARE SET ON FRONT SIDE OF CARD.
ADDRESS:
CONTACT NO:
SIGNATURE: (PLACE FOR SCANNED EMPLOYEE SIGNATURE)
TERMS & CONDITION:
ABOVE 4 ITEMS ARE SET ON BACK SIDE OF CARD.
SIR,IF U HAVE INTERESTED IN MY ASSIGNMENT, I WILL SEND MY ID FORMAT ON YOUR MAIL.
MY EMAIL ID: great_238@yahoo.co.in
THANKS
|
|
|
|
|
How can I create a sitemap from a database? I want to display menu as per allocated to user...I have User Types that determines what users can access
|
|
|
|
|
Well the users will all have their own unique ID so just match that to the correct areas of the sitemap and displau appropriatly on page.
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
Hi, I don't understand how is this related to my question
|
|
|
|
|
I want to write javascript validation where i m disp. error message in asp label controll using .innerText which is not working with Fire Fox. So, how to write it down code it will work in Both Interne Exporer and Fire Fox ?
|
|
|
|
|
|
Thanks for reply I know this code but i want methodology how to use this one. I mean like this in each and every page i have to check for browser and have to write according to that. What i want cant we can use any else which is common in both ? or if we have to do like this only then each time i have to write code in if condition only.....
|
|
|
|
|
Try This For Browser Detection
html><br />
<head><br />
<script type="text/javascript"><br />
function detectBrowser()<br />
{<br />
var browser=navigator.appName;<br />
var b_version=navigator.appVersion;<br />
if ((browser=="FireFox"))<br />
{<br />
alert("Browser : FireFox")<br />
}<br />
else if ((browser=="Microsoft Internet Explorer"))<br />
{<br />
alert("Browser : IE");<br />
}<br />
}<br />
</script><br />
</head><br />
<br />
<body onload="detectBrowser()"><br />
</body><br />
<br />
</html>
|
|
|
|
|
Yes you can always write such type of code
Can you tell what are you trying to do ?
Again can you post your javascript code which is not working ?
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... "
Check My Blog
|
|
|
|
|
my javascript code is.....
var lblMsgCtrl=document.getElementById('<%=lblMsg.ClientID%>');
lblMsgCtrl.innerText="Test";
and this is not working in fire fox as it is not support innerText so I wanted to know some alter way which can use in both browser or one mathod by which i can use my code which based on browser.
But here i found one solution that is .innerHTML which is working for both IE and Firefox.
So thanks for reply. I got my solition that is 'innerHTML'.
|
|
|
|
|
Hi guys i have two applications,
In one application i have a master page in that content place holder i given one iframe...,
In that i frame i am giving hardcode src file for the another apllication url...,
In my localhost everything going fine...,
Suppose if i implement it in live server.., it will give any probs?,
Or anyother solution will be there to access another project froms in this project master page?,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
did you tried with live server ? i dont think so there would be any problem.
Thanks !!!
cheers,
Abhijit
Think Sharp | Code Sharp | C Sharp
|
|
|
|
|
Please test it on LiveServer?thre'll be no problem as i've done it earlier
Cheers!!
Brij
|
|
|
|
|
what is actually dotnet framework. how can we define that. plz clear it. thanx in advance.
yogesh
|
|
|
|
|
http://www.tech-faq.com/net-framework.shtml[^]
Try to use Google, or any other search enginge, to find the answer before posting here.
Andreas Johansson
IT Professional at Office IT Partner i Norrbotten Sweden
What we don't know. We learn. What you don't know. We teach
|
|
|
|
|
Try Google
cheers,
Abhijit
Think Sharp | Code Sharp | C Sharp
|
|
|
|
|
Use MSDN
Cheers!!
Brij
|
|
|
|
|
I am in the process of implementing "Forgot Password" functionality.
I call the MembershipUser.ResetPassword() method and get the new password as the value that is returned from this method.
However, in the code that immediately follows, I call Membership.ValidateUser(username, password) with the username and new password and validation fails (false is returned).
Am I missing something?
|
|
|
|
|
I'm hosting a chat on my website. I figured out how to hold a getAllMessages request/connection and wait for new messages using Monitor.wait(). but it breaks when too many people use it. So, I need help figuring out how to scale this on my host website, discountAsp.net.
|
|
|
|
|
davidhere40 wrote: but it breaks when too many people use it
So what error etc? Is it 3rd party code, if so contact them. Not enough info to help you.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
The website starts saying "server unavailable" in red on a white page I believe.
The chat is something I wrote because I couldn't find chat software I liked out there. Especially because I want full control and scalability without paying a ton down the road. I have the chat embedded in my web page and the main page in an iframe so that people can continue surfing as they chat.
Every solution I look at uses a refresh rate. I'm starting to think I'm going to use a second server at home with a desktop application that does all the chat stuff. that way I'll have more control. I've got most of the code ready also from a previous project.
|
|
|
|