User Profile
Collapse
-
Do you have the name of that control?... -
Read something about the WebBrowser object maby some one know if i can to it with that? "All" I need is an screenshoot from a webpage...Leave a comment:
-
Render images "on the fly" from html
I have a problem....
I need to send a graph via email from an asp.net (c#) web app. My Graph is buildt by an <ul> and css. When I mail this created HTML it doesnt show the right way in outlook but works fine in thunderbird. I guess that outlook isnt that good with rendering the html and css. I dont want to build my graph with tabels so is there any way to make an image of my graph and use it as an attachment.
To... -
-
Hmmm dont really get what you want to do so im guessing you want something like this:
lblDate.Text = System.DateTime .Now.AddMinutes (30).ToString(" dd/MMM/yyyy ");
Just add "dd/MMM/yyyy" int the ToString to get the wanted format
GL
KrilleLeave a comment:
-
And you have tryed rebinding the grid after your delete code?Leave a comment:
-
Have to say that i prefer doing it with an sql statement, like this:
just my personal oppinion...Code:string strSql = "spPastelConfig @ServerName='"+this.ServerName+"' @dbName='"+this.DatabaseName+"'"; SqlCommand cmd = new SqlCommand(strSql, cn); cn.Open(); cmd.ExecuteNonQuery();
Leave a comment:
-
In your form set the imagebutton as the default button and when return is pressed in a textbox you will call the event of that button...
Like that.Code:<form id="form1" runat="server" defaultbutton="Button1">
Leave a comment:
-
-
I think you have to reload the data in the gridview in the delete event....Leave a comment:
-
Signed activex control dont load
Hey!
Im making an activex control in .Net that will print some nametags. Problem is that i need to sign my assembly with a strong name key to bypass some scurity issues with printing so this is what i have done:
I added a new key to my assemby via the signing tab in propertys (vs2005) after this the activex control dont load in IE anymore....
Do i need to add something to the object tag in the HTML or... -
-
So true. Go with that since you not gonna use any features of the Bitmap class anywayLeave a comment:
-
Since you are using bmImage as file name and concat it to your path you will force it to call it´s ToString() method wich outputs what your file will be named.
this is your code:
use this insted:Code:bmImage.Save(AppDomain.CurrentDomain.BaseDirectory + "..\\..\\Images\\"+bmImage);
...Code:string strFileName= fileDialog.FileName.Substring(fileDialog.FileName.LastIndexOf("\\")Leave a comment:
-
To prevent getting index out of range exeption use the following piece of code:
...Code:protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { foreach (Control ctrl in e.Item.Controls) { if (ctrl.ID == "id of linkbutton") ((LinkButton)ctrl).BackColor = System.Drawing.Color.Red; } }Leave a comment:
-
The error i get when trying to print from activex is:
"Request for the permission of type 'System.Drawing .Printing.Print ingPermission' "Leave a comment:
-
Try not to use the StreamWriter insted use the code that i pasted, the method Save() in the Bitmap classLeave a comment:
-
You have to do this in the repeter event called ItemCommand. Get the linkbutton from the repeter control array and set the color of it.
this should go in the event but with propper index values
((LinkButton)Re peater1.Items[index].Controls[index]).BackColor = System.Drawing. Color.Red;
Good Luck
KrilleLeave a comment:
-
You can use concat for SQL if u make it safe from sql-injections wich isnt that hard... I usally just make an static method in my DB class.
all you need to do is put ' around string and remove ' inside of string so this will work out:
" ' " + strInput.Replac e(" ' ","") + " ' " (dont use white space in replace just did that now so you could read it)
Cheers
...Leave a comment:
-
actually the gridview has a property for this and its named EmptyDataText.S o all you need to do is use that property.
<asp:GridView ID="MyGrid" EmptyDataText=" No records found" ......
This is nice to use when you populate a GridView with an search result.
Good Luck
/KrilleLeave a comment:
No activity results to display
Show More
Leave a comment: