|
i guess you gotta have encoders for converting music format one to another.
|
|
|
|
|
Dunno about 'any' file format, but I think that the WMP control can be used to convert to WMA, and mp3 if a codec is installed.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I have a textbox with autopostback property set to true and an event: OnTextChanged , now when the user hits the tab key, I want some information to be displayed in another textbox in my web form...I succeeded in doing that using the enter key only...but the tab key never postbacks to the server...how can I do that using the tab key??
|
|
|
|
|
using a javascript function u can convert the tab key preess to enter key press event...
in the form tag add
onkeydown="TabToenter()"
The Javscript function is
function TabToenter()
{
var intkey=window.event.keyCode;
if(intkey==9)
{
window.event.keyCode = 13;
}
}
i hope this will work....
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
thnx a lot, it worked ))))
|
|
|
|
|
nice solution ...well will it work for other controls also????
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
i m working on widows application..for connectivity to sql i want to give datasource in app config file..and in every page i wan to call that string
but i dont understand how to do that
can anyone help me??
$h@ma!|@
|
|
|
|
|
hi,
add a appconfig file to your application... and
add a key to that appconfig file..
eg:<
<configuration>
<appsettings>
<add key="DATASOURCE" value="MYDATASOURCE">
>
and in cs/vb file
<br />
string keyval = ConfigurationSettings.AppSettings["DATASOURCE"].ToString();<br />
<br />
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
thx but it is giving error i.e;
The name 'ConfigurationSettings' does not exist in the current context
$h@ma!|@
|
|
|
|
|
and i have written in app file
<configuration>
<rescue>
<connection>
<odbcname>rescue15
is it ok???
$h@ma!|@
|
|
|
|
|
use this name space
using System.Configuration;
in ur .cs file
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Hi,
I have a question.
I have a comobox, i've bind data something like this
oleDbDataAdapter1.Fill(dataSet11);
DropDownList1.DataSource = dataSet11.Tables[0].DefaultView;
DropDownList1.DataTextField = dataSet11.tbacdes.ac_headColumn.ToString(); //Display AC Head
DropDownList1.DataValueField = dataSet11.tbacdes.ac_idColumn.ToString(); // Display AC Id
DropDownList1.DataBind();
first of all is correct. Now I want to to show Account Header in comobox and when user select any value than selectindex pass header id this my question, please help me out init.
Example
=======
[Student Fee] Display value and in backend of this entry in comobox header id is 2
I'm using asp.net 1.1, C#.Net.
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
i think this is u r trying to ask ..from drpdwn list
drpdwn1.selecteditem.value is AC id
and drpdwn1.selecteditem.text is AC header
plz,dont put "URGENT" in posting queries..
-- modified at 5:29 Saturday 7th July, 2007
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Don't cross post. You asked this same question in the C# forum.
"That's no moon, it's a space station." - Obi-wan Kenobi
|
|
|
|
|
I have developed a project in asp.net for saling products of a company in different locations in a city.They use barcode tag on the product to retrive product information.
So how can i trap that barcode and display the result on my application.
Is it possible or is there any altrnative?
Please Suggest
Thanks
DPM
|
|
|
|
|
Ask them how they generate barcode for their products. Their program will be using a logic to decode that? Why don't use same in your APP.
|
|
|
|
|
Using my query i try to bind the fields in my datagrid boundcolumn...,
Now in that query i given two fields name as same, like this:
"MHD.AppWHours as AppHours,MHD.AppSHours as AppHours"
In my grid i given one of the bound column name as "AppHours"...,
If i bind the grid it's binding the first AppHours only...,
In that first apphours not have any value...,
Then it want to bind that bound column cell, second apphours value...,
How to do that...,
Any possible way is there plz tell me...,
Regards,
Magi
|
|
|
|
|
I think if two column name's are same, datagrdid will take only the first. An alternative solution would be keeping one function that checks your first value and return appropriate value. Then call that function like this
<%# YourFunctionName(BoundValue,SecondBoundValue %>
in codebehind page create your function like
public string YourFunctionName(Param1,Param2)
{
if ( string.compare(Param1,"") == 0 )
return Param2
else
return Param1
}
|
|
|
|
|
Hi friends
I need ValidationExpression string for time format like as "11:11:11 AM" or PM for valid time.
Thanks in advance
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi
Try this regular expression
\b[0-9]{2}:[0-9]{2}:[0-9]{2}\s(?:AM|PM)\b
|
|
|
|
|
Hi
It should be invalid for 13:85:85 AM
THanks
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Imran Khan Pathan wrote: It should be invalid for 13:85:85 AM
Ys, I know it won't validate this. But you can split the match using ":" in your application. Then check it is in between the valid range.
|
|
|
|
|
Finally i got solution
This is valid validationExpression string
"^([1-9]|1[0-2]|0[1-9]){1}(:[0-5][0-9]\s[aApP][mM]){1}$"
Best regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi, I have used the following code to export the data from datagrid (asp.net 2.0, vbscript) to an excel sheet. But i am getting the error, Control 'dgresult_ctl03_ctl00' of type 'Button' must be placed inside a form tag with runat=server.
I have set the form tag attribute and button attribute to runat=server
<asp:button id="button1" text="excel ?" runat="server/">
But no it is of no help. Any suggestion? Thanks for any help.
Private Sub RenderGrid()
Response.ContentType = "application/vnd.ms-excel"
' Remove the charset from the Content-Type header.
Response.Charset = ""
' Turn off the view state.
Me.EnableViewState = False
Dim tw As New System.IO.StringWriter
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
' Get the HTML for the control.
dgresult.RenderControl(hw)
' Write the HTML back to the browser.
Response.Write(tw.ToString())
' End the response.
Response.End()
End Sub
Protected Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
RenderGrid()
End Sub
|
|
|
|
|
All server side controls should be placed and rendered inside the form tag. In you case you miss that .You are rendering the control and sending the HTML to page using Response.Write. This will place controls HTML code before the <HTML > tag starts. That makes this error. Solution could be putting a literal control on the place where you want to show this rendered control. Then replace Response.Write with literalName.Text = YourRenderedHTML .
Hope this helps
|
|
|
|