|
I need to paste scrren shot in Multiline text field. Is it possible or any other way to do this in web application?
|
|
|
|
|
No, not possible. Text field tells exactly what it is for - TEXT. Screenshots are not of same type and thus cannot be pasted in it. For screenshots, editors like paint or so will do.
|
|
|
|
|
Hi all,
In order to learn creating Mobile Apps with HTML5, what
programming languages do I have know?
what software's do i need to install?
Any pointers are greatly Appreciated.
Regards,
Amanda
Amanda
|
|
|
|
|
Sunitha27 wrote: what
programming languages do I have know?
You are ok with HTML5 & Javascript only (based on the application though!). If you know java or .net, good enough for any kind of application having html5 support.
Softwares: you need to test the development in the html5 compliant browsers. Check here[^]
|
|
|
|
|
See here[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I am hoping someone can help me with this one as it has me tearing my hair out.
I have a HTML5 audio element on my page whose source is an mp3 audio stream. Everything is working as expected, I can pause the stream and play it again as you would expect.
A slight issue though, if I close the page, the audio file stream continues to download, even if I close the browser. I have confirmed this with Fiddler. I have tried various things such as setting the src to an empty string and then calling the load method, however, nothing seems to work.
Anyone have a solution?
Thanks in advance,
Adam
|
|
|
|
|
Hey,guys,I make a useful app to debug webpage on iOS.It's free,always be free!And no ADs!But I don't know how to make people who works on mobile web app to know about it.In order to make it better I need to know what they want. Here is the app.
MIHTool
About MIHTool.http://www.iunbug.com/mihtool[^]
View in App Store.https://itunes.apple.com/us/app/mihtool/id584739126?ls=1&mt=8[^]
MIHTool Google group.https://groups.google.com/group/mihtool[^]
MIHTool helps Front-End Engineers to debug and optimizing their webpages on iPad and iPhone.
Right now:
For iPad
1.With HTML editor:view webpage source code with syntax highlighting and formatting;editing source code or creare a new webpage and preview the result.
2.Show WebKit Debug Borders(Compositing Render Layers).
3.Show Webkit Repaint Counter(Paint Rects).
4.More development tools(Firebug,YSlow,JS Console,WhatFont,PageSpeed,GTmetrix,W3C Markup Validation Service…).
5.User agent switcher.
6.Evaluating JavaScript in the address bar.
7.Full screen mode(Shake Device To Toggle Full Screen Mode).
8.Disable cache.
9.Clear History,clear cache,clear cookies, clear localstorage.
For iPhone
1.Show WebKit Debug Borders(Compositing Render Layers).
2.Show Webkit Repaint Counter(Paint Rects).
3.Full screen mode(Shake Device To Toggle Full Screen Mode).
N/A
|
|
|
|
|
This is a 2 part question. I have a service that has a name "Ads 1", "Ads 2". They take a parameter of "1" and "2".
1. When I invoke the method to start the service "Ads 1" the " 1" is truncated, so I get "Ads" being passed. How can I stop this and force it to be "Ads 1"? All my other services start, stop, pause, everything else just fine, but they don't have a space then number either. What am I missing?
2. I am trying to pass the parameter with the startservice. I am using a hardcoded parameter value(1) for now to get it to work in testing. Due to the fact that I am unable to get the service to start I am not sure the parameter is being passed. How can I check to see if the paramter is being passed and/or Am I doing this right way?
Any help is appreciated. Thank you.
<pre lang="c#">
int iPos;
int iCount = 0;
string sService;
try
{
ConnectionOptions conOpts = new ConnectionOptions();
conOpts.Username = ddlServers.SelectedItem.Text.ToString() + "\\" + System.Configuration.ConfigurationManager.AppSettings["AdminUser"].ToString();
conOpts.Password = System.Configuration.ConfigurationManager.AppSettings["AdminPassword"].ToString();
System.Management.ManagementScope oMs = new System.Management.ManagementScope("\\\\" +
ddlServers.SelectedItem.Text +
"\\root\\cimv2", conOpts);
while (iCount < lboxServices.Items.Count)
{
if (lboxServices.Items[iCount].Selected)
{
iPos = lboxServices.Items[iCount].Text.IndexOf("-");
sService = lboxServices.Items[iCount].Text.Substring(0, iPos).Trim();
System.Management.ObjectQuery oQuery = new System.Management.ObjectQuery("select * from Win32_Service Where Name='" +
sService +
"'");
ManagementObjectSearcher oSearcher = new ManagementObjectSearcher(oMs, oQuery);
ManagementObjectCollection oReturnCollection = oSearcher.Get();
if (oReturnCollection.Count > 0)
{
foreach (ManagementObject oReturn in oReturnCollection)
{
if (oReturn.GetPropertyValue("State").ToString().ToLower().Equals("stopped") ||
oReturn.GetPropertyValue("State").ToString().ToLower().Equals("paused"))
{
String[] sArgs = new string[] { "1" };
oReturn.InvokeMethod("StartService", sArgs);
}
}
}
lboxServices.Items[iCount].Text = sService + " - " + CheckService(ddlServers.SelectedItem.Text, sService);
}
iCount++;
}
}
catch (Exception err)
{
lboxServices.Items.Add("Error: " + err.Message.ToString());
}
|
|
|
|
|
i want to add a calender to my web project , which will auto detect the date and will update offline
|
|
|
|
|
crood wrote: will auto detect the date and will update offline
Your question is not too clear!
crood wrote: i want to add a calender to my web project
There is standard Microsoft Web UI calendar control. If needed, there are various free and third party calendar controls too.
If you face issues, be elaborate and specify what you are trying to do and struggling with.
|
|
|
|
|
in fact, i need drop down menu similar to ibm.com, but i need it to with css, and css only
i've tried to make one, with
transition: height; here is demo[^] (thanks to:Christofer Vilander) , but it doesn't have expended width, it drops with same size when it is un hovered, is it possible to increse the drop down width, and keeping the button size the way it is, or i have to search for another trick or just give up and use jQuery?
|
|
|
|
|
Mohamed Samir wrote: is it possible to increse the drop down width, and keeping the button size the way it is,
Yes
Try:
.box {
width: 100px;
height: 60px;
background: #005ca1;
-webkit-transition: height 1s;
-moz-transition: height 1s;
-ms-transition: height 1s;
-o-transition: height 1s;
transition: height 1s;
}
.box:hover {
height: 225px;
width: 200px;
}
|
|
|
|
|
hi
i want to Know how to add google map location in my page...
|
|
|
|
|
Google tells you how right here ...
vbmike
|
|
|
|
|
|
|
Are there any articles or books which help in maximum utilization of the developer tools provided by different browsers? Can somebody give me the link to it.
|
|
|
|
|
You may check http://www.andismith.com/blog/2011/11/25-dev-tool-secrets/
|
|
|
|
|
And http://hacks.mozilla.org/2011/07/tilt-visualize-your-web-page-in-3d/
|
|
|
|
|
I'm using this below code to create pdf file from ssrs report on button click.It was working fine when i run the project on my local system,but when i hosted it on ISS i'm unable to view the pdf file as o/p.Plz suggest the solution ASAP..
protected void btnAuthenticateAndPrint_Click(object sender, EventArgs args)
{
try
{
LinkButton lb = (LinkButton)sender;
GridViewRow row = (GridViewRow)lb.NamingContainer;
Label lbOrderID = row.FindControl("lbOrderID") as Label;
int OrderId = Convert.ToInt32(lbOrderID.Text);
da = new SqlDataAdapter("Get_PODetails", con);
da.SelectCommand.CommandType = CommandType.StoredProcedure;
da.SelectCommand.Parameters.AddWithValue("@MPDI_ID", OrderId);
ds = new DataSet();
da.Fill(ds, "PO");
if (ds.Tables["PO"].Rows.Count > 0)
{
lblPOId.Text=ds.Tables["PO"].Rows[0]["MPDI_ID"].ToString();
lblVendid.Text = ds.Tables["PO"].Rows[0]["MVDI_ID"].ToString();
lblBranch.Text = ds.Tables["PO"].Rows[0]["MBRI_ID"].ToString();
lblDate.Text = Convert.ToDateTime(ds.Tables["PO"].Rows[0]["MPDI_Date"]).ToString("dd-MMM-yyyy");
}
rs = new RSWebService.ReportingService2005();
rsExec = new REWebService.ReportExecutionService();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
rs.Url = "http://localhost/ReportServer/ReportService2005.asmx";
rsExec.Url = "http://localhost/ReportServer/ReportExecution2005.asmx";
byte[] Sendresults = null;
byte[] bytes = null;
string historyID = null;
string deviceInfo = @"<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";
string format = "PDF";
string encoding = null;
string mimeType = null;
string extension = null;
REWebService.Warning[] warnings = null;
string[] streamIDs = null;
string _reportName = @"/FIMO GOF Assets Reports/GOF PURCHASE ORDER";
REWebService.ExecutionInfo ei = rsExec.LoadReport(_reportName, historyID);
REWebService.ParameterValue[] parameters = new REWebService.ParameterValue[3];
parameters[0] = new REWebService.ParameterValue();
parameters[0].Name = "MVDI_ID";
parameters[0].Value = lblVendid.Text;
parameters[1] = new REWebService.ParameterValue();
parameters[1].Name = "MBRI_ID";
parameters[1].Value = lblBranch.Text;
parameters[2] = new REWebService.ParameterValue();
parameters[2].Name = "MPDI_DocNo";
parameters[2].Value = lblPOId.Text;
rsExec.SetExecutionParameters(parameters, "en-us");
Sendresults = rsExec.Render(format, deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);
MemoryStream ms = new MemoryStream(Sendresults);
FileStream stream = File.Create("Asset Module/Reports/PO_Report.PDF");
stream.Write(Sendresults, 0, Sendresults.Length);
stream.Close();
Label lbpath1 = new Label();
lbpath1.Text = "Reports/PO_Report.PDF";
FileInfo f = new FileInfo(Server.MapPath(lbpath1.Text));
System.Diagnostics.Process.Start(@"" + f.FullName + "");
}
catch (Exception Ex)
{
throw Ex;
}
}
#endregion
modified 23-Dec-12 23:58pm.
|
|
|
|
|
Vinay Meka wrote: working fine when i run the project on my local system,but when i hosted it on ISS i'm unable to
This means something is missing on the server which is present on your localsystem. Files or permission.
Vinay Meka wrote: rs.Url = "http://localhost/ReportServer/ReportService2005.asmx";
rsExec.Url = "http://localhost/ReportServer/ReportExecution2005.asmx";
Url expects the local system to have report server. Does the system where you are hosting it has report server installed? It is always good to give proper URL with server name instead of localhost. Like: http://machineServerName/Reportserver
Vinay Meka wrote: FileStream stream = File.Create("Asset Module/Reports/PO_Report.PDF");
You might be having permission error leading to no creation of PDF file.
|
|
|
|
|
Hi
I am getting an error on My asp.net page ONLY ON FIRST LOAD
Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Line 131: <link rel="Stylesheet" type="text/css" href="~/CSS/DropBoxStyles.css" />
Line 132: <form class="fContent" id="mform" runat="server">
Line 133: <asp:ScriptManager ID="ScriptManager1" runat="server">
Line 134: </asp:ScriptManager>
Line 135: <div id="adminBar" class="AdminTool" runat="server">
Can someone help me with this . it only happens shen i just started the web app , after that if i refresh its fine
Answer only if you have a suggestion on how to fix , I can use google too(didnt help much).
Kind Regards
Chona1171
Web Developer (C#), Silverlight
|
|
|
|
|
are you using IIS or IISExpress ?
plz update
|
|
|
|
|
I cannot exactly figure out how the scroll position is measured.
I have a container with a specific height (400) and some elements (30) in it with specific heights (18). The container displays about 7.2 items in it. The maximum scroll position in firefox is 142. In chrome 141.
If the container can display an exact number of items then the calculation is simple: number-of-items * item-height - container-height.
But how is it calculated if the container displays 7.2 items?
And worse, if the container has padding top and bottom?
See this example[^]
[edit]
The reason why I want this is because I want some kind of ScrollBar. I have it kind of working, but there are differences in browsers.
In firefox, this example works: http://jsfiddle.net/woomla/ma88D/7/[^]
In chrome this example workds: http://jsfiddle.net/woomla/ma88D/8/[^]
The difference is that in the chrome version I need to add padding-top and padding-bottom to the max scroller distance. In firefox I need to add only padding-top.
modified 18-Dec-12 7:05am.
|
|
|
|
|
What about rounding your items count up from 7.2 to 8 ?
And then calculating the height based on that?
|
|
|
|