|
This may help:
http://www.codeproject.com/dotnet/DotnetDb2.asp
|
|
|
|
|
Thanks. I've seen this one. I just don't understand where I can find the driver.
On top of everything this is for V.8 and we have V.7 somthing of DB2.
|
|
|
|
|
hi
how can i get the ClientId of a control in a gridview footer row from javascript.
the code that i am currently using is like this:
document.getElementById('<%= TextBox1.ClientID %>').value = result[0];
but as textbox1 is not declared in a gridview that above code does not work in a gridview.
thanks for any help
|
|
|
|
|
How i can update following settings at runtime in web.config file using asp.net 2.0
appSettings
add key="ConnectionString" value="server=Release; user id=sa; password=abcdef; database=Superlative; pooling=false;
appSettings
Know Yourself Then Grow Yourself.
|
|
|
|
|
This may help:
http://www.codeproject.com/csharp/readwritexmlini.asp
|
|
|
|
|
..but bear in mind that, as it says in that article:
"...writing to web.config causes the application to end along with all the active Sessions."
cheers
Fred
|
|
|
|
|
Thanks
Know Yourself Then Grow Yourself.
|
|
|
|
|
Dear All
I need a regular expression for a number that can be integer or decimal
something like the javascript function isFinite()
can any1 help me?
Best Regards
3ala2
|
|
|
|
|
Use this Regular expression ^[1-9][0-9]*$
Know Yourself Then Grow Yourself.
|
|
|
|
|
I think you're looking for something like this:
^\d+(\.{0,1}\d+)$
|
|
|
|
|
Thank u very much
Best Regards
3ala2
|
|
|
|
|
I have created the web.config where I have
entered the following:
<system.web>
<identity impersonate="true" userName="WindowsDomain\YourUserName" password="YourPassword" />
</system.web>
And I have created an aspx page with the following code :
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Security.Principal" %>
<%
Dim _user as string = Page.User.Identity.Name
Dim _window as string = System.Security.Principal.WindowsIdentity.GetCurrent().Name
Dim _thread as string = System.Threading.Thread.CurrentPrincipal.Identity.Name
Dim url as string
Session("mySession") = Page.User.Identity.Name
Response.Write (Session("mySession"))
%>
The anonymous check box is cleared from the IIS.
Expected result is when I request the aspx page , not to get promted with a Username & Password. It should get them from the web.config file.
But still I am getting promted to Enter a Username & Password.
Please help ...... I Feel that I am too close now of the solution, I just need one last push.
|
|
|
|
|
hi all..........
pls can anybody help me to display cursor wait while page is loading
my page have the code like this
thank you
|
|
|
|
|
Can u post all your page HTML code??? not just the frameset part
Best Regards,
Haissam Abdul Malak
|
|
|
|
|
|
ASP.NET 1.1
a) How Visual Studio compiles the whole ".cs" files and put them as a single assembly, <project_name>.dll, into the bin folder.
b) How can we do this compilation manually?
c) Why the ".aspx" pages are not included into it?
d) How the runtime will link the "aspx" files with this output DLL in the BIN folder?
e) Whether at runtime any classes are getting generated which pertain to each ".aspx" files? If, whats is the need for compiling only the ".aspx.cs" files?
ASP.NET 2.0
a) aspnet_compiler will compile the whole project and produce the output into a single DLL. How to do this manually?
b) Where the App_Code files got compiled?
c) Even though I put both my ".aspx" files and ".aspx.cs" files in a virtual directory instead of compiling, how things are getting worked at runtime?
Please request you to provide a clean picture on these.
Arun
|
|
|
|
|
Is this your homework or pre-interview questions?
|
|
|
|
|
Both. I have asked a lot of people whom I know to make things clear, but all gone in vague. I know the general views which were mentioned in MSDN, but I need something in "CORE".
If you can help me, thanks a lot.
Arun
|
|
|
|
|
There's a practice of not doing people's homework here.
Sorry.
|
|
|
|
|
I need to make a server control for controlling layout on my page. For various reasons, I don't want to use a master template, and the easiest approach is to make a server control which exposes two child controls. The content on my webpage will be added to these two exposed child controls, which in turn will be rendered surrounding by the layout HTML I need. Everything works fine, except I have no design-time support for it. In other words, I can compile the code, but I have no intellisense on in, which is a major inconvience. I've tried adding the standard attributes to the exposed properties, but I keep getting the "Content is not allowed between the opening and closing tags..." error. Can anyone tell me which attributes I need to add to my control class or its properties in order to get Visual Studio 2005 intellisense to work with the TopContent and BottomContent properties? Thanks!
// ######################################
// what the useage should look like :
// ######################################
<cc:LayoutTemplate runat="server">
<TopContent>
</TopContent>
<BottomContent>
</BottomContent>
</cc:LayoutTemplate>
// ######################################
// control definition :
// ######################################
public class LayoutTemplate : System.Web.UI.WebControls.WebControl, INamingContainer, IPostBackDataHandler, IPostBackEventHandler
{
#region FIELDS
private Control _topContent;
private Control _bottomContent;
#endregion
#region PROPERTIES
[PersistenceMode(PersistenceMode.InnerDefaultProperty),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public Control TopContent
{
get
{
return _topContent;
}
}
[PersistenceMode(PersistenceMode.InnerDefaultProperty),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public Control BottomContent;
{
get
{
return _bottomContent;
}
}
#endregion
#region CTORS
public LayoutTemplate(
)
: base(HtmlTextWriterTag.Div)
{
_toptContent = new Control();
_bottomContent = new Control();
this.Controls.Add(_topContent);
this.Controls.Add(_bottomContent);
}
#endregion
#region METHODS
protected override void RenderChildren(
HtmlTextWriter writer)
{
LiteralControl l = new LiteralControl(" ... top layout html here ... ");
l.RenderControl(writer);
this.TopContent.RenderControl(writer);
l = new LiteralControl(" ... middle layout html here ... ");
l.RenderControl(writer);
this.BottomContent.RenderControl(writer);
l = new LiteralControl(" ... bottom layout html here ... ");
l.RenderControl(writer);
// suppress child rendering
//base.RenderChildren(writer);
}
public void RaisePostDataChangedEvent(
)
{
}
void IPostBackEventHandler.RaisePostBackEvent(
string arg
)
{
}
public bool LoadPostData(
string postDataKey,
NameValueCollection postData
)
{
return true;
}
#endregion
}
-- modified at 8:45 Monday 4th December, 2006
|
|
|
|
|
Nvm - got a solution on the ever-helpful http://forums.asp.net - changing the exposed control type to PlaceHolder instead of Control fixed it. Good enough solution.
|
|
|
|
|
Hi I have a page in which I have used another page in . In that <ifram> page there is a text box i-e named txtPO. How can i access that txtPO in that Page in which <iframe> page is used.
|
|
|
|
|
dear,
you can access it from javascript
document.frames['IFRAMEID'].document.getelementById('txtPO').value
where IFRAMEID is the id of your iframe
Happy Coding
Best Regards,
Haissam Abdul Malak
|
|
|
|
|
hi
i want to display an image from datadase in a TemplateColumn, and when i click on this image an event will happend (like: another image is displayed
in another place in the same page)
plz help me
thanks for ur time :rose
Rania
.net programer
|
|
|
|
|
This isn't a complete solution but hopefully it will get you started....
This is a brief sample of a datagrid I created in v1.1 that had a "View Details" image button in the 1st column of the datagrid. This image was the same for each row with an image filepath that I hardcoded:
1) datagrid id="dgrdSample"
2) Add OnItemCommand="dgrdSample_ItemCommand" to the datagrid tag
3) First column was a "ButtonColumn":
<asp:ButtonColumn ButtonType="LinkButton" HeaderText="Sample" Text="<img src='../images/viewDetails.jpg' border='0'>" CommandName="select"></asp:ButtonColumn>
4) Add this to your codebehind:
protected void dgrdSample_ItemCommand(Object s, DataGridCommandEventArgs e)
{
//Add your code here for whatever you wish to happen
}
Hope this helps get you started.
-Goalie35
|
|
|
|