|
Hello,
I have issues in Vista using IE 7 with telerik rad combobox, it appears to be reloading entire page and collapsing everything. i have placed it in rad ajax panel
thanks
-- modified at 3:48 Monday 27th August, 2007
|
|
|
|
|
Hi.
In mygridview i m displaying one column called Creative AS link
This column contain different file path when i click on the link it should open that file store in the client machine but it's not opening only excel file and giving this error "Files/Copy%20of%20name516.xls"
Thanks
|
|
|
|
|
try to use
HttpUtility.HtmlEncode(path);
HttpUtility.HtmlDecode(path);
... if no result please write few line of code
|
|
|
|
|
I had given
gridview1.datasource = dataset;
gridview1.databind();
and every thing is working well...
Now i want to implement soring event on the same gridview.... Can u help... me....
|
|
|
|
|
Lets do One Thing
create A DataView and sort dataview.sort="YourColumnName"
and bind your grid that particular dataview
Hope that'll helps u...
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Thank u .... It worked.......
|
|
|
|
|
Most Welcome
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Get it Sorting
best regard
pathan
---------------------------------------------------
|
|
|
|
|
Hello Everyone,
Can anybody let me know how to play MP in ASP.NET(1.1) web application
Thnx
|
|
|
|
|
What about this?
MP3 Player Server Control[^]
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
hi ,This is sandipan.
i am looking for a help for video to thumbnail creation.can anybody help me..thanks in advance..
|
|
|
|
|
Hi all,
Is there a way that I can assign roles using windows authentication? I'm busy with an intranet site so I'm using windows authentication for the users to access the site, but I want to assign roles to certain users because they must have access to pages that other users can't view.
Thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
You can create the user group in Active Directory. then, add the users to a particular group. then, you can check the current user under which group..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I have no idea what you mean but at least it gives me a direction to look in, thanks
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
I'm picking up one major problem with this, it will change the user groups on the entire network and that's not what I want to do, I just want to allow specific users access to certain pages regardless of their groups on the network, that mustn't be changed.
Thanks for the suggestion
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|
|
|
I Dont know but may be this will work......
http://support.microsoft.com/kb/875447
If work let me... Know......
|
|
|
|
|
Hi Mihir Thanks for reply. i have gone through the link you have given.
this is using reporting services to render any report in any file format. my scenario is totally different as i am having one gridview and i want to display (open or save)the gridview content in pdf file.
here i am not saving my gridview data into database in any format(not even report). so i can't use this as it will work only if we are saving our data or have any data in database as report(using reporting services), then we can use reporting service to display it in any format.
please let me know if i am wrong.
People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily
Akhilesh Singh
|
|
|
|
|
Ok...
Then will it work if the output file is in excel format .... if yes.... try following code...
using System.Data.SqlClient;
using System.IO;
try
{
string strLine = "";
object filePath;
object fileName;
object filePDF;
FileStream objFileStream;
StreamWriter objStreamWriter;
//Create a pseudo-random file name.
filePDF = "Test.xls";
//Set a virtual folder to save the file.
//Make sure that you change the application name to match your folder.
filePath = HttpContext.Current.Server.MapPath("\\Mihir\\Gridview20Excel\\Output");
fileName = filePath + "\\" + filePDF;
//Use FileStream to create the .xls file.
objFileStream = new FileStream(fileName.ToString(), FileMode.OpenOrCreate, FileAccess.Write);
objStreamWriter = new StreamWriter(objFileStream);
//Take the string for data.
strLine = "";
//Enumerate the data that is used to populate the file.
for (int i = 0; i < GridView1.Rows.Count; i++)
{
for (int j = 0; j < GridView1.Rows[i].Cells.Count; j++)
{
strLine = strLine + GridView1.Rows[i].Cells[j].Text + "\t"; // +Strings.Chr(9);
//objStreamWriter
}
objStreamWriter.WriteLine(strLine);
strLine = "";
}
//Clean up.
objStreamWriter.Close();
objFileStream.Close();
}
catch (Exception)
{
throw;
}
|
|
|
|
|
Hi Mihir. thanks for reply.
i tried that one, it is working fine for excel but for pdf no luck, it's saving file, but while opening it's giving error saying either file is currupted or not decoded properly.
please let me know if it is working for you for pdf files.
People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily
Akhilesh Singh
|
|
|
|
|
hi... akhilesh....
I had tried it for PDF ... & Got same ... Error.... so sorry for that.....
in that case may be some toolkit or Lib. will... work... but u r not ready to use them ... so try .. some other thing and if got it share it with me.....
Best of Luck....
|
|
|
|
|
Thnaks and sure , if i get some solution or will able to use link send by you then will surely reply to this message.
bye...
People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily
Akhilesh Singh
|
|
|
|
|
hi ...
my problem is when write follow code in text of a text box
<!--
....
and click a button, fire this exception :
"A potentially dangerous Request.Form value was detected from the client"
how can correct it ?
tanks
|
|
|
|
|
You cann't enter HTML code or any script in the TextBox. Everytime when a page is submitted, ASP.NET validates it and it doesn't allows script for security purpose. still if you to do it then you can by setting page validation to false..
Regards John
|
|
|
|
|
tanks john
yes. as you sad, i must set the validation page property to false. i find it in
http://www.cryer.co.uk/brian/mswinswdev/ms_vbnet_server_error_potentially_dangerous.htm
|
|
|
|