I have detailsView control which is in Edit mode by default.
Control is bound to SQL table. In the table there is field thumbsize which can only have following three values: 1, 2 or 3
I want to have dropdown which will show the current value of thumbsize field, and I want to be able to change...
How can I include session variable in databinding.
Example:
<asp:ImageButton ID="btnPreview" runat="server" OnCommand="ImagePreview_Command" CommandArgument='<%# Session["UserFolder"] + "images/" + Eval("filename") %>'/>
I would like commandArgument of above image button to be something...
I am a little bit lost here.
If user turn off cookies, then session variables will be lost, and we want be able to pass them trough the pages, because server won't be able to recognize user? Is this right?
From this it follows that the Form Authentications won't work as well. For example...
is it possible to move coordinate system center point and to rotate whole coordinate system?
I would need something like:
newCoordinateSystem(100,100,60)
it would be new coordinate system with center 100, 100, rotated for 60 degrees? I am trying to illustrate what I mean. :-)
Thanks.
I am trying to get a value of a textbox (before textbox is actually updated) using OnKeyUp event.
Here is example
Let's say textbox had initial value: 123
Then I click into the textbox and I would continue typing 4567.
If I would print textbox value (using OnKeyUp) at this point it would have...
1) I have main Form and Subform.
The Subform is displaying some data depending on the accountID value on the main form.
The problem is when I delete record in the subform. It takes several seconds for subform to show new state.
Just for the test purpose I created "Refresh" button which does...
The code below is simply doing shell comand "ls" (as example).
Question is, how can I redirect output to go to the some file instead to stdout?
int filedesc(){
int n, fd[2];
pipe (fd);
switch (fork()) {
case -1:
//error;
case 0:
close(fd[0])...
I have two MCs on the same level, on the _root.
I am tryin to swap their depths.
_root.mc1.swapDepth("_root.mc2");
The code doesn't work.
Here is few details about my MCs:
- mc2 is clone of mc1. (new instance)
- I dynamically load content (jpg) into MC positioned behind, then, I try to...
I need to write function (filedesc) that will return a File Descriptor. File Descriptor will then be used to read content of the current folder.
Can somebody confirm that I am on the right path?
Here is my idea:
int filedesc(){
int n, fd[2];
pipe (fd);
switch (fork()) {...
I am reading from stdin and when I get prompt I don't know how to get out of it. The while loop goes until end-of-file. So, question is what do I type on the keyboard to say: "I am done". I have tried <enter> and all other kind of keyboard combinations and nothing works.
...
while ((k =...
What event is raised when user click on already selected node in the tree? There is no OnClick (server side) events. I tried to assign action (TreeNodeSelectAction.Select) to every node, but I don't know how to handle event then.
In the help pages, it is clearly said that...
I have aspx page with two controls on it. Let's say I have two repeters:
<asp:Repeater ID="rImages" runat="server">
//content
</asp:Repeater>
<br />
<asp:Repeater ID="rCategories" runat="server">
//content
</asp:Repeater>
In this example Repeater rImages...
Is this possible?
Let's say I have two files:
"mymaster.master" with button control
and
"default.aspx" with textbox control.
When I click on the button (on master) I want to populate textbox (on default.aspx).
Thanks.
I was on the half of my project when suddenly all the controls (server side buttons, labels) became not accessible from within code-behind page. I was getting error: "Control does not exist in the current context". I tried to close and reopen project, to remove page from project, include it...
I have a line of text:
"my automobile is running well"
I want to use reg. expressions to match "auto" in automobile and to produce new variable which will have matching string.
I thought I can do something like this:
myvar = grep (/auto/, $2)
(after above myvar="auto")
but, it's not...
I've just installed Mandrake 10.0. I logged in, I typed startx and I got:
Fatal Server Error
no screens found
I assume I need to properly setup my graphics card.
Which is Nvidia Riva 128ZX 8MB (Integrated into motherboard. I think it is supported by Linux) on Pentium 2 PC.
I tried several...
What would be the best approach to search and replace characters in BSTR type string?
Let's say I have:
CComBSTR = "The Big House"
The resulting string should be: The+Big+House
(Want to replace space character with + character)
Thanks.
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.