|
Check out this JQuery Plugin ('Uploadify'): http://www.uploadify.com/demos/[^]
It still needs to you to select all files in the folder and may not be able to recursively select folders in it.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Hi,
I am implementing JQUERY Datepicker with JQuery Mask in one user control also i have custom js page,in that page only i am calling .mask function. It is working fine but when i put this user control inside update panel, when page loads fist time i am able to see my mask but when i am trying to delete the date by that time mask also deleting. After that i put my code inside function pageLoad(sender, args)
but still i am facing same problem.
If you any one is having solution for this please let me know.
|
|
|
|
|
Good day
I am using Visual Web Developer 2010 Express to develop a website.
I am using a FormView to edit and display records. I am trying to format the layout of the FormView so that I can arrange my data in the FormView in columns.
Something like:
Hosp Number: 100000000
Last name: Mouse First name: Mickey
DOB: 01/01/1923 Admission: 06/06/2011
I can do it quite easily using Tables, but I see that most people suggest moving away from using tables to do layout and rather use css based tableless design.
I am a bit stuck now. Have done some searching, but even Microsoft’s examples of FormViews use tables.
Does anyone have an example for me or a URL where I can go and look?
Thank you for the help.
Kobus
|
|
|
|
|
|
Thank you
This looks like it can help me.
Kobus
|
|
|
|
|
hi
i have a xml file and i would like to read and write data in XML file.i will use it in my news scroll.
thanks
|
|
|
|
|
|
Hi,
How to open pdf file in the new tab or new browser in asp.net. Right now I can open the pdf file in another window but I want to open it in browser or in new tab.
The code that works to open pdf in new window is shown but I want it in new browser..
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=a.pdf");
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = "application/pdf";
StringWriter stringwrite = new StringWriter();
HtmlTextWriter htmlwrite = new HtmlTextWriter(stringwrite);
repeater1.RenderControl(htmlwrite);
StringReader sr = new StringReader(stringwrite.ToString());
Document pdfDoc = new Document(PageSize.A4, 50f, 50f, 40f, 40f);
PdfWriter writer = PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
pdfDoc.Open();
htmlparser.Parse(sr);
pdfDoc.NewPage();
pdfDoc.Close();
any ideas?
suchita
|
|
|
|
|
As per my understanding, your page is may be open on any link so set link attribute target=_blank .
OR please explain, how you are opening page?
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
Hi,
Yah its in different window like when we open the pdf file from the desktop. But is there any way i can have it in the new tab of the same browser or in different browser ?
suchita
|
|
|
|
|
I didn't got your question, Are you opening browser in Windows desktop application on Browser Control?
OR
Are you using Web application then you are trying to open windows/Tab?
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
i am using the web application. When i open the pdf file, it should either open to the next tab or new browser. Right now it is opening to the new window like the one when we open the regular pdf file from our desktop..
suchita
|
|
|
|
|
Can you Post here piece of code though opening PDF file?
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
This is the overall code for the pdf file.
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=a.pdf");
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = "application/pdf";
StringWriter stringwrite = new StringWriter();
HtmlTextWriter htmlwrite = new HtmlTextWriter(stringwrite);
repeater1.RenderControl(htmlwrite);
StringReader sr = new StringReader(stringwrite.ToString());
Document pdfDoc = new Document(PageSize.A4, 50f, 50f, 40f, 40f);
PdfWriter writer = PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
pdfDoc.Open();
htmlparser.Parse(sr);
pdfDoc.NewPage();
pdfDoc.Close();
suchita
|
|
|
|
|
By default the links and responses would stream in the same window. You can specify a target for the link but to respect the target as a new tab/window is up to the web browser, IMHO.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
I am pulling data out of a SQL database into a GridView. The column names are dynamic so I never know what they will be (except the first column).
I would like to format the data (they are floating point numbers.)
I tried to use the RowDataBound event but it doesn't seem to do anything. Is there a way to format these numbers in a {F2} format? (I know that this code doesn't do it but I have tried a ton of things and none of them worked.)
This seems like an extremely clunky way to format the data. (We cannot format the data in SQL for other reasons.)
Thx
Mark Jackson
<code>
protected void gvFcstDmd_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
int i = 0;
DataRowView drv = e.Row.DataItem as DataRowView;
for (i = 1; i < drv.Row.ItemArray.Count(); i++) // start at one to not format the first column
{
drv[i] = Convert.ToString((Decimal)drv.Row.ItemArray[i]);
}
}
}
</code>
|
|
|
|
|
|
I looked at this before. We don't know the column names (they are dates) so I cannot access the columns using Cell["Label"]. I tried to use an index to loop thru the cells but that causes the thing to eliminate all but the first row.
I must say Microsoft's documentation for this stuff is appalling.
Thx
Mark Jackson
<code>
for (i = 1; i < e.Row.Cells.Count; i++)
{
e.Row.Cells[i].Text = Convert.ToDouble(e.Row.Cells[i]).ToString("F2");
}
</code>
|
|
|
|
|
Got it to work. Man this seems clunky tho
<pre>
protected void gvFcstDmd_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
int i;
TableCell c;
for (i = 1; i < e.Row.Cells.Count; i++)
{
c = e.Row.Cells[i];
c.HorizontalAlign = HorizontalAlign.Right;
Double d = Double.Parse(c.Text) * 1000;
c.Text = String.Format("{0,6:N0}",d);
}
}
}
</pre>
|
|
|
|
|
hi does anyone know the syntex of getting the list of files from a specific folder
when using asp.net 2005 c#?
|
|
|
|
|
Directory.GetFiles("*.*");
Help people,so poeple can help you.
|
|
|
|
|
You can use string array to retrieve the list of files from a perticular folder as :
String[] fileList=System.IO.Directory.GetFiles(@"C:\XYZ\");
|
|
|
|
|
hi i am currently using c# asp.net 2005.
i have a panel which is being populated by a unknown number of fileupload control.
so far it works fine, as i use a dropdownlist to populate the amount of fileupload control for the panel,
however when i click on the button to access the panel's control the panel always reset.
i read somewhere that this is cause by the post back of the button hence the controls in the button act as if they never existed.
does anyone have any solution for this they can recommend for this please?
|
|
|
|
|
Hello,
I recommand to use the Callback and not postback.
For more infotmations you can check this topic : Callback WebControls[^]
I hope that will help you.
Good luck.
|
|
|
|
|
Hi Experts,
The below given is the Regex pattern for validating e-mail. I have to do it in 2 ways one is through UI and another one is through excel import. In UI i am using the same Regex pattern as given below using regularexpressionvalidator. It is correctly validation "sam@ple@code.com" and "'sam@ple@code.com'" - @@ and '' are correctly restricted in UI but when i use the same in code it is not validationg the given 2 email ids and allowing me to insert. how to avoid double @ and single quoted. i want the Regex pattern. can anyone help me in this?
UI- working fine
===
ValidationExpression="\w+([-+.']\w+([-]*))*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
Inside code - not working for double @ and '
============
Regex patternMatch = new Regex("\\w+([-+.']\\w+([-]*))*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*");//("(\\d|-| | )*");
|
|
|
|