I am trying to persist member variables by saving them in the ViewState (only a few small variables) however I read up and I gather its better to save them into the ViewState at the PreRender stage than PageLoad?
I can see that the ViewState can be saved to anytime before Page rendering, but does it make any difference in PreRender or PageLoad?
I have a rather complete application based on sinatra. I feel in need for an easy to integrate forum module (code, extension, etc.). Running a parallel Rails application is not an option on my tiny VPS plan (I even use redis to keep a small footprint). A sinatra based forum would be great news. Thanks
I want to develop a command line tool. I didn't build one before, but I used a few, (like mercurial). What steps do I need to take to know how to do that? So what is the problem:
Regular console application need to be invoked from the command line only from it's directory. Like: C:\Projects\CommanLineProject\MyProjectConsole.exe. I want to use it from the command line from any directory, like mercurial.
Properties seem to be a powerful feature of Subversion. The manual provides some interesting examples of using them. But how do YOU use this feature in your projects?
Hi guys,
I am here to write a small database application that will be running in desktop (offline mode).
I am using MSAccess 2007 as my database file and trying to write code in vb.net.
I used to write the code vb6 an usually had global variables for storing database connection and executing every query from that.
I am trying to upgrade myself from vb6 to vb.net.
do i need to read some more simple starter books also?
I have a problem with my index.php, i have this small script that decides what content to deliver
<?php $clase = $_GET['clase'];
if ($clase == empresa) {include ("empresa.php");}
elseif ($clase == productos) {include("productos.php");}
else {include ($_SERVER['DOCUMENT_ROOT']."/inicio.html"); }
?>
it works when i go to www.mysite.com/index.php
but when i go to www.mysite.com it doesnt and i cant just figure our why.
I wrote a small MATLAB program with a gui. Inside the gui I have, among other things, a plot in which the user should be able to select two points. For this I use the function ginput, which creates a crosshair for selection. Unfortunatley the crosshair extends the whole window and is not restricted to the plot, which doesn't look nice and is confusing for the user. How can the crosshair be restricted only to the area of the plot?
Hi,
I have an Apache server installed on my windows machine using XAMPP. Now I'm trying to use a premade .htaccess file for one of my projects, but it doesn't seem to be seeing it. The project just totally ignores it, even though I've enabled mod_rewrite.
Any idea how I can troubleshoot this? I can't fix it if it just doesn't work and doesn't show me any errors.
Appreciate your help.
What are good diff tools that are self contained (small in size and in as little files as possible), and can be used from an USB with no extra fuss ? Not looking for command line ones.
So far I found diffuse ... any more like it ?
Have any well-documented or open source projects targeted iPhone, Blackberry, and Android? Are there other platforms which are better-suited to such an endeavor? Note that I am particularly asking about client-side software, not web apps, though any information about the difficulties of using web apps across multiple mobile platforms is also interesting.
Even I used break() and exit() statements many times, I am bit confused between them. I need to know exact meaning of both, when we should use them. Please explain with small example.
Thank you.
Hi everyone!
I've recently got interested in Linux network programming and read quite a bit (Beej's Guide to Network Programming). But now I'm confused. I would like to write something to have some practice, but I don't know what exactly. Could please recommend me a couple of projects to start with?
Thanks.
Does anybody know of a reliable, well-made tool for creating standalone desktop applications complete with GUI, using just PHP, or primarily PHP? I enjoy the R.A.D. and many other aspects of PHP and would like to use it for some non server/client projects.
Which is the best programming language to use for creating a screensaver?
I am thinking of creating a screensaver to showcase projects i have done before for self satisfaction.
How should i go about it?
Thanks
i have this small javascript code which i need some help with.
function doFocus(text) {
if (text.value == "Enter Name") {
text.value = "Student Name -"
}
}
All i need here is when someone clicks on my textbox, the text "Student Name -" should change its color, and should text-align=left. so text.color and text.align or the appropriate sytax.
I am gathering small information regarding kernel dll functions.. and I found this function called CopyLZFileName/CreateLZFileName and some other functions related to this LZ.. I googled for it.. I cant find a proper source for it. From the name I guess it copies/creates file but am not sure what kind of file.. does LZ mean something to it. Please let me know.
Hello,
I want to set the size of a JFrame such that the contentPane is the desired size. JFrame.setSize() doesn't take the window decorations into account, so the contentPane is slightly too small. The size of the window decorations are platform and theme specific, so it's bad news to try to manually account for them.
JFrame.getContentPane().setSize() fails because it's managed.
Ideas?
Thanks!
Hi,
I want make simple application in which i want to play sound with text.
The real problem how i synchronize my existing sound file with the animated glowing text.If the first word is small and other will be big then how i play sound with particular word? Is their require an timer?
I have to projects in my .net windows forms, in one form(1st Project) i have timer control already running.
On some request i want to start that timer from the form1 of (second project).
If we are creating new object in second project for the 1st project(Which is currently in running thread) we will not be able to start the timer for the current instance.
How can we access the current running instance from my 2nd project.
Please suggest me some method
I'm working with several components that take color as a uint, but the colors I have are in the format of "#161616". I'm not sure what the relation between the 2 types of colors are or how to go from one to another.
It doesn't have to be an actionscript solution. I have only a small number of these colors, so can be done manually too.
Hi all,,,
I am trying to do a small thing, any 1 help me, I really appricciate...
I have a drop down menu,I want when I select the value, it will call the related data, which I am access with php+mysql, I dont want to jump to other page and show
hi guys , i want to design a small website like stackoverflow (but in deferent language) and i want to use an opensource secure scalable cms to do that , so what cms to use ? ( i prefer using java )
thanks .
Looking for any help regarding the problem. Here's the deal: I have a database that has a teams table and it contains team_id. On one of my pages, I generate a list of links that contain the team_id of the creator in their get URL. I need the team_id on the next page but can't figure out how to pass it through any other way. Using a form and POST isn't an option because this method would only pass through the last links data on the list. Storing in a session isn't an option either because there is no way to discretely pass the the variables I need to a function to set the session variables. I have tried and it can pretty easily be viewed from viewing the source code. So here's some sample code to see exactly what I'm dealing with.
<?
if(mysql_num_rows($result2)>0){ ?>
<a class="fltrt btn btn-danger btn-small" onclick="test()" href="acceptmatch-exec.php?match_id=<?php echo $match_id; ?>&team_id=<?php echo $team_id;?>&action=cancel">Cancel Match</a>
<?}else{?>
<a class="fltrt btn btn-success btn-small" href="acceptmatch-exec.php?match_id=<?php echo $match_id; ?>&team_id=<?php echo $team_id;?>&action=accept">Accept Match</a>
<?} ?>
The code above is generated multiple times on a page via a while loop that was excluded. I want to pass the match_id and team_id variables without being seen anywhere. If I made this a form, it wouldn't pass the correct variables unless there is only one result at the time (not likely). I'm sure there has to be an easy method that is eluding me, so please share thoughts on how to solve this. I feel as though I am not explaining it well enough, but it's not really easy to explain. I basically want something that works like GET but acts like POST and can be hidden from people viewing source code or link locations.
Thanks
I need to have the value for the option in the following:
I have created my select as follows:
<select id="fromSelectBox" multiple="multiple" >
<% foreach (var item in Model.Projects) { %>
<option><%=Html.Encode(item.Text)%></option>
<%}
%>
</select>
How do I set the value of the option using the value in the model which s item.ID?