|
VSS : visual Source Safe.
|
|
|
|
|
Given that visual source safe is a commercial MS product surely it comes with documentation?
|
|
|
|
|
HyperLinkField + OnRowDataBound
i want to access the DataTextField of the hyperlink on OnRowDataBound event .
thanks in advance .
|
|
|
|
|
Hi,
You can do something like this
protected void grdCat_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow || e.Row.RowType == DataControlRowType.Header)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
CheckBox chkSelAll = new CheckBox( );
chkSelAll = (CheckBox)(e.Row.Cells[8].FindControl("chkSelAll"));
chkSelAll.Checked = true;
}
}
}
Here you need to first check if the row being bound is what type of row. Then as per the requirement, Dynamically type cast an existing control from the GridView to required control type and then use its properties as you do usually.
I hope this answers your question.
Thanks and best regards
Omkar
|
|
|
|
|
the hyperlinkfield does not have a id so getting it through FindControl is
not possible. could not help myself with your code.
sorry .
|
|
|
|
|
Hi,
Ok.. You can instead use a normal hyperlink <a> inside a template column and then access it using the predefined column. Ofcourse check if a normal hyperlink suffices your other requirements..
Thanks and best regards
Omkar
|
|
|
|
|
i cannot use template column since i had to do sorting .i had to work with hyperlinkfield only.
thanks .
|
|
|
|
|
Hi,
There are other ways to do sorting like
<asp:BoundField SortExpression="DISPLAYFILENAME" DataField="DISPLAYFILENAME" HeaderText="TITLE" />
The sortexpression will take care of ur sorting woes alongwith some other code. But you need to try that out if it works as per other requirements that I don't know as of now.
I can give you one of my page's code snippet, which does sorting this way and the FindControl part can be done as shown earlier.
Pls let me know how should I give you the whole page's code
Thanks and best regards
Omkar Ghaisas
|
|
|
|
|
i am very much comfortable with sorting and had finished sorting in this project . Only i had to work up on this.
thanks for your cooperation .
|
|
|
|
|
Hi,
How do i run a bat file from asp.net 2.0 if i use authentication mode="Forms"?With authentication mode="Windows" is easy.I just add <identity impersonate="true"> but i can't do that for Forms authentication.
Thanks
|
|
|
|
|
How to see the sorting arrow in a gridview control header?
dutta
|
|
|
|
|
how can i validate emails which is seperated with comma(,) using javascript.
plz help me to grt the code
thks
yesuprakash
|
|
|
|
|
Hey,
Please visit the following links.
http://regexlib.com/DisplayPatterns.aspx
http://www.regular-expressions.info/
I hope u will get your answer there.
Mehedi Hasan
|
|
|
|
|
Heres a function I use:
function ValidateMultiEmail(value) {
var emails = value.split(',');
var re = new RegExp("\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*");
var valid = true;
for (var i = 0; i < emails.length; i++)
{
if (emails[i].trim() != '' && !re.test(emails[i]))
{
valid = false;
break;
}
}
return valid;
}
The regular expression isn't full-proof - you will get some false positives but only in the most unlikely cases.
|
|
|
|
|
I am using Repeater control in a ASP Menu control. I want to increase the width of the menu so that the text could no wrap.
Also i want to increase the width(length) of the display field of DetailsView control
any help will be appreiated
t.aransiola
|
|
|
|
|
I have developed my ASP.net pages using the File System. I want to move them to Internet Information Server.
I am using VB.Net 2005 running on windows-xp and sql server 2005.
I tried to create a Virtual Directory from IIS to point to the folder where i have my asp.net pages but the pages did not run below is the error message
Server Error in '/AspLearning' Application.
----------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized configuration section 'connectionStrings'
Source Error:
Line 10: <configuration>
Line 11: <appsettings>
Line 12: <connectionstrings>
Line 13: <add name="NWConnectionString" connectionstring="Data Source=digital\sqlexpress;Initial Catalog=Northwind;Integrated Security=True" providername="System.Data.SqlClient">
Line 14:
Source File: C:\websites\ASPLearning\web.config Line: 12
t.aransiola
|
|
|
|
|
It looks like your web.config isn't set up properly (can't see the actually lines you pasted in). Is your web site set up to run under .net framework 2.0 rather than 1.1?
|
|
|
|
|
aransiola wrote: Parser Error Message: Unrecognized configuration section 'connectionStrings'
I think, your IIS is configured to .NET 1.1 version. Check the Virtual Dir property in IIS.
.NET 1.1 does not have connectionStrings section. So check the IIS setting of that Virtual Dir
|
|
|
|
|
hi
whether it is .net 1.1 or 2.0 ..
there is not a tag defined by the name 'connectionStrings' in web.config's <configuration> Section..
so check out...
Thanks & Regards
Vishal Sharma
vishalsharma556@yahoo.co.in
|
|
|
|
|
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="NWConnectionString" connectionString="Data Source=digitalnb\sqlexpress;Initial Catalog=Northwind;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<compilation debug="true" strict="false" explicit="true"/>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
t.aransiola
|
|
|
|
|
how can i fill all database names in a combobox?
thks
yesuprakash
|
|
|
|
|
call stored procedure
sp_databases - you will get all databases
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi
I have done sub folders in my Web Application, due to it I am getting compile time error as follows -
"It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS"
I've also created virtual directory for this sub folder, but still problem is there. What to do in this case ?
#Abhi#
|
|
|
|
|
hi all
i m trying to upload large amount of data to oracle database..
through excel file... in .net..
is there any standard way to do that?
cause it is taking too much time to upload data in oracle.
|
|
|
|
|
Why are you using .NET in between this? You can directly import the excel in oracle itself which would be fast.
|
|
|
|