Hi:
Table with 2 columns
KeyValue DisplayValue
1 Tables
2 Chairs
.
.
Can I have a combo box in which the display value is 'Tables, Chairs...', but the code to look up these values is '1,2...'?
Thanks JFrost.
I ended up putting the following code in Application_BeginRequest() in Global.asax file and that resolved my problem. Thanks for your input everyone.
Dim s As String = Nothing
'// Script Header
s += "<Script>"
s += "var hwnd =...
Code Behind Class1
Dim s As String = Nothing
Dim Response As HttpResponse
'// Script Header
s += "<Script>"
s += "var hwnd = window.open('send.htm', 'hp','top=250, width=388, height=327, left=400, titlebar=no, location=no, menubar=no...
Webforms by default inherit System.Web.UI.Page
Public Class IClaimNotes
Inherits System.Web.UI.Page
End Class
I can not use another I Inherit statement. Do I have to use an Interface to implement Multiple Inheritance
claws2rip:
Public Sub MyMessage(ByVal strMessage As String)
Dim sJavaScript As String
dim Response as System.Web.UI.HtmlTextWriter
sJavaScript = "<script language=javascript>"
sJavaScript &= "alert('" & strMessage & "');"
sJavaScript &=...
Custom24:
Your 2nd suggestion will do the job for me. I just need to figure out how to use it.
Where do I write the shared function that checks if a message needs to be displayed or not?
Will this work for a web application because msdn has it(Application Class) listed under the...
How can I send a message to all users currently using the application?
I can use javascript alert and call it on a form load, but I want something that will occur application wide not just when that particular form is loaded. For example in Global.asax file in
Sub...
name is a char field stored as null in the database. I send name to the following function, but It never returns true.
static private bool checkSpaces(char name)
{
bool val=false;
try
{
if (name.Equals("") || name.Equals(null) || Convert.IsDBNull(name))
val =true;
}
catch
{val=...
I want to change the color of the form if a particular label is visible.
lblGo.Attributes.Add("onload", "color();") 'doesn't Work
lblGo.Attributes.Add("onclick", "color();") 'works but doesn't serve my purpose
<script language="javascript">...
How can I change the backcolor of a form on server side?
Private sub button1_click
Form1.ActiveForm.BackColor = System.Drawing.Color.Red
' isn't working.
end sub
I am trying to get data where lastName falls between 2 values eg: A thru E. This would only give me data where lastNames are from A thru D.
I am using BETWEEN val1 and val2
Can I modify this statement or use something else to include lastNames starting with E also.
Thanks
Hi All:
I have a dataGrid(bound to a datatable). After the grid is loaded I add an unbound column to the grid. This new column is the last column(right most) in the grid.
I want this new column to be the left most column when the grid is displayed. How can I do that?
Thanks.
Hi:
I have a dataGrid (bound to a datatable) that displays 25 rows per page.
How can I find out the # of rows being displayed on the current page?
Thanks in advance.
Hi:
I have a dataGrid(bound to a datatable) that displays 25 rows per page.
How can I find out the # of rows being displayed on the current page?
Thanks
...contains a list of all the tables that need to backed up. It loops.
workingdir = "c:\myApp\"
backupdir = "c:\backup\"
Select * FROM &workingdir..myTab INTO table "XYZ" ;
WHERE pkey NOT IN ( SELECT pkey FROM &backupdir..myTab )
above statement gets the...
workingdir = "c:\myApp\"
backupdir = "c:\backup\"
Select * FROM workingdir+"&myTab" INTO table "XYZ" ;
WHERE pkey NOT IN ( SELECT pkey FROM backupdir+"&myTab" )
Select 0
if used('backupdir+"&myTab"')
use in...
Tables XXX and YYY have the same structure.
USE XXX
scan
SCATTER MEMVAR
INSERT INTO YYY FROM MEMVAR where xxx.pkey <> yyy.pkey (error in above statement)
endscan
How can I fix this problem?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.