|
Thanks it's working in IE,,not in mozilla...any idea about that....
alex
|
|
|
|
|
No Idea
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Hi,
I'm writing some excel data to dataset(asp.net 1.1 with c#). In one of the columns of the excel has both numeric and alphabetic characters. While reading it is reading only numeric ones, whereas alphabetic are going as null. So I modified the connection string as follows:
strConnectionString="Provider=Microsoft.Jet.OleDB.4.0;Data Source=" +strFolder+strFileName+";Extended Properties=Excel 8.0;HDR=NO;IMEX=1";
When I done this, I'm getting the error 'Couldn't find installable ISAM Driver'. I have made necessary changes in registry also. I have googled about this error and got some info from Microsoft site. But even after doing all these, issue still persists.
(i) Any idea how to resolve this issue?
(ii) Or is there any other way I can read both the numeric and alphabet characters to the dataset?
Any help in this regard would be great.
Thanks
Meeram
Meeram395
|
|
|
|
|
I am displaying some information using a datagrid, one of the columns is a date column.
The date displays but it also displays the time like this 15/11/2007 00:00:00.
Is there anyway to get rid of the time protion and just disply the date?
Thanks,
macca
|
|
|
|
|
If it's a BoundColumn then you can set the DataFormatString property of the column to {0:dd.MM.yyyy}
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
Try following code
Text='<%# Eval("DateField","{0:dd:MM:yyyy}")%>'
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanks guys
I got this sorted, had to set HTMLEncode to false
macca
|
|
|
|
|
Hi All.
I am doing Infor Show about Security.
I using datagrid to show information Security of companys.
My datagrid must auto update new data from database after 10 secords and show new data.
I have one solution is using tag <meta>.But it is not good because my datagrid using tag <maquee> to move scroll data in datagrid. finish I using ajax pro to implement.
But I meet problem.
1. I can't binding new data to grid in code because
when My code receive new dataTable from database then immediate return this data to Request from client. So, it can implement command binding data grid.
Now I need bind new data in to datagid . I hope everybody help me.
My code in server side:
<br />
1.regist:<br />
private void Page_Load(object sender, System.EventArgs e)<br />
{ AjaxPro.Utility.RegisterTypeForAjax(typeof(InfoShowTV.ShowHOSE_HASTC));<br />
} <br />
<br />
2.method:<br />
[AjaxPro.AjaxMethod]<br />
public void LoadDataToGridViewHASTC()<br />
{<br />
ClsHOSE_HASTC ObjectConnection = new ClsHOSE_HASTC();<br />
DataTable dtHASTC = ObjectConnection.getViewHASTC(); GrdHASTC.DataSource = dtHASTC; <br />
GrdHASTC.DataBind(); <br />
}<br />
In this code: it can't run command : GrdHASTC.DataBind()
it only run to command :DataTable dtHASTC = bjectConnection.getViewHASTC()
Call in Client:
<br />
function Test1(){ <br />
InfoShowTV.ShowHOSE_HASTC.LoadDataToGridViewHASTC(); <br />
} <br />
window.setInterval(Test1,10000);<br />
Hope you help me.
I hope you tell any solution for problem.
thanks you very much.
|
|
|
|
|
hi all,
my problem is the following:
i have a custom webcontrol in a file named PK_LanguagePicker.ascx, that is in a custom created namespace named HMC.CustomControls.
Now in my masterpage, in code behind, i can reach the control through the namespace fine.
But when i try on my Default.aspx page, in code behind, i cannot see the namespace and control
how can that be?
hope that you can help
/Christian
|
|
|
|
|
Hi everyone,
Im going to do an application where i store some video files in a folder.And in my form i list out them.Need to play selected video in the browser..
Anyone has got idea on how to play a videofile in browser?
Thanks in advance... (
|
|
|
|
|
The easiest way is that upload your file to some videos sites and get the embedded code and use it in your webpage.. (Like posting the Youtube video on your blog)
If you don't want to upload your video file to those video sites, you can probably use Windows Media service or etc.. but if your site is published on ASP.NET host, you should contact with your hosting service provider for asking whether they support the Media Streaming Service or not. AFAIK, there are some hosting companies that doesn't support the Media Streaming Service to the Shared Host customers... If your hosting support the media streaming then they will have the documentation about how to upload the video files and how to display in your website... Actually, we can't give you that much advices since the way of doing this might be differ from one hosting to another for the shared host users.
If you wanna test the Video steaming locally, you can google about this.. asp.net video streaming
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."
|
|
|
|
|
Thanks a lot for ur suggestions...
|
|
|
|
|
Hi All...
I am using webparts and i have defined a verb and assigned it a client side event as its handler.
Now i want to close this webpart using its id at clientside. I am giving the script im using to set its display to none. But it is not sufficient. I want to close it.
function ClientClose(webPartID)
{
alert( "You clicked the following web part: " + webPartID + "." ) ;
document.getElementById(webPartID).style.display="none";
}
Bye
|
|
|
|
|
Hi Sam,
What is webPartID?(is it the ClientID of your web part?)
Is it showing any javascript error?
Sherin Iranimose
|
|
|
|
|
Yes im getting the client id of the webpart itself.
and its style is also set as display =none
but how can i close it so it may be available in design view
Cutting short... Is there a way to implement close and minimize verb using javascript on client side.
For instance you can see...
www.smartjungle.com
Please answer...
-- modified at 7:29 Thursday 15th November, 2007
Bye
|
|
|
|
|
I want to convert video files(.wmv and .avi) uploaded on my site to get converted to .flv. Searching the web I found ffmpeg(http://ffmpeg.mplayerhq.hu/) is a command line software which does the required conversion. But i don't know if it can be used with .NET. If it can be used then how..? If not then what is the other solution...?Can anyone help..?
|
|
|
|
|
You can start any process from .NET with process.start. ASP.NET obviously has nothing to do with the process of the actuial conversion
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks for the reply Christian,
I got it .... to do the same i have found an executable called ffmpeg.exe. can you tell me exactly what parameters do i need to pass and how do i use it in my asp .net project using c# such that the generated .flv video is of same dimension and quality as the original avi video. Following may be useful to you.
download ffmpeg.exe (http://ffdshow.faireal.net/mirror/ffmpeg/)
FFmpeg Documentation (http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html)
download ffmpeg.c (http://svn.mplayerhq.hu/ffmpeg/trunk/)
|
|
|
|
|
Hey its working for me. There are some sites e.g. http://www.mediasoftpro.com/ where they give already built dll which we can easily implement in our project. All such dlls are actually wrapper to the free tool ffmpeg.exe which can convert videos and audios from one format to another. So i thought to use the tool itself instead of the wrapper dll. I have tried very simple example n its working for me so thought to share it it with all.
Download ffmpeg.exe from (http://ffdshow.faireal.net/mirror/ffmpeg/). you will get a dll along with it (pthreadGC2.dll) keep both the exe and this dll together.
FFmpeg Documentation (http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html) will be required for the syntax.
If you run it via command prompt then this is the syntax
ffmpeg -i inputfilename outputfilename
If it is to be executed via .net then follow what Christianhad suggested in the post before. Process.Start can be used to execute an executable.Do remember to give write permission to the asp worker process on the folder where the resultant flv file will be saved. If you dont then the program will run without any error or warning but output file will not be produced.
One more thing it do not convert .wmv files to .flv . Is there any way out to it........?
|
|
|
|
|
In the database , there are two tables.the second one has id of the first one. i mean there is primary-foreign key relationship.
Now i am comming back to the point , in the itemtemplate , the record are from first table and in the edit item template , there is a gridview, which contains the record from second table(second table contains the foreign key field), so there in the edit item template , how i should display the pertaiing records from second table.
records are currently appearing in item template.problem is in the edit item template.
Please help.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Can u be a bit more specific...
|
|
|
|
|
i have to put the grid view in the edit item template of the the grid view , the inner gridview will have thedata from different table and outer gridview will have data from another table.how to implement this thing. cueerntly the item template is working .
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
What you're looking for is called a master detail view. I would usually use nested repeaters to create such a view, because of the control you get when using them. However, there is a bunch of google[^] hits on doing it in a gridview, I'm not sure if they will help tho, because you want the edit template to show the detail view ? You may need to roll your own solution with a repeater, I'm not sure.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
this is the sort of thing i wanted to do
but i want the show button in the gridview which will show the pertaining records.it should not show the pertaining records directly
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: this is the sort of thing i wanted to do
wow,,,, what a link...
Hello miss.. please think twice before updating anything here
U have put link but Miss yr link is of yr localhost so how anyone else come to know that wt u want ?
Thanks,
Sun Rays
Rate this post if you like answer.
|
|
|
|