|
i want the entries for the date time format type in the followig manner
12-Oct-2007.
i was trying to change the type using the user defined functions in sql server 2000.
can somebody please help how to do it?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: i want the entries for the date time format type in the followig manner
12-Oct-2007.
I thing not possible
but you can get in asp.net in this format
bEST rEGARD
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
The drag and drop feature where we drag files from our local folders and drop them into any windows application to either launch the file, upload it etc is very common and well supported.
But I have a requirement by a client who wants this very feature in the ASP.NET web application which we have provided them with. THey want to be able to drag and drop e-mail attachments from outlook directly on to the web form which should then process this file and upload it to the web server.
Guys I really think this is too optimistic , but is there some way that this can be done..
Any comments will be much appreciated..
Pankaj Chamria,
Software Programmer.
|
|
|
|
|
Yes, it can be done, but only if the web app is running a browser plug in, i.e. if every user of the page is willing to allow a plugin to be trusted and installed. Then you can support drag and drop on that plugin's page area only.
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 )
|
|
|
|
|
Tks a lot for a quick reply! After your reply I googled for such plug-ins but I am unable to locate any. If you have any links for such plug-ins or any more info please let me know.
Pankaj Chamria,
Software Programmer.
|
|
|
|
|
I've seen it done, but I don't have any source code, sorry.
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 )
|
|
|
|
|
Hey, tks for your help neways.
Pankaj Chamria,
Software Programmer.
|
|
|
|
|
Hi Friends,
I have posted this before also.
But i didnt get any replies?
Is it really not possible to disable a asp TextBox on Click of asp Button?
I am trying Javascript.
I am able to call the script onclick of my button, but i believe i am not able to
get the TextBox control and disable it.
My script goes
function Validate()
{
document.getElementById('GVRoomType_ctl07_txtNewName').diabled=true;
}
<asp:LinkButton ID="lbtnEdit" runat="server" OnClientClick="Validate()" CausesValidation="False"
Thanks for your help..
Cheers
Menon
|
|
|
|
|
If you want a control to run javascript, why make it a server control at all ?
This will work, so long as you spell 'disabled' properly, and so long as the Id is right. I tend to put something like this in my ASPX
<script language='Javascript>
var newNameId='<%=txtNewName.ClientID %>';
</script>
Or you can emit the code in your code behind with RegisterClientScriptBlock calls.
I put the rest of my script in a .js file. That way, I know my Id is always good. And, I make sure my code is spelled right.
I use firefox and firebug to debug my javascript. Without it, you're kind of lost at sea.
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 )
|
|
|
|
|
Thank you Christian
I am using a TextBox which has Validators inside Footer Template of GridView, which i want to disable on the Click of Link Button Update.
I dont know if i can do this on client side?
And i believe because the txtNewName is inside the GridView i am not getting its ID.
When i am using the script
';
I am getting the Error txtNewName does not exists...
And Thanks for the tips. I will make sure about my spellings and using Firefox to debug my Javascript.
Thanks
Cheers
Menon
|
|
|
|
|
mady1380 wrote: And i believe because the txtNewName is inside the GridView i am not getting its ID.
OK, yes, that won't work. You'd have to do it within an event of the gridview control, the event that create the row with the textbox.
mady1380 wrote: I am using a TextBox which has Validators inside Footer Template of GridView, which i want to disable on the Click of Link Button Update.
Ah - you can write a custom validator which fires your other validators manually. Then, you can put the validator you want to control in a different group, and only fire it under certain conditions. This involves digging around in the .NET generated javascript, but it's quite doable.
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 )
|
|
|
|
|
Thank you Christian
"you can write a custom validator which fires your other validators manually. Then, you can put the validator you want to control in a different group, and only fire it under certain conditions. This involves digging around in the .NET generated javascript, but it's quite doable."
I believe i will try Digging around for the Custom Validations
Thanks
Cheers
Menon
|
|
|
|
|
|
Thank you Abhijit
But its not working for me.
I just want to remind you again, that the TextBox is inside the Footer Template of my GridView.
Thanks
Cheers
Menon
|
|
|
|
|
i want a refresh button on my page.how can i code for this button?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
|
But there is a difference between a Postback and a first call to a page.
And a refresh is the latter for me, though it's hard to say what a click on the browser refresh will do because it will send the last request again (postback or not).
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
A refresh will always refresh the last call made, otherwise how can it refresh page state. The way around this is to never show a postback, for a postback to redirect to the same page with URL parameters the restore state. Then a refresh will go to this page, and the page can be written so this performs no actions, it just shows the same state.
The other option is to have a button that links back to the page, which will not postback, but will lose any state derived from postbacks that have occurred.
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 )
|
|
|
|
|
In the button click event of the Refresh button place the following code
protected void Button1_Click(object sender, EventArgs e)
{
Page.Response.Redirect(Page.Request.Url.ToString(), true);
}
Koushik
|
|
|
|
|
|
This is kind of useless. The page has already done a refresh, on the button, and it would just finish it's lifecycle without the redirect.
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 )
|
|
|
|
|
The page has done the refresh part but may be there are somethings to be done when Page.IsPostBack is false.
Koushik
|
|
|
|
|
hi all,,
i created .mdf file under my App_Data file if i am connecting to that data base..
i am getting the following error
"Failed to generate a user instance of SQL Server.
Only an integrated connection can generate a user instance.
The connection will be closed"
Can any body help me to fix this...........
|
|
|
|
|
hi!
asp.net Datagrid can display in row format?
Generally datagrid is displayed in column format
eg: A|B|C|D
but i want in A
--
B
--
C
it is very urgent,plz let me know the answer as soon as possible
thnx,
nimmi
|
|
|
|
|
Get it
Link1
Link2
Link3
bEST rEGARD
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|