By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,433 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

asp.net help with if and sql thingies :-)

P: 2
I'm really strugling with something that should be very basic. I've got an SQL db holding user preference information - 0 for no and 1 for yes

In the head i have:

Expand|Select|Wrap|Line Numbers
  1.  <script runat="server" language="VB"> 
  2. Function general() as String
  3. IIf question.FieldValue("question_general_info", Container) = "1",Return("<img src='images/check2.gif'>"),Return("<img src='images/delete2.gif'>")
  4. End If
  5. End Function
  6. </script>
  7.  
in the body I have:

Expand|Select|Wrap|Line Numbers
  1.  <% response.write(general()) %>
And of course it doesn't work.

Please help

Craig
May 26 '06 #1
Share this Question
Share on Google+
1 Reply


P: 2
Well, unfortunately my question was too silly to be responded to.

Here is how I overcame it myself. If it's wring it's wrong, but it works.

string TTUserID = DS_uidAndPwd.FieldValue("user_ID",null);
string User_Name = DS_uidAndPwd.FieldValue("user_full_name",null);
int intUserID;
Session["intUserID"] = Convert.ToInt32(TTUserID);
Session["Full_Name"] = User_Name;

I've posted my solution in case someone else needs help or you may want to show me the error of my ways ;-)
Jun 6 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.