|
Can you post the code how you are handling that file ... i think it is C sharp code
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
Thats nice what you did ? What was causing to error ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
When running my Web project I have a busy browser window for a full minute
and then receive an error reporting dialog that says, "WebDev.WebServer.exe
has encountered a problem and needs to close. We are sorry for the
inconvenience." My default.aspx page never loads. This just started
happening yesterday while I was working on my Web project. Before that, it
run okay.When i run this project on some one else computer it runs correctly with out error. I also refresh my Window nd VS.
how can i fix that??
thank you...
|
|
|
|
|
I really don't know but try to reset IIS
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Dear I reset IIS again nd again but same problem .....
As there anyone who can help me. Pls help me.
|
|
|
|
|
hi friends
i have class libray named as class1.cs
how can i create popup window in class and call in aspx page.
can u help me.
Regards
saravanan
|
|
|
|
|
When do you want to call that pop window thats important ? When you have to call that window
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi friends,
I have one query, in my project when i upload one image to some folder that time one exe will be automatically create. is it possible?
Praveen Kumar.R
|
|
|
|
|
Where can i get the the free edition of windows server i know there a two types one is free and the other is not
|
|
|
|
|
I have a dropdown list control on an aspx page that I need to pass the value of to an ascx page that I reference by using get/set. My problem however is after after I "set" the value, it seems to reset itself back to zero when I try to access it again.
Here's my code. I'm using 2 pages (index.aspx & testgridcontrol.ascx:
index.aspx:
-----------------------------------------------------------------------------
protected void Page_Load(object sender, EventArgs e)
{
TestGridControl tgc = new TestGridControl();
tgc.physicianID = Convert.ToInt16(dropDownListControl.SelectedItem.Value);
}
Here's my testgridcontrol.ascx page:
public partial class TestGridControl : System.Web.UI.UserControl
{
private Int16 _physicianID;
protected override void OnLoad(EventArgs e)
{
Response.Write(physicianID);
}
public Int16 physicianID
{
get { return _physicianID; }
set { _physicianID = value; }
}
-----------------------------------------------------------------------------
When I "set" this value, it's value is 3 however when I get to the line that reads "Response.Write(physicianID);", the value of physicianID is reset to zero. Any idea what I'm doing wrong? Thanks.
-Goalie35
|
|
|
|
|
I suspect you are bnding the data to the grid every time the page loads. This will reset the value to 0.
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 Christian. Thanks for the response but I don't think that's quite it. When I step through my code line by line, the process goes as follows:
--------------------------------------------------------------------
Index.aspx > TestGridControl tgc = new TestGridControl();
Index.aspx > tgc.physicianID = Convert.ToInt16(dropPhysicians.SelectedItem.Value);
TestGridControl.ascx > public Int16 physicianID > set { _physicianID = value; }
Index.aspx > End of class
Masterpagefile.cs > (my code then hits my masterpage)
TestGridControl.ascx > protected override void OnLoad(EventArgs e) > Response.Write(physicianID);
TestGridControl.ascx > public Int16 physicianID > get { return _physicianID; }
-------------------------------------------------------------
By the time I re-enter testgridcontrol.ascx after my code takes a detour through my masterpage file, my _physicianID variable is already reset to zero.
I hope this helps shed some light on my issue.
Thanks again.
-Goalie35
|
|
|
|
|
Hi Goalie35,
I have a naive question for you. I seek to learn too, on this topic. I noticed on the Page_Load of your example, you have instantiated a new TestGridControl object and assigned it a value. But was the new instance added to the page's control collection?
Remember, your work is not yours alone. Somewhere, there are some codes written by others amongst us that depends on your work. By failing to see that you are part of their ecosystem, you are bound to break their code.
|
|
|
|
|
Good question as he is creating a new instant of usercontrol and i think he would have added one more instant of usercontrol by registering that user control in aspx Expecting the result on added user control
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hello everyone,
Is it possible to make a user upload a Word file (.doc) to the server and make the server save this file as an HTML file ?
Also after the conversion while an HTML file is created also there must be a directory created at the same place with the HTML file which have files related to the newly created HTML file.
Best Regards & Thanks
.:: Something is Wrong ::.
|
|
|
|
|
I think there are some third party tools by using them you can achieve this
Also if you have to display this document as an html then don't convert it just read the content and display it on aspx page
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi i am using asp.net 1.1 with c#. In my application i have a .aspx with user control. its working fine in localhost. but after deployment i got the following error.
---------------------------------------
[NullReferenceException: Object reference not set to an instance of an object.] Udoy_UI.User_control.InitializeComponent() +238 Udoy_UI.User_control.OnInit(EventArgs e) +13 System.Web.UI.Control.InitRecursive(Control namingContainer) +241 System.Web.UI.Control.InitRecursive(Control namingContainer) +179 System.Web.UI.Control.InitRecursive(Control namingContainer) +179 System.Web.UI.Page.ProcessRequestMain() +197
-----------------------------------------
N.B (.aspx without user contron works fine both in localhost and web)
i need help. and Thanks in advance.
Md. Ismail
|
|
|
|
|
Just a guess but it sounds like you may be missing the user control assembly on the live server? Maybe try searcing for that dll on the live box and see if it is there. If it is then, post some code so we can have a look.
|
|
|
|
|
I have a drop down list in my asp page. when I selectg an irem and click on a button it appears in the Grid view. But when I again come to the same page and click on the same item from Drop down list it and click on button it again add the same item onin the Grid view. So I need some validatiobn that if this item appears in Grid view Don't add in the Grid view. I can use customValidation control. But I don't know how to use it.
seema
|
|
|
|
|
You can aslo accomplish it by clearing DropDownlist item Before adding new Item.
Call this dd.Items.Clear(); Before adding new Item.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Hi All,
I have a Gridview in my asp page. In first bound column I have Id field. I want this column to be invisible in Gridview but when I selecyt the row i should be able to get the value of that cell. I set the Column property Visible = False. and in my code behind page
GridViewRow grow = gdProxy.Rows[gdProxy.EditIndex];
int proxyId = Convert.ToInt32(grow.Cells[0].Text);
But it doesn't work but if I set Visible + true It works. But I don't want this column to be visible in my grid view but want to get the value of cell.
seema
|
|
|
|
|
They changed this in .net 2.0 so that the data in an invisible column is not accessible. What are you trying to do with the id? You can put it in the commandarugment property if you want to use it in a command button. Or use the DataFormatField and DataFormatString in a hyperlink column.
|
|
|
|
|
remove the column for id from the GridView and set the DataKeys property to "id".
Then you can access the id with gridview.DataKeys[someIndex].Value
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Hi,
I have currently defined this control like:
<asp:LoginStatus ID="lsCE" runat="server"/>
When I click on the logout link I want it to go to my Default.aspx page in my root directory. How and where do I indicate this?
Regards
|
|
|
|