|
Do you have the Logged-On UserType stored in a session variable? If yes, then it's quite easy. Check for the session value and based on the user type, set the visibility of the user controls to True/False. If not, then at the time of Login (Authenticating the User), store the UserType in a session variable and set the visibility of the User-Control accordingly.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
ya i am saving in session variables .....................
please it would be easier for me if u provide me a code to make the visibility of user control true/false and how to do that in code behind i am using c# and putting user control in overlapping fashion is not possible so how to have 2 user control on same area of same form........................................that will be changed according to user type .........and an each form i have to include both user control...........is it right way ...............thanks a lot jon
hi
|
|
|
|
|
hey jon.....................thanks a lot man .....................done it
hi
|
|
|
|
|
how to use checked and selected property for dropdowlist control, checkbox list and radiobutton list control in javascript in asp.net
|
|
|
|
|
just a tip....
document.getElementById("DropDownList")[document.getElementById("DropDownList").selectedIndex].value
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
One small suggestion for you : While posting messages try to give relavant Subject
document.getElementById("DropDownList")[document.getElementById("DropDownList").selectedIndex].value
Thanks & Regards
Niranjan
|
|
|
|
|
|
check whether there's anything wrong with the sendmail() function.
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Don't delete your post. It is rude.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Dim DateFormat As New DateTimeFormatInfoDate
Format.ShortDatePattern = "dd/MM/yyyy"
If IsDate(Date.Parse(DateString, DateFormat)) Then
End If
1)it is working fine if i give the date in dd/mm/yyyy
but if i give the date in mm/dd/yyyy it is giving exception but i want in else statement that the given date is not in correct format
2)if iam giving 31/02/2007 it is also giving exception how this could be solved
|
|
|
|
|
when you set the DatePattern as "dd/MM/yyyy" then it will work for that format and for the other format offcourse it will throw error. can we write a shared function like this....
Public Shared Function GetFormattedDate(ByVal strDate As String, _
Optional ByVal InputFormat As char = "d") As Date
Dim dtFormat As New DateTimeFormatInfo
If InputFormat = "d" Then
dtFormat.ShortDatePattern = "dd/MM/yyyy"
Else
dtFormat.ShortDatePattern = "MM/dd/yyyy"
End If
Return Date.Parse(strDate, dtFormat)
End Function
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
jon sir
if the user enter the date in mm/dd/yyyy then can we promt a message to enter in dd/mm/yyyy using this code sir
|
|
|
|
|
to validate the input date format, you can write a javascript function[^].
- Regards - JON
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hello everybody,
I installed IIS in my system. Then i created one web appln using vs2003. i tested in my system. It works. Then I tried to open in another system. It says
Server not found.
I think my IIS configuration is not correct. Then I checked that too. Its correct. I dont know why it occurs. Can somebody help me. Thanks in advance.
|
|
|
|
|
Guess that the IIS or website is stopped check it plz.
Shujaat
|
|
|
|
|
in 2003 problems come so convert your application into 2005 application and try it!
Otherwise (with 2003)version do following:
1) Open IIS
2) Under web sites select your website right click select properties
3) Select Home Directory tab and
4) click on create button
hope it works!
Thanks & Regards
Niranjan
|
|
|
|
|
hi guys, i have a catagory named "Computers", what i want to do is when the user hovers the mouse over "Computers" i want it to reveal a list of other catagories, could someone please tell me how to do this? would this be a dropdownlist control and an onmouseover code on the dropdownlist. i am using vs2005 with c# thanks.
modified on Monday, December 24, 2007 6:38:18 AM
|
|
|
|
|
Say "Abraka dabra..." three times and roll the mouse over...
|
|
|
|
|
Friends,
This is the code, below which i used, to select all the columns from Excel sheet. This works fine.
OleDbCommand cmd = new OleDbCommand("select * from [chapters$]",conn);
Can anybody tell me how can i select a particular column. For eg: if the column name is like 'chapter_no'
Regards,
Rahul
|
|
|
|
|
select [chapter_no] from [chapters$]
Does that not work?
|
|
|
|
|
Rahul Babu wrote: OleDbCommand cmd = new OleDbCommand("select * from [chapters$]",conn);
Can anybody tell me how can i select a particular column. For eg: if the column name is like 'chapter_no'
Try,
OleDbCommand cmd = new OleDbCommand("select [chapter_no] from [chapters$]",conn);
You can aslo use name which has whitepaces like
OleDbCommand cmd = new OleDbCommand("select [chapter no] from [chapters$]",conn);
|
|
|
|
|
|
|
How to pass data from one Iframe to another Iframe. Like I place a link button in Iframe1 of page1.aspx and display label message in iframe2 of page2.aspx page.
Pls help me ...
Thanks in advance
|
|
|
|
|
Hi,
u can use hidden field in Main Page and can set value in hidden field then retrieve value from another Iframe using Javascript.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|