|
thanks
Now woking fine
Regrads
sanjeev
|
|
|
|
|
Hi,
If I do "this.GetType()" in an ascx.cs usercontrol, I get a strange name, which is the auto generated final class, in Web Site Project.
e.g. default_aspx_modules_admin_useredit
Is there a way to get the real class name, as I wrote the class?
public class UserEdit
I have some data assigned to controls in XML files, and controls would need to know their own name to access their own data. If possible, I don't want to create a readonly variable with the class name.
protected readonly string OwnName = "UserEdit";
Parse from AppVirtualPath? Any better ideas?
Many thanks,
Ferenc
|
|
|
|
|
Hi,
Use this.GetType().BaseType.Name to get the class name or this.GetType().BaseType.FullName for the namespace heierarchy + class name.
Clean code is the key to happiness.
|
|
|
|
|
Thank you, this one works well!
|
|
|
|
|
Have you tried getting the type of the type?
eg.:
Type parentClass = this.GetType().GetType();
|
|
|
|
|
Hi, yes, thanks for comment.
That returned "System.RuntimeType" Type in my ascx.cs class.
|
|
|
|
|
How can I update XML data in a flex application?
Sunil Nair
|
|
|
|
|
The goal: to run a web service in a Internet Explorer page. Can it be
done?
The only way I see is to have a VBScript able to import the functions
from System.Net.Sockets.TcpListener. Is it possible? examples? Do the
user needs to have some or all of the .NET framework installed?
Thanks
Alejandro
|
|
|
|
|
A web service uses HTTP and XML, which isn't hard to use from Javascript. You use the XMLHTTP object for the HTTP communication, and XML is just text.
You can look up any AJAX code example (that doesn't use a complicated library) to get the code to send the XML using the XMLHTTP object.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
MIX08 to debut the first ever MIX UX Track which is 3 days of solid content dedicated to creatives / designers. Lou Carbone, David Armano, Dan Roam, Kim Lenox and others will speak. In conjunction with Adaptive Path, the User Experience track is just one of the many great reasons for all types of designers and creative professionals to attend MIX this year. http://visitmix.com/2008/mixux.aspx
The deadline for this year’s CSS contest, RESTYLE, has been extended. Folks can still restyle the MIX08 Homepage and win a pass to MIX08, 3 nights at the Venetian, $$ and more, more, more! http://visitmix.com/2008/restyle/
Have you been listening to The Signal? Each week a new episode debuts featuring a speaker or MIX crew member talking about some of the upcoming coolness happening at MIX08. Listen to their interviews with Molly Holzschlag, Kip Kniskern, Jonathan Snook and others as we countdown to Vegas. http://visitmix.com/blogs/TheSignal/
Perhaps you remembered last year’s MIX, in which we featured Flotzam, a WPF screensaver mash-up that showed MIX07 feeds from Facebook, Flickr, Twitter and blogs. Well, we are doing it again this year with a twist: we are running a contest and will feature community created skins of the application on the big screen and on the screensavers of the computers available to attendees at the show. The best skin will win an XBOX 360. Entering the contest is easy: everything you need to know can be found here http://www.visitmix.com/blogs/News/403/ including links to screencasts and instructions that show how easy it is to do the restyle.
MIX08 on March 5-7 in Vegas- (Other than the early bird price was extended until the end of January so there is still time to register at a 20% discount!)
Suresh
http://blogs.msdn.com/usisvde
|
|
|
|
|
I have a gridview with Select buttons in the first column. There are lots of rows, and I have set up CSS to freeze the header row in place as the table is scrolled (using position:relative). I also have CSS set up for the hover event of the button which highlights the button with a nice black border. The problem arises when the containing div is scrolled. If the cursor is moved over any one of the buttons, the header row suddenly jumps to it's scrolled position (a lot of the time this is too far north and it just disappears). Scroll back to the top of the grid, and hover again - it's back! Any diagnoses and possible cures greatly appreciated.
p.s. Yes I have considered creating a custom control inheriting from Gridview, but this seems like a lot of work when the solution I currently have is so close to perfect...
<div class="ForumMod">modified on Wednesday, February 06, 2008 6:13:54 AM</div>
|
|
|
|
|
<update>
I got around this problem for the prototype demo by not having enough data to require scrolling! For the production version I will probably create a custom gridview inheriting from Gridview, or dolly up a Repeater with some sorting capabilities. However, I'm still curious as to what would cause this. I assume it's client side (IE only - not tried in FF) as I don't see any postback or page refresh.
Any thoughts?
</update>
|
|
|
|
|
In my label i want to display hh:mm:ss
this i want to show continuously on my web form .
i am developing web based application.
Please help me how i can do this through the java script.....
|
|
|
|
|
Hi,
This can simply be achieved with the following code:
<br />
function updateTime()<br />
{<br />
var timeNow = new Date();<br />
document.getElementById('testLabel').innerHTML = timeNow.toTimeString();<br />
}<br />
<br />
setInterval("updateTime();", 500);<br />
The setInterval function will run every 500 milliseconds (1/2 a second) to update the label with the current date / time.
Clean code is the key to happiness.
|
|
|
|
|
Ok, I just created a page which shows some columns from .mdb file and it's working perfectly, the data is loaded and the grid looks fine, but when I click on the Edit or Delete links, I get this..
Server Error in '/WebSite2' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /WebSite2/GridView1
please help
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(> <)
modified on Tuesday, January 29, 2008 3:58:26 AM
|
|
|
|
|
The error message makes it pretty obvious. It's a HTTP 404 error. Is the resource '/WebSite2/GridView1' actually available?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi Guys,
Please I a help... I am trying to use createuserwizard control to add some custom fields like, telephone number to a table I created.
and in my web.config I have:
<profile defaultprovider="SqlProvider" ><br="" mode="hold"> <providers>
<clear>
<add name="ddlgender" defaultvalue="[null]" type="string" customproviderdata="gender;varchar" provider="TableProfileProvider">
<add name="txtage" defaultvalue="[null]" type="string" customproviderdata="age;varchar" provider="TableProfileProvider">
<add name="ddlcity" defaultvalue="[null]" type="string" customproviderdata="city;varchar" provider="TableProfileProvider"> <add name="txtphone" defaultValue="[null]" type="string" customProviderData="phone;varchar" provider="TableProfileProvider" />
And i keep getting this error : Parser Error Message: could not load type 'Microsoft.SqlTableProfileProvider'
can anyone help me out pls.
Thanks.
|
|
|
|
|
Hi Guys,
Please I a help... I am trying to use createuserwizard control to add some custom fields like, telephone number,gender,age,city to a table I created.
and in my web.config I have:
<profile defaultprovider="SqlProvider" ><br="" mode="hold"> <providers>
<clear>
<add name="ddlgender" defaultvalue="[null]" type="string" customproviderdata="gender;varchar" provider="TableProfileProvider">
<add name="txtage" defaultvalue="[null]" type="string" customproviderdata="age;varchar" provider="TableProfileProvider">
<add name="ddlcity" defaultvalue="[null]" type="string" customproviderdata="city;varchar" provider="TableProfileProvider"> <add name="txtphone" defaultValue="[null]" type="string" customProviderData="phone;varchar" provider="TableProfileProvider" />
And i keep getting this error : Parser Error Message: could not load type 'Microsoft.SqlTableProfileProvider'
can anyone help me out pls.
Thanks.
|
|
|
|
|
Hi Guys,
Please I a help... I am trying to use createuserwizard control to add some custom fields like, telephone number,gender,age,city to a table I created.
and in my web.config I have:
<profile defaultprovider="SqlProvider" ><br="" mode="hold"> <providers>>
<clear>
<add name="ddlgender" defaultvalue="[null]" type="string" customproviderdata="gender;varchar" provider="TableProfileProvider">
<add name="txtage" defaultvalue="[null]" type="string" customproviderdata="age;varchar" provider="TableProfileProvider">
<add name="ddlcity" defaultvalue="[null]" type="string" customproviderdata="city;varchar" provider="TableProfileProvider"> <add name="txtphone" defaultValue="[null]" type="string" customProviderData="phone;varchar" provider="TableProfileProvider" />
And i keep getting this error : Parser Error Message: could not load type 'Microsoft.SqlTableProfileProvider'
can anyone help me out pls.
Thanks.
|
|
|
|
|
SqlTableProfileProvider is a custom provider (written by someone at Microsoft I think), right? Do you have a file/project reference to this provider set up in your project?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
Now I am working with webservices.But now we are facing a problem while calling a method in webservice asynchronously from a web page.ie.when the webmethod computes the result it will not get reflected in the webform, because the page would be rendered to the client while the method processing data.Please help me to avoid this problem without using polling...........
|
|
|
|
|
Is the web service call being made as the page is loading or is it being initiated by a user action on the page?
Clean code is the key to happiness.
|
|
|
|
|
When you make the async call you should get an IAsyncResult you need to hang onto.
Then at the end of your.. say OnPreRender handler you grab the IAsyncResult and wait for it to finish - say myIAsyncResult.AsyncWaitHandle.WaitOne();
Now you have your data back, you have a party. Or update the fields.
|
|
|
|
|
im trying to use the update panel but it updates the entire page as supposed to the update panel. i cant find what i have done wrong. can anyone help???
Many thanks in advance
====================================================================================
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager id="ScriptManager1" runat="server">
</asp:ScriptManager>
</div>
<asp:UpdatePanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:Label id="Label1" runat="server" Text="panel Created"></asp:Label>
</contenttemplate>
<triggers>
<asp:AsyncPostBackTrigger ControlID="Button1"></asp:AsyncPostBackTrigger>
</triggers>
</asp:UpdatePanel>
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
</body>
</html>
===========================code behind================
Protected Sub Button1_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = "Refreshed at " & _
DateTime.Now.ToString()
End Sub
|
|
|
|