|
playing with bugs ) wrote: template
something like .psd file with layers from Photoshop. Paint.NET supports the layers.. but I'm not sure whether your template will be editable in Paint.NET..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
playing with bugs ) wrote: i need to change the text
I don't think it is possible with any Image tools.
playing with bugs ) wrote: color of those images
Perhaps you can little adjust the RGB and Contrast etc.
playing with bugs ) wrote: Is there any tool for it ?
1) Paint.NET
2) Adobe PHotoshop
3) Irfanview (To an extent)
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
using smo connect to server ,connect to database and retrive table,then
give me guidelines to retrive rows from particular table using
microsoft.Sqlserver.Management.smo class
|
|
|
|
|
|
Hello every one
There is little problem of IFrame, I have to show Html file in a IFrame, there is File upload control in the form, from there user browse a html file, I don't have to save the uploaded file, just I have to Save path of the uploaded file into an XML File. So I have to show the html file into IFrame by reading path from the XML and If user wants to show the newly uploaded file into IFrame then I have to also show uploaded file into IFrame without saving that uploaded. it will works well fine when I will save the file into server, but don't want to save the file and I have to save the file path into XML.
So how can we assign 'src' of I Frame so that without saving the file..
Following code work well when I was displayed file into IFrame after saving it.
Is there is any method through java script you know?
.cs file
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
string path = System.IO.Path.Combine(Server.MapPath("~"),FileUpload1.FileName);
FileUpload1.SaveAs(path);
myIFrame.Attributes.Add("src", FileUpload1.FileName);
}
.aspx file
<asp:fileupload id="FileUpload1" runat="server">
<asp:button id="Button1" runat="server" text="Button" onclick="Button1_Click">
-- modified at 2:07 Friday 23rd November, 2007
|
|
|
|
|
Vishnu Narayan Mishra wrote: So how can we assign 'src' of I Frame so that without saving the file..
You can not. The SRC needs a file to load. And with security restrictions of loading across cross domains, it ought to be from the same domain/webserver.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Vishnu Narayan Mishra wrote: I there is any metho through java script
I don't think so. You can't load files to IFrame which is stored locally on users system. Have you tried getting the IFrame object through JS and setting the src with the file name specified ?
|
|
|
|
|
Yes i tried through java script
function ShowPreview()
{
document.getElementById('htmlPreviewIFrame').src = GetClientSideControl(document, 'FileUpload').value;
return false;
}
but it will work when the file exist in the web server project folder, i.e. in my project folder.
|
|
|
|
|
Vishnu Narayan Mishra wrote: GetClientSideControl(document, 'FileUpload').value;
Can you show the GetClientSideControl() function ?
|
|
|
|
|
there is no issue regarding this GetClientSideControl() function,This function simply return id of any control. It is running successfully.It is not mandatory to use Iframe, we can also use any other control, do you know any other control?
I am sending the GetClientSideControl() code.. Tell me soon...if you find the solution.
function GetClientSideControl(document,ControlId)
{
var ctl;
var d=document.all;
var intLength=document.forms[0].length;
var i=0;
var id='';
for(i=0;i<intLength;i++)
{
id=document.forms[0].item(i).id;
if (id==ControlId)
{
ctl=document.forms[0].item(i);
return ctl;
}else
{
arr=id.split("_");
for(j=0;j<arr.length;j++)
{
if (arr[j]==ControlId)
{
ctl=document.forms[0].item(i);
return ctl;
}
}
}
}
return ctl;
}
|
|
|
|
|
Vishnu Narayan Mishra wrote: GetClientSideControl
Is this your own method in the page invoking some ActiveX OBJECT?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
there is no issue regarding this GetClientSideControl() function,This function simply return id of any control. It is running successfully.It is not mandatory to use Iframe, we can also use any other control, do you know any other control?
I am sending the GetClientSideControl() code.. Tell me soon...if you find the solution.
function GetClientSideControl(document,ControlId)
{
var ctl;
var d=document.all;
var intLength=document.forms[0].length;
var i=0;
var id='';
for(i=0;i<intLength;i++)
{
id=document.forms[0].item(i).id;
if (id==ControlId)
{
ctl=document.forms[0].item(i);
return ctl;
}else
{
arr=id.split("_");
for(j=0;j<arr.length;j++)
{
if (arr[j]==ControlId)
{
ctl=document.forms[0].item(i);
return ctl;
}
}
}
}
return ctl;
}
|
|
|
|
|
Hi all
I am new to AJAX Methods. I am working on autocomplete Textbox
I succeed in 1 textbox autocomplete.But when i try with 2 textbox i got 1 error
Error in = "AddressOf SearchAdvanced"
Error is : "C:\Inetpub\wwwroot\20-3-2006\TextBoxAutoCompletion\WebForm1.aspx.vb(29): Method 'Public Function SearchAdvanced(Name As String, NameID As String) As System.Data.DataTable' does not have the same signature as delegate 'Delegate Function AutoCompleteHandler(input As String) As System.Data.DataTable'.
"
MYCODE:
----------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AjaxPro.Utility.RegisterTypeForAjax(GetType(WebForm1))
Autocomplete1.PageType = Me.[GetType]().BaseType
Autocomplete1.OnAutoComplete = New Autocomplete.AutoCompleteHandler(AddressOf SearchAdvanced)
acSearch.PageType = Me.[GetType]().BaseType
acSearch.OnAutoComplete = New Autocomplete.AutoCompleteHandler(AddressOf SearchAdvanced)
End Sub
<ajaxpro.ajaxmethod()> _
Function SearchAdvanced(ByVal Name As String, ByVal NameID As String) As System.Data.DataTable
Dim ds As New DataSet
Dim conn As New SqlConnection("server=DSS1;uid=sa;pwd=sa;database=Time")
Dim cmd As New SqlCommand("SELECT Name,NameID FROM IDs WHERE Name LIKE @Name + '%' and NameID LIKE @NameID + '%' ", conn)
cmd.Parameters.Add("@Name", Name)
cmd.Parameters.Add("@NameID", Name)
Try
conn.Open()
Try
Dim da As New SqlDataAdapter(cmd)
da.Fill(ds)
Finally
conn.Close()
End Try
Catch generatedExceptionName As Exception
Return Nothing
End Try
Return IIf(ds.Tables.Count = 1, ds.Tables(0), Nothing)
End Function
-----------
Can any 1 help me what is wrong on my code
Keerthi
|
|
|
|
|
Can you try again with 1 textbox only? Because I don't think that it will work since the signatures are different...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hi friends,
I am having one porblem to format cell's CssClass runtime.
I have written below code in GridView_RowDataBound
<br />
int no;
if(no < 3)<br />
{<br />
e.Row.Cells[1].CssClass = "MyClass";<br />
}
Here problem is there that, If I am putting debug point then Its showing correctly. But if I am not putting any debug point and running application then its updating all row's cell format as per last Css. Dont know whats problem with it ?
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Sun Rays wrote: e.Row.Cells[1].CssClass = "MyClass";
try following code
e.Row.Cells[1].Attributes.Add("CssClass","MyClass");
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi,
I have done that also.
Problem in debug point only. Issue is there only.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Sun Rays wrote: But if I am not putting any debug point and running application then its updating all row's cell format as per last Css
Have you tried to break for all the items in GridView ? Is your code inside a try,catch block ? If yes comment it and check once.
|
|
|
|
|
Hi,
ya I have checked with all possibilities.
If I am debugging line by line my code then its not giving any error, And giving desired output.
But if I am not putting any debug point then its not updating CSS.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi,
I am working on one web application in asp.net 1.0. where I want to send alert to perticular employee in company after submmiting form. This application will be used inhouse severmeans on local server only.
But I got the error as--------
The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available
Can any one help me
|
|
|
|
|
Do you have SMTP server in your LAN?? Your error message seems like you don't have that server.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
swami samarth wrote: The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available
Check this out http://www.systemwebmail.com/faq/4.2.9.aspx[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi all,
I need to set the date format of item template column in grid view 2.0 to dd/MM/yyyy. i need this format to appear always dispite what the user put the system date. i have used the following code in global.asax, but still is changing when the user changes the system date format.
<br />
Protected Sub Application_Start(ByVal sender As Object, ByVal e As System.EventArgs)<br />
Dim ci As System.Globalization.CultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture.Clone()<br />
ci.DateTimeFormat.LongTimePattern = "dd/MM/yyyy"<br />
ci.DateTimeFormat.FullDateTimePattern = "dd/MM/yyyy"<br />
ci.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy"<br />
System.Threading.Thread.CurrentThread.CurrentCulture = ci<br />
End Sub<br />
Also in item template i have put the format :
Text='<%# Bind("cCloseDate"), "{0 }" %>'
Any ideas why????
-- modified at 1:15 Friday 23rd November, 2007
|
|
|
|
|
|
I have tried your solution before and put
Text='<%# Bind("cCloseDate", "{0:dd/MM/yyyy}") %>'
it solved half of my problem since it returned dd-MM-yyyy while i need the seperator / and not -. it returned seperator as - since my system date seperator is -. What i need is to return dd/MM/yyyy dispite of what the system date or seperator is!
Thanks
|
|
|
|