|
i think you should check the user credentials at each page
If user clicks sign out then make all values null ;
then on each page load event check the values is null or not .
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... "
|
|
|
|
|
Wow !!! Different answers for a single Questions.
That's nice to see differnt answers for a single Problem.
Regards,
Satips.
|
|
|
|
|
Dear All,
I'm new to the web-programming and ASP.NET. I need to align different elements (datagrid, textboxes etc.) on the user control and have a control over them during the execution. (move a control below the datagrid according to the number of rows there, etc.)
Is it possible to anchor elements to each other like you do in Win Forms?
If possible I'd prefer to have a solution with C#, rather than html or smth.
Thank you very much.
|
|
|
|
|
Web pages are completely different to WinForms. It is possible to do what you want but I promise you it won't work in the VS designer. C# is server-side and so has no effect on the positioning of controls once sent to the client. You want to look at CSS, and yes it means getting involved in some HTML as well.
|
|
|
|
|
Hi,
How to host a wcf service in an asp.net 3.0 application.
I have written a code but its not working can u provide a solution for this.
I have created a wcf service named test123
and MService is my classname
MyOperation is a methodname
i have added this webreference in my asp.net application
and i am trying to call this method but its not working
protected void Button1_Click(object sender, EventArgs e)
{
test123.MyService a = new test123.MyService();
string w = a.MyOperation1("Hello");
TextBox1.Text = w.ToString();
}
Thanks
Glenn D'souza
Software Engineer
Quest Informatics
|
|
|
|
|
Hi Everybody ...
This is naresh
iam developing online exam application,...
here ive some problem to Insert a Stopwatch...
that stop watch will useful wen the total time reaches the maximum time of the exam that page will automatically navigate to another page ....
i need help for inserting the stop watch while he is writing the exam
Iam using Web user control for my examination question paper (i.e, .ascx file ) .
i donno how to insert stop watch there and the functionality also i donno...
i tried in many cases but am not getting the expected result ...
plz help ...
Thanks in Advance
Naresh
|
|
|
|
|
To do it on the client, it needs to be done in javascript. It would then be easily hacked. Another option is to make AJAX calls that just check if the time has elapsed, but to store the starting time in the session, on the server, so it is secure.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 ...
Thanks 4 ur answer but the problem is ::::::::::
ive JavaScript editor ....
i got all the clock controls in javascript editor ...
in that one control "Redirect Clock " , its very useful but the problem is that ....
" wen iam in the first question it is showing that max num of seconds ive given in java script ...
but wen i click on NEXT Question button the page will automatically refreshes and the second question will comes ... so for that question also am getting the same max time .... the problem is that if the page refreshes the stopwatch restarts again .... "
In this case only i confused wat to do ?
n one more ,,,, iam very new to dotnet , and i donno abt AJAX ,, i never used in any project ..
waiting 4 ur answer ...
bye
naresh
|
|
|
|
|
Well Naresh
There might be many techniques to solve this problem. But I think you can insert invisible iframe(height=0,width=0) say "refresh.aspx" to all of your Pages.
Now refresh the page "refresh.aspx" using
Response.AddHeader("Refresh", "60")
At PageLoad event you can use some session variables to store time left, time spent etc. Hope it will solve your problem.
|
|
|
|
|
ok fine ,
thats is ok
but ive to show that control ( stop watch ) to candidate who is writing the examination...
thast y am asking
i think if i use the invis iframe , refresh --> the page will refreshes automatical ly thats all..
but i need to show..
if u ve any answer for this plz reply me ...
as i told previously iam newer to dotnet plz post clearly... so that i can understand easily.
Thanq .......
bye
naresh
|
|
|
|
|
Hello All,
We have error handling code in global.asax. If any error occurs, it will send email to admin. We want to capture error number and depending on error numbers we would like to send email or no.
We will put some error numbers in web.config and check if error number is presents in web.config then don't send email.
How can we get error number in Global.asax.
Any sample code or URL, it will be great.
Thanks & Regards,
Kumar
|
|
|
|
|
Kumar:
I've used this technique from MS and it has worked very well:
[^]
Looks for the 'global.asax' example (its in VB.NET but can be easily converted to C#)
-Don
|
|
|
|
|
Thanks.
We have code as in KB example, its working but we want to know error number.
Thanks & Regards,
Kumar
|
|
|
|
|
The Exception Class has a protected member for HRESULT . If you derive a class from System.Exception, you can get access to that value. That should contain any 'number' associated to the error (if one was generated).
HRESULT has 3 parts to it:
a severity code, a facility code, and an error code.
There is more detail here:
http://msdn2.microsoft.com/en-us/library/system.exception.hresult(VS.71).aspx
Example is there.
Hope that helps...
-Don
|
|
|
|
|
Hello Don,
Thank you for reply, I will check this.
Thanks & Regards,
Kumar
|
|
|
|
|
Hello there,
I am using ASP.NET and C#.NET 2.0
I want to Add a reminder Facility in my project.
But I am not finding the control for same in .net.
on a Site, user can be on any page.Is it possible to pop up the message as user sets the time for that message?
Can anyone help me to solve this?
Thanks a lot.
Jigss
|
|
|
|
|
Hi all,
I have being given a task to display a message of Good Morning with the User Name eg: "Good Morning Mr. XYZ"
Can any one tell me how do I start with it. I am using ASP.NET 2005 (VB).
Please help me...
Thanks in advance...
|
|
|
|
|
Windows Services are not the same as ASP.NET or ASP. Post your question on the VB forums. To set you in the right direction look into Windows Services.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
Thanks for the reply. I have search for Windows Services on but didnt got much help.
Please help me...
Thanks again...
|
|
|
|
|
hi,
as someone already mentioned, windows services and asp.net are not related.
why not try searching for "windows services" in the search text box at the top of this page?
ragards
|
|
|
|
|
Thanks for the help, but I have tried almost everything and also the suggestion given by u. I am still at the same place. Please help me if u have done something in Windows Services...
|
|
|
|
|
I am doing a project in which the requirement is to build dynamic page.
for example i want to embed html page into an aspx page and read the complete source of iframe on submit button click with the the value of control used in html page.
I need help regarding this problem . please help me asap
|
|
|
|
|
Use the following code to get the html
<br />
Function GetHtml(ByVal URL As String) As String <br />
Dim oWebClient As New System.Net.WebClient()<br />
Return New System.Text.UTF8Encoding().GetString(oWebClient.DownloadData(URL))<br />
End Function<br />
You would use it like so...
iFrameHtml = GetHtml("http://www.mysite.com/myIFrame.html")
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Hi,
I have created a solution consist of 2 C# class libraries and 1 Website project of http system type. But When I build it is not providing me with dll's for website project. Can any body help me on this?
I'm working on VS2005 Team Edition for Software Developers.
Thanks in Advance
M-o-h-a-n
|
|
|
|
|
HI all,
I have an asp application which i have to show a crystal report. the report requires the location as a parameter.
Can some one plse tell me how to set the server login info through the crystal report.
also i can not create instances out of the crystal report please tell me why?
this is the coding
ParameterField paramloc = new ParameterField();
ParameterFields paramField = new ParameterFields();
ParameterDiscreteValue paramLocDisVal = new ParameterDiscreteValue();
paramloc.ParameterFieldName = "@inLoc";
paramLocDisVal.Value = "016";
paramloc.CurrentValues.Add(paramLocDisVal);
paramField.Add(paramloc);
CrystalReportViewer1.ParameterFieldInfo = paramField;
UrlParameterPasser reciew = new UrlParameterPasser();
CrystalReportSource1.Report.FileName =reciew["name"];
CrystalReportViewer1.ReportSource = CrystalReportSource1;
regards
Ruwandi
rkherath
|
|
|
|