This is kind of an old post lol. But I've been using iTextSharp and PDFSharp/MigraDoc for all my 'on they fly' pdf needs. I've had to change the source some to get the exact functionality I've...
Type: Posts; User: MonkOFox
This is kind of an old post lol. But I've been using iTextSharp and PDFSharp/MigraDoc for all my 'on they fly' pdf needs. I've had to change the source some to get the exact functionality I've...
How large is this table? Are all the fields indexed? If you're using these queries often, PDO may suit you better. You can prepare one statement and execute it over and over with different...
That's great! If you don't mind, use the thread tools to mark it resolved. : )
Justin
If all your binding is data members from one database row, then just bind the controls you need to be bound:
Private _data as DataRow
Public Sub New(ID as integer)
InitializeComponent()
Yeah, you're going to want to handle that logic client side with javascript/JQuery(). I would just initially load the last saved data about the character/environment, update any changes on client...
Awesome, thanks for the info. I'll definitely look up PDO since the mysql_* stuff will be gone shortly.
I did some extra research and create a single connection at the beginning of the page load...
When creating a connection to perform a query or non-query. Is it best to open a single connection at the beginning of the page and use it
until the last operation and then close or create a...
That's great! I'm glad everything is working out for you.
No problem man. Let me know how it goes!
Ah, didn't see that. Hmm, well in that case I'm not really sure what's going on.
yes just do something like:
//...
$result2 = mysql_query("DELETE FROM messages WHERE mid=$row ")
if(!results){
header('location: error.php?x=differenterrorcode');
}
//...
The reason you got the 'sprint' error is because it was supposed to be sprintf(), sorry : (.
also in the <form> opening tag, be sure and put 'multipart/form-data' in the quotes in stead of '...'.
I...
Looking at what code you provided for login.php, you didn't call session_start(). You have to call this on every page that you intend to set or retrieve $_SESSION variables.
Otherwise, if you're...
Hmm, is ID varchar in the table? If not, are you accidently setting it to the string value of 1 or 2? I would also use $_POST instead of $_GET, a little more secure. Also, slap an intval() around...
The code below should at least get you started and give you an idea on how to approach the situation.
Basically you set up your pagesize and then figure out how many pages you'll have by dividing...
I ended up just making the keyboard an actual form that was bundled with my application. I just created a reference to it and then sendkeys.send() worked much better for some reason. I still used...
What I'm saying is that when I'm sending keys to the other window and the non-password textbox is the focused control,
then the sendkeys.send works every time. Only when the password textbox is...
Ok so I have a virtual keyboard I've made and I was having issues at first with the focusing so I just changed from using buttons to labels.
Now my problem is that when I have my cursor in the...
I realize that you can't use it until it's saved to the system in tmp or whatever. I just wanted to know how to search the byte stream for malicious scripts and etc. Or if that's even the way you...
Awesome! Glad you got it going : ).
So you have a Bonds table, Exchanges table and another relational table (we'll call it BondToExchanges where you can have 0 to many Exchanges to one bond.
I can't really tell what the code is trying...
How is this used in practice? I see that you're looping through the 'rows' in $thiscat. I think your $row variable needs to be a $rowS and do an inner loop to compare each one instead of the same...
You're updating your $result variable in the nested while. So by the time your inner while completes, when it goes back up to the outer, there are no more fetches left to do. Use $iresult or...
Take a look at This page.
Goes over how to do what you're looking for.
When I upload a file, could I search the file's byte stream for the byte value of <script, <embed or <object and reject if found, to further protect from malware and attacks? Is this the way I would...
Ok I'm adding <ASP:TextBox>'s to a page in code.
I'm going to set their ID and stuff like that.
I'm wanting to retrieve the text of those textboxes on a button press.
Now I know I can't simply...
Thanks for the reply :).
I had figured this out by further investigating the differences in the properties. I should have done that earlier, but I was confused at the time lol.
Thanks again...
Ok, I have two dropdownlists on my page and when the selected index changes I want to create cookies that store the index for resetting the index if someone leaves the page and comes back later.
I...
Private Sub SetOrdersDataSource()
SqlConnection oConn = new SqlConnection(ConfigurationManager.AppSettings["constring"]);
DataSet dsGrid = new DataSet();
...
Use string.indexOf() to first find '<user_register.php'
Once you have that index, then you can search for 'email='
Once you have the index for the string 'email=' then you can get the substring...
You could have an array with all the special character in it like so:
Dim arr(7) as String = {"!","@","#","$","%","^","&","*"}
'Then loop through the special character array and replace the...
If you're using the sizeChanged event, why not just get the total y (from 0 to the sum of the heights of the existing buttons (with any spacing included)) and subtract that from the new size of the...
for i as integer = 0 to myarray.length - 1
myarray(i) = Not myarray(i)
next
Something like that should work and is fairly simple.
System.Diagnostics.Process.GetProcessesByName(name As String)
Justin
You have to assign the datasource again as well. So you have to re-query or just store the datasource (datatable, etc) globally and .Datasource = x and DataBind().
Justin
The only time the client side will execute and not the server side, is if the script returns a false value. Otherwise they will both always execute. I believe.
Justin
I was thinking about adding an asp:radiobuttonlist to the page initially along with a hidden field. And when I change any of the selections, update the value of the hiddenfield to reflect the types...
Ok, so I'm dynamically adding <input type="File" />'s to the page via button click, client-side via Javascript.
Now when I click the upload button I can access the PostedFiles server side, but I...
Would I need to do .SetAttribute("runat","server")? That way the control's event will be triggered server side and not client side?
Ok, so I'm adding linkbuttons to a page dynamically on page_load.
I had it to where the link buttons were redirecting to a page with a query string attached. I was attempting to use the...