Click here to Skip to main content
Page 1 of 3
Page Size: 10 · 25 · 50


Author filtered by: Zaf Khan [x]
Answer 28 Dec 2012   license: CPOL
I'm not sure of the MVC4.0 syntax but You could test for the roles as well as to see if the user is logged in....the psuedo code for it would be something along the lines of...If request.auntheticated If userrole is admin show admin menu else show member menu end...
Answer 28 Dec 2012   license: CPOL
I was always under the impression that the fileupload component alowed you to upload a file to a non publically accessible area like an _uploads/uploads folder for example and the file named to anything you wanted like upload243.doc and then once uploaded (and the file extension PRESERVED) and...
Answer 28 Dec 2012   license: CPOL
Depending on the type of control that is GAINING or LOSING control there are many events within the event cycles.One place you can read more is herehttp://www.thevbprogrammer.com/VBNET_08/08-00_VB2K_ControlBasics.htm[^]Another place is...
Answer 28 Dec 2012   license: CPOL
Drop a PANEL control ABOVE your EDITOR with the scrolling issue and Then you should be fine....What ever controls you have in the TOP of your EDITOR....Place them in the PANEL instead!And then when your editor scrolls the panel will stay where it is!!!
Answer 21 Dec 2012   license: CPOL
The whole point of using the database is so that you can DYNAMICALLY populate a SINGLE PAGE TEMPLATE with the record from the database.And that way you dont have to create an indivdual page for each record!The psuedo code for what you are attempting is as follows... 1 - User clicks...
Answer 21 Dec 2012   license: CPOL
It looks like you have your code in the wrong sections..Maybe this LINK will help you..
Answer 21 Dec 2012   license: CPOL
Your stored procedure is designed to add an entry to your database,we know this because it uses the INSERT statementSo you have specified an identity using @name/@identity, but you have not specified the person salary which ought to be there.so wherever you are CALLING the stored...
Forum Message 21 Dec 2012  
What i meant was 1k space for personal notes for stuff related to THIS website so i dont have to save notes in a notepad file on the desktop. In those notes i would store info about who i have help
Forum Message 20 Dec 2012  
Hello - Is it possible to have about 1K of space to make notes within our profiles?
Answer 19 Dec 2012   license: CPOL
Private Sub save_Click() RES.Open "STUDENT_RECORD_DATABASE", CON, adOpenDynamic, adLockOptimistic, adCmdTable RES!ROLLNO = Combo4.Text RES!FIRST_NAME = Text2.Text RES!MIDDLE_NAME = Text3.Text RES!LAST_NAME = Text4.Text RES!CONTACT = Text5.Text ...
Forum Message 19 Dec 2012  
Yes theres INSTR, If INSTR(Look-in-this-string", "For-This-String") > 0 Then 'REM A Match Was Found Else 'REM No_Match_Was_Found End If and if you assign the res
Forum Message 19 Dec 2012  
Did you try the code portion i added in my thread? I tested it and it works fine... obviously we can see the word AND is in the string JACK AND JILL..... It makes me wonder what the ACTUAL stri
Forum Message 19 Dec 2012  
I wonder what version of opera you guys are running as on my opera 12.12 its the same as in IE9 white screen.
Forum Message 19 Dec 2012  
OUTSIDE the environment running it from inside a folder inside mydocuments... the first warning notice is that active x restricted content wants to run. Clicked on allow it to run... Pops up an e
Answer 19 Dec 2012   license: CPOL
If you are using a serverside listbox then change the following propertychange it from...Object.mulitple=truetoObject.mulitple=falsebut dont forget to check that B selected first.dim Test as boolean = Falsedim Marker as integerfor i = 0 to...
Answer 19 Dec 2012   license: CPOL
Try to save the state of the expanded/collapsed rows in a cookie everytime the row visibility changes if that option is available - meaning if cookies are enabled onthe client computer.
Answer 19 Dec 2012   license: CPOL
Mabe this article may be of help to you Stack Overflow
Answer 19 Dec 2012   license: CPOL
Did you try the following?Dim VALUE as integerDim source As String = [String].Format("/Exercises;component/CustomTheme/ThemeResources" & VALUE & ".xaml")Where Value is a variable and you can set it what you like as long as its valid for an .xaml file you have.I'm not 100% if...
Answer 19 Dec 2012   license: CPOL
Change your SELECT statement from what it is now to ....Using cmdObj As New SqlClient.SqlCommand("select Level, Username from UserTable where UserName = 'Test1'", connObj)And also the statement INSIDE the WHILE / END WHILE to....dbLevel=...
Forum Message 19 Dec 2012  
No doubt each employee has a username/name so you can use use compare the username/name of the logged in user to the username/name of the person for whom the holiday booking id for.
Forum Message 19 Dec 2012  
What about rounding your items count up from 7.2 to 8 ? And then calculating the height based on that?
Forum Message 19 Dec 2012  
Here is a sample for you... Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim maintext As String
Answer 18 Dec 2012   license: CPOL
in your code where you have the following..........protected void drpLType_SelectedIndexChanged(object sender, EventArgs e){ if (drpLType.SelectedValue == "Professional") { rdoMeapSupport.Enabled = true; } if (drpLType.SelectedValue == "Enterprise") ...
Answer 17 Dec 2012   license: CPOL
The first line is DECLARING/DEFINING a string called _ConnString and the following portion initiualises it to nothing or empty.The second line then continues where the first line left off and.......Now that we are sure the _ConnString variable is empty...A connection object is...
Answer 17 Dec 2012   license: CPOL
Rather than creating the image dynamically in the code.... Seeing as your creating the html for a table and then adding the image to that...Why not change your code line from sb.AppendLine(img.ToString());to the below instead? sb.AppendLine("
Answer 17 Dec 2012   license: CPOL
If your using HTML5 then you can use the CANVAS tag and create dynamic animations.HTML5 + CNVASCanvas DemosAlso there are some superb samples here - including parralax scrollingIf your not using HTML5 but using older technology like HTML 4.01 then you can use HTML + TIME SMIL 1.0...
Answer 17 Dec 2012   license: CPOL
Here are more connection strings for you,that show how to use connect to a datasource using OLEDB.Conn StringAnd here is the MS-SQL compatible converted code equivalent of your above codeblock.Function SomeKnockeUpCode() As String Dim intX As Integer = Nothing Dim intY As...
Answer 17 Dec 2012   license: CPOL
I guess without using email....You would have to upload it to a PRIVATE portion of your hosting space and then to forward the URL to each of the panel members, try to make them sign (agree to download) for the word document and once they have ALL downloaded it, then you can delete it.
Answer 17 Dec 2012   license: CPOL
I think you can manage it using OLEDB Dont quote me on that as im not 110% sure.Maybe this page will give you more info
Answer 17 Dec 2012   license: CPOL
Look in your IIS control panel or Snap-In.And under the IIS heading look for DEFAULT DOCUMENTWhen you double click it you will be presented with a list of the default document types it will open.Chances are default.aspx or index.aspx maybe be missing although they are usually ALWAYS in...
Answer 17 Dec 2012   license: CPOL
You can find it here........http://wordpress.org/extend/plugins/like-button-plugin-for-wordpress/
Answer 17 Dec 2012   license: CPOL
Whatever styling name you have used to STYLE your text boxes...You just duplicate the style then add :Hover to its name and modify the styleLets say its called MyTextStyleThen in your stylsheet it may appear as below...The style below gives you white background and red...
Answer 17 Dec 2012   license: CPOL
You must assign the page viewers (the people viewing the pages) some form of classification like...public viewee (non member)member viewee (registered member)exclusive viewee (privelidged member)One way you can do this in ASP.NET is to use ROLES.So you would assign the roles to the...
Answer 17 Dec 2012   license: CPOL
In your c# i'm not sure how to code it,but its not difficult.So if i provide it in VB maybe you will understand hopefully?YOUR CODE C#for each (GridViewRow item in GridView1.Rows) { itemName = item.Cells[1].Text; id.Add(method to get id from database); }In VB...
Answer 17 Dec 2012   license: CPOL
Usually most mail service providers only allow you to use their mail servers if you have an account with them.So it begs the question whatever domain your using?....abc@somedomain.com....Do you have an account or membership with somedomain.com (whatever the name of the domain...
Answer 17 Dec 2012   license: CPOL
Check my post HEREIt is Solution 3
Answer 17 Dec 2012   license: CPOL
Yes.You can use the request object and the SERVERVARIABLES property.SERVERVARIABLES
Answer 17 Dec 2012   license: CPOL
Should that %3D be there?are you URLEncoding the &tab parameter value?maybe that should be &tab=wm instead of &tab=%3Dwm
Answer 16 Dec 2012   license: CPOL
Check my post HERE although it is for VB.NET forms application you shold be able to adapt it for use in your webpage.
Answer 15 Dec 2012   license: CPOL
Here is a code block to do JUST what you want.NOTE:Its not my own code, although i did write something similar over 10 years ago.This sample is from Planet Source CodeEvery time i tried to paste the link it conked out for some mad reason.So i have simply pasted the code...
Menu in master page. by Zaf Khan
Answer 13 Dec 2012   license: CPOL
In your master page add the following code....Private mSelMenuItem as string = nothingPublic property SelMenuItem as string get return mSelMenuItem end get set (value as string) mSelMenuitem = value end setend propertyPublic Function...
Answer 13 Dec 2012   license: CPOL
You may to user "server.mappath" method to map the server path.
Answer 12 Dec 2012   license: CPOL
You could do it as.........Using text value based conditions in your reportTextbox1.enabled = (Condition_In_Report = "Text_Value")Using Numeric based values in your reportCombo1.Enabled = (Condition_In_Report = 6 or 9 or (12 and 3))Just replace the numeric or text values...
Answer 12 Dec 2012   license: CPOL
You can use a variable at the form level scope and call it something like "LastColor" and set the value for it in the "IF" statement when you determine the forecolor, and then when the dropdown list selection changes you can recall the color from the static variable.
C#
Answer 12 Dec 2012   license: CPOL
You can do it as below in clientside code. Please Select
C#
Answer 12 Dec 2012   license: CPOL
You will have to cross reference the RGB values in a lookup table which contains the RECOGNISED colors
Answer 12 Dec 2012   license: CPOL
You could always do it as below...CType(Today.Date & " 00:00:00", DateTime)Obviously replace "today.date" with the date you want to use
Answer 12 Dec 2012   license: CPOL
If the information is not sensitive then you could implement XML to persist your data inside a STRUCTURED xml document.

Page 1 of 3
1 2 3


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid