|
change your logic, if your GetUnitId method doesn't have any record then it should return something which shows that it's null.
Push your brain and it will work out for you
|
|
|
|
|
what is the difference between Server.HtmlDecode and Server.HtmlEncode
Regards,
LEE
|
|
|
|
|
I'd have thought that was obvious. What does MSDN say ?
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 )
|
|
|
|
|
Server.HtmlEncode encodes data and should be performed anytime that you are allowing for free text in an input field. Server.HtmlDecode decodes data that have been encoded with Server.HtmlEncode.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi iam using session("varname");now i want to clear this session how it wiil be possible plz
|
|
|
|
|
You can use session("varname")=null; to clear the session
Regards,
LEE
|
|
|
|
|
Hi
Session object in ASP.NET implements ICollection interface
So Session has a method
Session.Remove("entityName") ;
to remove all the items in Session collection one may use
Session.RemoveAll();
Session.Clear();
P.S.
|
|
|
|
|
By using Session("varname").Remove
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
how to develop spam filter application using asp.net with c#.net
plz help me
|
|
|
|
|
You probably need to have the list of spammer ip addresses in your database or need to use the third-party service for that..
|
|
|
|
|
ASP.NET is not an appropriate technology to use here, unless you're writing an app that reads mail online. Otherwise, why do you need web pages to filter spam ?
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 )
|
|
|
|
|
maybe... he is writing the blogging engine or something. and no wish to use CAPTCHA.
|
|
|
|
|
any one help me,
i am developing an application in asp.net having Mysql as backend.my problem is that my .aspx pages are present in iis in one computer and my mysql database runing in linux machine. i am passing a query like
SELECT * INTO OUTFILE 'd/temp/backup.sql' FIELDS TERMINATED BY ',' FROM cris_cdr WHERE DATE_FORMAT(myDate,'%Y-%m-%d') >= '2007-06-24' and DATE_FORMAT(myDate,'%Y-%m-%d') <= '2007-12-06'
but it is throwing error as
Error Code : 1
Can't create/write to file 'd\temp\backup.sql' (Errcode: 2)
(78 ms taken)
i kwnow that the above query try to writting in the same machine(linux).
can you help me how i can write .sql file in iis machine.
thanks
manoj kumar
|
|
|
|
|
Seems to me that you're just asking for grief. Why not install MySQL on the Windows machine ?
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 )
|
|
|
|
|
Hi i am using vs2003...,
I like to know how to create our own assemblies for our project...,
And i like to know custom controls for asp.net,
I have searched in google but i didnt get some good articles abt that,
Plz u guys if u know, suggest me some good sites with sample codes..,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
|
Hai Guys
In my hosting site SSL is enabled. I am able to access login page in secure(https)mode. After this page i need to convert the url from https mode to http. How to do it?
If you have any suggestions or coding, please reply.
Thanks
Jith
|
|
|
|
|
|
Hi....
I want to Create drive on own server..Just Like Gmail Drive
|
|
|
|
|
What do you mean by "creating a drive"? Virtual partition or ??
GMail Drive is the same as GMail (but with filter). So, All files that you store in GDrive is actually stored in GMail Mail Server. So, If you want to do that, just host the Email server with larger maximum attachment size. then write another client application like GDrive that fake users not to know whether they are sending a mail or transferring the file.
Anyway, I don't think this is a good idea.
|
|
|
|
|
hi,
i have a dagrid..in that checkboxes are there with ids of 1,2,3;
i am passing the ids to that grid are 2,1..accordig to my logic those checkeboxes(1,2) has to be checked =true
for ids 1,2 it is working
if i pass the 3,2 then only 2nd checkbox is checking
if i pass the 3...then no checkbox is checked...
last checkbox is not checking for the last id..
i wrote the code like this in the databound event
strScheduleIds=strScheduleId.Split(',');(here the values i am getting which i passed from the otherpage .)
for(i=0;i<strScheduleIds.Length;i++)
{
foreach(DataGridItem dg in dglist.Items) {
if(dg.Cells[9].Text.ToString()==strScheduleIds[i].ToString()
) {
((CheckBox)dg.FindControl("chk1")).Checked=true; }
}
}
|
|
|
|
|
Have you tried to debug your code? strScheduleIds.Length - 1 in first for-loop?
Are dg.Cells[9].Text.ToString() and strScheduleIds[i].ToString() the same if you pass "3"?
|
|
|
|
|
hi...
iam not able to retrive session data in the next page...but i am able to retrive in same page what may be the problem.....plz tell me if any settings has to be change
i have used this code:
in first page in buttun click
Session["uid"]=txtuid.Text;
in next page
lblsessionview.Text=(string)Session["uid"];
plz tell me where iam doing wrong
|
|
|
|
|
1. Does the next page in the same domain and same protocol?
2. Does your browser enable the cookie?
|
|
|
|
|
hi Michael...
i have checked the cookies and the settings are enabled....and iam doing
in the same domine....cookies r stroring when iam doing cookies program...query string and sessions are not working....plz help me michael
|
|
|
|