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.
Hi,
I have an ASP.NET Page that has an asp:table. On Postback I dynamically add rows to this Table, however on subsequent postbacks I get the following error message:
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to...
Hi I wouldn't use Regex at all for your problem. I would simply use the split function.
String pic="/files/images/image.jpg";
String[] splitPath=pic.Split('/');
String FullFileName=splitPath[splitPath.Length-1];
String FileName=FullFileName.Split('.')[0];
String...
Hey JFrost,
I tried that and was having some problems and I figured maybe a DataTable varible couldn't be carried in a Session Variable, but maybe you can help me.
This is the code I have:
<code>
void Page_Load(Object sender, EventArgs e) {
if (!IsPostBack) {
InitDropDowns();
DataTable...
Also, I'm wondering if a datagrid can be used for this somehow.
The problem is the Data doesn't come from a Database or other source the data is dynamically added with each entry into the form and click of the button
Hi,
I have an asp.net page that has an asp table on it. what I am looking to do, is add rows to that table when someone fills in information in some text boxes and clicks a button. Everything works perfectly, button clicked, new row added.
the problem is, when you go to add another row, it...
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.