|
None - I've never seen a setup program that's not a wizard.
You don't setup an ASP.NET site typically, so why did you ask that here ?
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 in the main page and a image control. Onclicking on the image one popup window is opening where there is a calendar control. On double clicking on the date it should come in the textbox of the main page.
How can i do that.
Thanks & Regards
Mishra
|
|
|
|
|
Use javascript function:
On calender Selection changed do this
control.Value = calDate.SelectedDate.ToShortDateString();
Response.Write("<script language='javascript'>window.returnValue='" + calDate.SelectedDate.ToString("dd/MM/yyyy") + "';window.close();</script>");
|
|
|
|
|
PASS TEXT BOX ID TO POPUP WINDOW.
Function calendar(ID)<br />
{<br />
window.open("calendar.aspx?ID="+ID,......,.......,........);<br />
}
NOW IN CALENDAR.ASPX.CS PAGE,WRITE BELOVE CODE TO GET SELECTED DATE ON SELECTIONCHANGED EVENT
protected void Calendar1_SelectionChanged(object sender, EventArgs e)<br />
{<br />
<br />
Response.Write("<script language = javascript>opener.document.getElementById('"+Request.Qeurystring["ID"]+"').value='" + Calendar1.SelectedDate.ToShortDateString() + "'; self.close();</script>");<br />
}
yOU WILL GET SELECTED DATE IN TEXTBOX.
PLZ VOTE IF THIS POST WILL BE HELPFUL
bEST rEGARD
pATHAN
---------------------------------------------------
|
|
|
|
|
Thank you very much, Its working fine.
Thanks & Regards
Mishra
|
|
|
|
|
Imran Khan Pathan wrote: Response.Write("opener.document.getElementById('"+Request.Qeurystring["ID"]+"').value='" + Calendar1.SelectedDate.ToShortDateString() + "'; self.close();");
It isn't good practice to use Response.Write to inject Javascrip code into your ASP.NET web page. Use the functionality exposed by the Page.ClientScript object.
Regards
Paul
|
|
|
|
|
Anyy body tell COM type dll use in asp.net or not
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Piyush Vardhan Singh wrote: COM type dll use in asp.net or not
Yes. Sure You can use your COM component in Asp.Net.
Regards,
Abhi
|
|
|
|
|
hey friend
i am adding uccp.dll(com based library) in asp.net
when i new (Public _mUccp As New UCCPLib.UccPlatform()) this dll then error occurred Error:-
Retrieving the COM class factory for component with CLSID {E0AA501C-CAD6-4D93-A5A7-DAF1C0B30F32} failed due to the following error: 80070005.
if i take reference on run time(dynamically)
like this(Dim asas As Assembly = Assembly.LoadFile("C:\Uccp.dll"))
then error occurred
Erroe:-
The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)
can u help me on this topic please
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
DID YOU TRY IN GOOGLE.
CHECK OUT lINK1
or
lINK2
bEST rEGARD
pATHAN
-- modified at 0:23 Saturday 22nd September, 2007
---------------------------------------------------
|
|
|
|
|
links are not working
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Hi everyone,
can anyone give me a clear picture about the DataBinder.Eval(). i need to know where and how it should be used?? what it is all about???
i tried searching for it in google but couldnt find a clear article.
Kindly help me out
Thanks,
Srikanth
|
|
|
|
|
Sri_3464 wrote: can anyone give me a clear picture about the DataBinder.Eval().
we need to somehow be able to, at render time, determine the value of the data in the databound statement and decide how to alter the output based on the value. Realize that the databinding statement, DataBinder.Eval(Container.DataItem, "ColumnName"), produces a string output based on the value of the particular database column name. The databinding syntax, <%# ... %> simply emits the string produced, much like <%=...%> in classic ASP. Hence, we can create a function that accepts a string (the output of DataBinder.Eval(Container.DataItem, "ColumnName")), examines the string and alters it, if necessary, and then returns the string, which will be emitted by the <%# ... %> syntax.
SSK.
|
|
|
|
|
thanks ssk. i could get something from it. it would be more helpful if you have any link describing it well as you explained now with an example.i got an article from this site but then just want to know if you have anything.
Thanks,
Srikanth
|
|
|
|
|
|
Thank you
Thanks,
Srikanth
|
|
|
|
|
Now i can understand DataBinding.Eval() method clearly. but another doubt araises now. What is that Eval() method. i found in a code where they have used <%# Eval(string value,string value)%>
I can tell you that this method is not what we discussed earlier.
Can you explain me about this????
Thanks,
Srikanth
|
|
|
|
|
Hi everyone,
I am developing a n application with asp.net 2.0 for provide our companys' customer. in home page there is one link like click here to live chat with admin. when user click on that link at that time it open new window and start the server and then client made a connection with the server with .connect method of tcpclient class.
Its good and working file now i want to notify the server when client connect with the server, So server can accept the listner from client so, how can i come to know that some body has made a connection or connected with the server.
I want to pass message from client to server and server to client.
|
|
|
|
|
If you want to keep track of all the connected client sessions, I would use an IInstanceContextProvider to find out when a new connection is made (in PerSession mode), and then use an IInputSessionShutdown to find out when each client disconnects. And by holding onto the channel objects themselves inside your SessionData, you can give the admin app that has access to it the ability to Close() or Abort() the channels.
SSK.
|
|
|
|
|
I have a problem drag and drop with DIV in asp.net.
I have a BOX that there are div{... absolute ... } tag display my graph. when any load page, it display very well,
but when I drag and Drop to other position (Have 16 positions), my graph don't display, it only display after mouse over it.
if you have any suggest, please give.
Thanks you so much
Hepl you, Help me!
|
|
|
|
|
1 - try using an intelligent subject
2 - this question has nothing to do with ASP.NET, unless an ASP.NET control generated the graph. Either way, no-one can help you find your bug, without seeing your code. How are you implimenting drag and drop, your own code, a library, or an ASP.NET control ?
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 )
|
|
|
|
|
I have 3 web application these all are independent to each other.
1 web application have .aspx, .aspx.cs, web.config, .dll and some other
Supporting files. I want to make a common setup of all 3 web application
With this setup I want to install the 3 web application in the /inetpub/wwwroot
Folder. I don’t want to include source code in wwwroot folder. Then I want to run all
3 application separately from browser with parameters.
I tried making setup and installed in wwwroot folder but it copies all the files including
Source code in the wwwroot folder then
I run in browser :
http://localhost/demo/webform1.aspx
but it gives the 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/demo/WebForm1.aspx'. Line 1, Pos...
<%@ Page language="c#" Inherits="DeploymentExampleWebApp.WebForm1" CodeFile="WebForm1.aspx.cs" %>
-^
Then I make the CodeFile tag as src and it goes to start of class then error comes :
Server Error in '/WebForm1' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1518: Expected class, delegate, enum, interface, or struct
Source Error:
Line 10: using System.Data.OleDb;
Line 11:
Line 12: public partial class DeploymentExampleWebApp : System.Web.UI.Page
Line 13: {
Line 14: protected void Page_Load(object sender, EventArgs e)
Source File: C:\inetpub\wwwroot\demo\WebForm1.aspx.cs Line: 12
Then I added a global.asax page in folder and error comes :
Server Error in '/WebSetup1' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'DeploymentExampleWebApp.Global'.
Source Error:
Line 1: <%@ Application CodeFile="Global.asax.cs" Inherits="DeploymentExampleWebApp.Global" %>
Source File: C:\inetpub\wwwroot\WebSetup1\global.asax Line: 1
Then I make a CodeFile tag as src and it goes to same error :
Server Error in '/WebForm1' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1518: Expected class, delegate, enum, interface, or struct
Source Error:
Line 10: using System.Data.OleDb;
Line 11:
Line 12: public partial class DeploymentExampleWebApp : System.Web.UI.Page
Line 13: {
Line 14: protected void Page_Load(object sender, EventArgs e)
Source File: C:\inetpub\wwwroot\demo\WebForm1.aspx.cs Line: 12
Now please tell me how can I solve all these problems.
hi
|
|
|
|
|
Sounds like an utter disaster. Why do you want three sites to share the same URL ?
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 )
|
|
|
|
|
these are not web sites these r web application ....................................a single .aspx per application ..................and url will be diff for each application .............
like
http://localhost/demo1/demo1.aspx
http://localhost/demo2/demo2.aspx
http://localhost/demo3/demo3.aspx
hi
|
|
|
|
|
So, why are you doing it like this ? What are you writing ?
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 )
|
|
|
|