|
I think reinstalling may solve this issue.
When it in BETA stage VS2008 I had problem, as it hang often when adding reference. I think this is resolved in the new version. Are you using the Beta version?
Anyways, I am using Visual studio 2008 for a couple of months and its working great.
|
|
|
|
|
AB7771 wrote: while working on an application, i created a user control,
as soon as i place the register tag for the user control in my page, VS hangs and doesn't recovers back.
Reinstall Visual Studio
|
|
|
|
|
I re-installed VS but to no use....
i found on some forum that the VS Web Authoring component should be removed, but
after doing this i am not able to view the page in design view.
Any other options or resolutions???
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
how to make object for the class file and
after use that object and call the function in the aspx pg which is inherited
|
|
|
|
|
Was this your first attempt at the question above ? It still makes no sense. I can't even begin to guess what you mean. Try explaining it with a more concrete example.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hey...
You mean you want to call a function of ASPX page from your object. Is it remote aspx, or local one. If it is local one to the same application, you can do it by creating an object of the class corresponds to the aspx page..
or otherwise make the function static one and call it using Classname.
Really.. as all others suggested, you need to read basic books on C# before you ask anything.
|
|
|
|
|
If he wants to call a method in his ASPX, he needs to move that method out of his ASPX, because it clearly does not belong there.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Yes ... I agree, calling an ASPX class is really not making any sense if we are to use it as a normal class.
Not making any sense.. as to his question...
|
|
|
|
|
how to inherit two class file in one aspx pg(vb.net)
|
|
|
|
|
You cant
You are best person who knows about your problem.
-------------------------------------------------
More pain more gain
|
|
|
|
|
Please clear your basic first by reading some books or aricles
himanshu
|
|
|
|
|
AGAIN ! I am suggesting you buy some beginners book and read the basic first. It will help you in long run.
|
|
|
|
|
Is this what your meaningless posts above are about ? OK, no-one wants to give you a hard time for not being a native English speaker, but you DO need to work harder, if you want native english speakers to be able to help you.
1 - you can't inherit ANYTHING from two classes in C#. That you ask this, means you need to read a basic book before asking us stuff
2 - DON'T ask things over and over. It only frustrates us. You're getting free help. Ask intelligently, then be patient.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
hi...
My application consist of menu which is created dynamically..And all the details of the menu were stored in the database... So how can i create a dynamic site map path using details from the database...
Oopppzz!!!!!!!
|
|
|
|
|
Hi, I have created a custome control DLL for Survey questions, I deployed the solution on GoDaddy shared hosting, after working for 3 months it suddenly stopped.
URL http://wsmysql.flexdna.com/home.aspx
Error Says
Required permissions cannot be acquired.
I did use PermCalc.exe to find out what permissions are exactly causing this error, I can replicate the error on local machin by adding <trust level="Medium" originUrl=""/> tab
If it is related to permissions why the hell it worked in first place.
Anyways I used permcalc tool and it gives me following output, can some one give me a pointer as what exact permission this DLL needs
Outout XML
I have gone through various articles for configuring medium trust level web.config, but looks like I 'm working in some wrong direction, If I can nail what permissions are required, I can fix and request GoDaddy to allow them, or change the provider
-Sanbox option for PermCalc.exe returns a blank XML!!
What I need is a Custom Medium trust level settings which will allow this DLL permissions required or if I know what part has to be changed in code, I'll change accordingly.
Thanks
modified on Tuesday, June 16, 2009 2:26 AM
|
|
|
|
|
Hi all,
Can we capture a webpage as an image? I actually intend to get a web page as image when the URL is passed.
I've tried to use ...
System.Net.WebClient objWebClient = new System.Net.WebClient();
byte[] htmlData = objWebClient.DownloadData("http://www.google.com");
MemoryStream ms = new MemoryStream(htmlData);
Image returnImage = Image.FromStream(ms);
But then realized that the stream contains the HTML data but not the image data
Is there any other way to get this?
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
|
I've checked it...It uses an exe file 'IECapt.exe' to get the screen shot and then get the image from the exe file. I can't use the IECapt.exe.
Thanks for the reply
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
Hi....
I have created multiple file uploads on button click through javascript.
It works fine...
But the problem is that when i fire any server hit in that page the controls i have added is gone, and i have to add them again.
kindly help to resolve this issue.
Thanks.
Here is code.
var i=0;
function addAttachment()
{
i++;
var atts=document.getElementById("attachments");
//create child div
var divChild=document.createElement("div");
divChild.id="div"+i.toString();
atts.appendChild(divChild);
var newAtt=document.createElement("input");
newAtt.id="file"+i.toString();
newAtt.name="file"+i.toString();
newAtt.type="file";
divChild.appendChild(newAtt);
//Create a tag
var aElement=document.createElement("a");
aElement.id="afile"+i.toString();
var aText=document.createTextNode("remove");
aElement.appendChild(aText);
aElement.setAttribute("href","#");
if(navigator.appName=="Microsoft Internet Explorer")
{
aElement.attachEvent("onclick",removeFun(divChild.id));
}
else
{
var eventHander=function(){removeAttachment.call(divChild.id);}
aElement.addEventListener("click",removeFun(divChild.id),false);
}
divChild.appendChild(aElement);
}
var removeFun=function(childDivId)
{
return function(){removeAttachment(childDivId);}
}
function removeAttachment(childDivId)
{
var atts=document.getElementById("attachments");
var child1=document.getElementById(childDivId.toString());
atts.removeChild(child1);
}
|
|
|
|
|
i have a gridview with multiple columns in which one column is dropdownlist.
i want to update gridview row on dropdown selection change event. i do this, but problem is that when row is updated on dropdown selection change event, this page has other server side controls eg. buttons , problem is that when i click any button on page, selected drop down event row data disappear.
please any body tell me how to solve that problem.
|
|
|
|
|
Could you post your gridview fillimg code.
Regards,
Kaushal Arora
|
|
|
|
|
i have a function loadstring in a class file like
Public Sub LoadStrings(ByVal ci As CultureInfo)
Dim HylEdit As New HyperLink
Dim BtnClear As New Button
Dim BtnSave As New Button
Dim HylView As New HyperLink
i hav inherited tis class to a aspx page where i hav those controls
like HylEdit, BtnClear, BtnSave, HylView
i want to load those controls wit values tat i hav assigned to it
|
|
|
|
|
Dim cmd = New SqlClient.SqlCommand("Update Studentmaster set Firstname='" & txtsfname.Text & "', Middlename='" & txtsmname.Text & "', Lastname='" & txtslname.Text & "', Address1='" & txtadd1.Text & "', Address2='" & txtadd2.Text & "', City='" & txtcity.Text & "', State='" & txtstate.Text & "', Pincode=" & Val(txtpin.Text) & ", Gender='" & txtgen.Text & "', Birthdate='" & CDate(txtbdate.Text) & "', Emailid='" & txtemail.Text & "', Category='" & txtcat.Text & "', Mstatus='" & txtmstatus.Text & "', Aboutme='" & txtabtme.Text & "', Graduationcollege= '" & txtgclg.Text & "', GraduationResult= " & Val(txtgresult.Text) & ", Graduationdegree='" & txtgdeg.Text & "', Masterdegree= '" & txtmdeg.Text & "', Mastercollege='" & txtmclg.Text & "', HSC=" & Val(txthsc.Text) & ", SSC=" & Val(txtssc.Text) & ", Usertype='" & txtutype.Text & "', Username='" & txtuname.Text & "', Password='" & txtpasswd.Text & "', Questions='" & cmbsq.SelectedValue & "', Answer='" & txtans.Text & "' where Studentid= '" & Session.Item("studentid") & "' ", c)
cmd.ExecuteNonQuery()
|
|
|
|
|
It is a tough challenge to read the code that you have posted. Format the code so that it becomes readable.
There is no foolish question, there is no final answer...
|
|
|
|
|
I could find its a VB code. Apart from the I couldn't understand anything.
You are best person who knows about your problem.
-------------------------------------------------
More pain more gain
|
|
|
|