|
it quite simple, just add runat attribute to that div.
<div id="div1">runat="server"></div>
<div id="div2">runat="server"></div>
eg.
div1.Visible = false;
and its C# forum, you should ask asp questions in asp forum
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I have controls bound to a 1-row DataTable in DataSet myDs:
myNumericUpDown1.DataBindings.Add("Value", myDs, "tbl.field", false, DataSourceUpdateMode.OnPropertyChanged)
etc.
The data is loaded fine. I point DataTable myDt into myDs, catch the ColumnChanged event, and verify after a change that I have:
myDt.Rows[0][e.Column, DataRowVersion.Original] = 2
myDt.Rows[0][e.Column] = 4
...yet GetChanges() returns null. What dumb thing am I missing?
TIA, brian
|
|
|
|
|
Only thing I can think of is maybe try calling AcceptChanges before modifying the DataSet
|
|
|
|
|
The question: Could not find installable ISAM.
A lot of entries I have red bit noone applied to me.
Everything looks fine(regedit shows all that should, file: Msexch40.dll
in a proper place, etc....
But C# exe points out with
System.Data.OleDb.OleDbException: Could not find installable ISAM.
Regards,
Eduard
|
|
|
|
|
Not one question there, whenever I need to access excel files and interact / automate them I use Microsoft's office Primary Interop Assemblies (PIA's)
Microsoft Excel 11.0 Object Library
Office 2003 Update: Redistributable Primary Interop Assemblies
http://www.microsoft.com/downloads/details.aspx?FamilyID=3c9a983a-ac14-4125-8ba0-d36d67e0f4ad&DisplayLang=en
|
|
|
|
|
Hi.
I most write program for show all dlls in winxp and details them
please help me or show me code in C# for this program
thanks
|
|
|
|
|
|
Directory.GetFiles on every drive you find (DriveInfo.GetDrives). Construct a FileSystemInfo object from the paths returned and read the file's details (version, internal name, etc.)
|
|
|
|
|
I need to develop a flow chart. I have an object that has 3 integers(an identifier, an upper node and a lower node). Would there be a big performance hit or better way than to create an array and arrange my objects in the array in order to process the image. For example:
First, the lower node is ALWAYS bigger than the upper node. Each area can only have two nodes. All the information will be passed to me and is stored in a datatable.
The list I am given has 10 objects. I set up an array with a depth of 10 and a width of 3(1/3 the # of objects). I place the lowest area(highest lower node) in the bottom and middle of the array and iterate the rest up.
Once I get all the objects placed in the array, I can get the real depth and width and call my graphics to draw the objects.
There shouldn't be more than 40 objects at a time, so theoretically, the max array size would be 40x13. The reason I have to make a bigger array is the flow could be a straight line or could branch off like crazy.
Am I way off on this? I am a newbie if it isn't obvious. I have an image of what the flowchart would look like, or, if anybody needs further explanation let me know. Thanks.
|
|
|
|
|
Guess no response is a good response.
|
|
|
|
|
It sounds really stupid, but I can't seem to override the Date header in a httpwebrequest. Whenever (and however) I try I keep getting the ArgumentException (This header must be modified using the appropriate property.).
Currently my code looks like this:
DateTime dt = DateTime.Now;
idmReq.Headers.Set(HttpRequestHeader.Date, dt.ToString());
I also tried these:
idmReq.Headers["Date"] = dt.ToString();
idmReq.Headers.Set("Date", dt.ToString());
idmReq.Headers.Add("Date", dt.ToString());
The problem is that I need to set the Date header for our centralized identity management system.
Can someone please help?
|
|
|
|
|
AFAIK, the Date (and Host ) properties are set by the system and cannot be changed in code.
/ravi
|
|
|
|
|
Hey everyone,
I've got a datagridview linked to an access database with a seach function. It's working well, but with one problem. It only displays the row(s) when you search for the complete User Name. It would be a big time saver if the search would locate any row(s) which contains the txtSearchID, so you would not need to type out the whole user name every time.
At the moment I am using:
Command.CommandText = "SELECT * FROM Users WHERE [User ID] = '" + txtSearchID.Text + "'";<br />
OleDbDataAdapter Adapter = new OleDbDataAdapter(Command);<br />
Adapter.Fill(ds);<br />
I'm sure theres a simple answer, just can't quite figure it out.
Any help greatly appreciated
Martin
|
|
|
|
|
In access try
Command.CommandText = "SELECT * FROM Users WHERE [User ID] = '*" + txtSearchID.Text + "*'";
|
|
|
|
|
you will want to use 'LIKE' instead of '='
example...
Command.CommandText = "SELECT * FROM Users WHERE [User ID] LIKE '%" + txtSearchID.Text + "%'";
of course what you really want to do is...
Command.CommandText = "SELECT * FROM Users WHERE [User ID] LIKE '%@1'";
Command.Parameters.Add("@1", OleDbType.Char).Value = txtSearchID.Text;
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I think he is using an access database, not Sql Server.
Better than %, he must use *
Command.CommandText = "SELECT * FROM Users WHERE [User ID] LIKE '*" + txtSearchID.Text + "*'";
but use parameters it´s a good choice.
|
|
|
|
|
I use % with access and it works fine. What does * do that is better?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Nothing into access it's better, but the "Jet sql" suggest using like with * as wild pattern.
If you use %, the OleDb Provider make the translation for you.
If you try
select * from table where field1 like '%something%'
in the query panel of access you get an empty result.
|
|
|
|
|
OK, well thanks for the info, is good to know
But either way in the context it is being used then it does not matter if use * or %
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Yes, it´s true, the performing is the same.
If you want to know more about old things like the tenebrous jet sql,
you have this
and about the wildcard characters here.
|
|
|
|
|
I have an interesting problem, but have no idea where to start, any help/links etc most welcome
The problem:
I want to create an c# app that any other application (eg, Word, Excel etc ) can print to (so i assume it would be a printer driver?? or printer queue??)
Once the file has been printed to the c# app I will save it out as a file in a specific location (hopefully as postscript).
How do applications like word send a file to a print driver? is it as a postscript file?
Thanks in advance for any comments
Mark
|
|
|
|
|
mark_w_ wrote: I want to create an c# app that any other application (eg, Word, Excel etc ) can print to (so i assume it would be a printer driver?? or printer queue??)
Well, you can not write printer app. There is no such thing. But you can write virtual printer driver. Then any application can use your driver to write (send) data to your driver.
You can not use C# to write printer drivers too. Too bad, you need Windows Driver Kit [^].
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I was just looking at virtual print drivers, thanks for the link, I may have to write a bit of C++.
|
|
|
|
|
Hi all,
i have a usercontrol array. In that whatever the control i want to delete am clearing that in delete button, using UserControl[i].Controls.Clear(), itz fine.
and finally..., i want to check everycontrol wether that was in clear mode or visible mode.
How to check?
Thanks In Advance
--Naren
|
|
|
|
|
I dont understand what you are trying to do. Do you want to access a control after you have cleared it? If so then you cant because clearing controls affectively deletes them
If you want something else then please try to explain again
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|