|
Hey, its not a big deal to convert this simple c# code to vb.net. Although, you can google for c# to vb.net converters and get the code converted.
You can mention your dekstop application path whatever it is.
nabeelkhan wrote: would you like u tell me that running .exe from this way will not harmfull from the application.
thnks
I think you are a new player thats why asking such questions.
Regards,
Ketan.
|
|
|
|
|
thnks ketan,
i will try and let u know
BestRegards
nab
|
|
|
|
|
I'm not going to answer your question, but maybe you will find my post usefull anyway
I realy wonder, why you want to execute desktop application from web application (that is quite weird) to convert dates from one calender to another, if .NET can do it for you as well.
Check good example here on codeproject:
http://www.codeproject.com/cs/samples/hijrigregorianclass.asp
I hope it helps, it is much better solution for your problem, I think.
Pilo
|
|
|
|
|
|
Hi,
Is it possible to auto-deploy webpages to multiple sites/servers at a time using visual studio .Net 2003?
Or is there any another tool using which we can create a setup which allows to deploy web pages to multiple sites?
Anyone having any idea on it. Please update.
HV
|
|
|
|
|
Although InstallShield is much better
I have used to setup and deplay to delpoy multiple suites in one shot
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
hello
i have 10 rows in a listbox
i selected 2 rows
how to get the selected values from a checked listbox
code will be helpful
Thanks
|
|
|
|
|
You can iterate through all the items in the listbox and if the item is selected the get the values of them.
Best Regards,
Apurva Kaushal
|
|
|
|
|
e.g.
foreach (ListItem anItem in myListBox.Items)
{
if (anItem.Selected)
{
}
}
-- modified at 3:57 Tuesday 25th July, 2006
|
|
|
|
|
Hi, I really need help on this one.
I have a very simple website setup going. 1 Master page, 1 default page (auto gen code with 1 label welcoming the user.) and 2 other pages.
When I run from .Net all is well, but when I try to hit the published page (or even just the default page in the dev directory) with IE I get this error:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://localhost/annas/intiendo%20heirachy%20stuff...
<%@ Page MasterPageFile="~/IntiendoTrafficIncident.master" Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.c...
I don't have the faintest idea whats going on, at least nobody else in the office does either
This one is giving me a headache, since it happens on auto gen code, with or without the use of a css...(which I initially thought was the prob.) Is there some setting I need to change when using master pages? (first time I'm using them as well.)
Thanks for your time.
|
|
|
|
|
try to set the response type to plain text
Response.ContentType = "text/plain";
Nav.
|
|
|
|
|
Where should I put that? I tried the Page load event of the master page and the default page with no success.
I started a new, default, empty project with 1 master page and 1 default page and nothing else. It works in the IDE but has the same problems.
I think I may be "publishing" it incorrectly. How can I be sure that it is in the correct folders, and what settings should I change in IIS?
Thanks for the suggestion though.
|
|
|
|
|
is ur ASP.NET properly registered with IIS?
Try running this on ur machine to re-register it
aspnet_regiis -u
aspnet_regiis -i
then create another app and try again
Nav.
|
|
|
|
|
Look at the monkey!
Got it to work, and it was my own stupidity... I'll state everything I did here, just incase someone else comes across the same problem...
I copied the folder containing my site into the wwwroot folder.
Then in IIS I (and here is the kicker, it would seem) opened the properties page of the directory I just copied in and created it as an application...
Yes, there is a fair amount of egg on my face at the moment and I'm sorry to waste you guys time with my stupidity...
But thanks for all the suggestions, I'll surely keep them in mind for future bug hunting...
|
|
|
|
|
Dear Friends,
I want to set Dataset in runtime to formview, that time formview should generate controls etc....
Please help me....
Haridas.R
harisofttech@gmail.com
harisofttech@hotmail.com (online)
harizeenet@yahoo.co.in(online)
"Achievement is not a destination, its a journey "
|
|
|
|
|
You simply assign the dataset to the DataSource property of the FormView control, if the dataset has multiple tables, you can determine which table is bound to the control in the DataMember property, you then call the DataBind method.
|
|
|
|
|
i did like this way but i'm not getting.
Haridas.R
harisofttech@gmail.com
harisofttech@hotmail.com (online)
harizeenet@yahoo.co.in(online)
"Achievement is not a destination, its a journey "
|
|
|
|
|
What aren't you getting? The UI of the FormView control? How do you define the FormView control? Are you sure that the dataset has data in there?
|
|
|
|
|
I thought MSDN says that a formview control is a by-definition-data-control and not an auto-generate-columns control. If you haven't created Template fields for your controls, you might wanna do that first and leave the DataSource property until runtime where I suppose you can find the control and use it.
If you want an auto-generated-columns control maybe you should try out the DetailsView
Live in fragments no longer. Only connect.
|
|
|
|
|
Hi Everybody,
My PC have following things installed on it.
-.NET framework 1.1
- IIS 5.1
-.Net Visual studio 2003.
When I crate a new project of type 'ASP.NET Web Application', I receive
following error.
"The web server reported the following error when attemting to create or open the web project located at the following URL ://localhost/webapplication1; HTTP/1.1 500 Internal Server Error".
After this no prject is created.
I checked if IIS is working or not by manually creating a directory in wwwroot folder, placing a single index.htm file inside it and then accessing that from web-browser by using URL as "http://localhost/DirectoryName". It is working fine.
Please see if anybody can help me out in this problem.
Regards,
Amol
-- modified at 1:40 Tuesday 25th July, 2006
|
|
|
|
|
Meybe Use Youre System at
different network settings localhost
solution is to reset DHCP addresses by ipconfig /release
and ipconfig /renew
MHF
|
|
|
|
|
check out in iis once
run-->inetmgr-->website(rightclick)-->properties-->home directory-->configuration---> check for.aspx
|
|
|
|
|
|
Hi folks..
This is selvaraj S.Kaliyappan.We are developing online examination application using asp.net 1.0 with sqlserver2000. Our requirement is all questions(50 to 100) should displayed in random order. All question should displyed in lable control and options should displayed in radio buttons. I wrote sample code in my application(I have disply records in datagrid).It's taking randomize records but duplicate question no is displyed.. If any one know about my requirement please suggest/advice me,As soon as possible.
Sample Code
-----------
Private Sub Bindgrid()
Try
mobjDT = New DataTable
mobjDT.Rows.Clear()
mobjDT = mobjDB.ExecuteSP("SPLOADQUESTION")
Dim lint As Integer
Dim randNum As New Random
For lint = 0 To mobjDT.Rows.Count - 1
mobjDT.Rows(lint)("QuestionNo") = randNum.Next(7)
Next
Dim mydataview As DataView = mobjDT.DefaultView
mydataview.Sort = "QuestionNo"
dgdQuestion.DataSource = mydataview
dgdQuestion.DataBind()
Catch ex As Exception
Response.Write(ex.Message)
End Try
End Sub
Thanks in advance
Selvaraj S.Kaliyappan.
-- modified at 1:11 Tuesday 25th July, 2006
|
|
|
|
|
hi
I do the Same project few day ago
You must Chose Random Number With Random Class(In The System Name Space) and then chose the index of you're Record at the database
MHF
MHF
|
|
|
|