I was wondering if anyone know how to output an image to a page that is stored as a Base64 encoded image in a database to a web page inline.
Meaning something like:
<img src="GetImage()">
I'm searched the internet and have only been able to come up with 1 article and that was how to...
Sorry for the delay in response, if you know the IDNum of the Row and it is the primary key in the Database table change your initial SQL select statement to include a WHERE clause so it ONLY slects that row. Then the Row ID would have to be 0.
Hi Z,
You got a couple problem here, first off you are using the ToChar function. A char in C# is a 1 character string so there will be an error in that function although you are not seeing it yet because of your other problem.
In C# a simple \ denotes a newline character so it must be...
I'm actually looking for the data output to occur server side.
I'm pretty sure its possible using the system.Drawing.Printing Namespace
and the System.Drawing.Graphics namespace
Just wondering if someone had done it before or knew of anyplace to see some examples.
I have access to the router of both machines and both machines can have dedicated ip addresses setup for them if necessary available publically. I'd prefer them to have a public ip address that is also filtered by ports so only the necessary ports are open however.
Is it possible to setup a Winodows 2000 Server to print to a printer outside of the LAN. If so what ports need to be opened up on the Router and how is it configured?
to update a DB record assuming you have a table a table with 2 columns ID and theField:
SqlConnection objSqlConn=new SqlConnection();
objSqlConn.ConnectionString="yourDSN";
objSQLConn.Open();
String mySQL="SELECT * FROM myTable";
SqlDataAdapter da=new...
Well, I figured out one way to do it with a Tertiary Operator as follows:
<%# (Convert.ToBoolean(DataBinder.Eval(Container.DataItem,"CustomerAvailable"))?"Yes":"No") %>
Is there a Better/More Efficient Way?
I have a DataGrid bound to a DataSource which contains a boolean DataField. I am wondering if there is a way to display Yes/No in the DataGrid instead of True/False?
Can you do:
<%#
if (DataBinder.Eval(Container.DataItem,"boolField"))
response.write "Yes"...
OK in regards to the "Preserving ViewState when Adding Dynamic Controls" Post. I determined that I might be able to get away with not having to add tablerows dynamically if I use a DataGrid inside a DataGrid's ItemTemplate and then using a single column Table inside that nested...
Well maybe I am missing something, but the primary reason I thought I couldn't use a DataGrid was I needed the ability to use use rowspans and columnspans which I didn't think was possible with DataGrid, but if it can be done, I'd be interested to here how.
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.