|
Cross-posting won't help you.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
How do I get a aspx page function in App_code class file in asp.net 2.0.
please sent a demo code.
|
|
|
|
|
You cannot get a function defined in the aspx code behind file in the App_Code class file. Because the instance of the aspx class is created based on the request by the browser in IIS at run time. You can try a static function but it isn't good practice.
You need to define the functions used across the application in another App_Code class file.
|
|
|
|
|
Hi,
In a gridview i have taken the three buttonfields.At one time i am showing the gridview with those three buttonfields.But at some time i dont want to show those three buttonfield i.e., i want to make it invisible.
How can i do it...
Thanks in advance..
|
|
|
|
|
Do you want to make invisible the columns of the three button fields in the GridView or you want to make invisible the button fields in some rows?
|
|
|
|
|
i want to make those three columns invisible.
|
|
|
|
|
Assume that the three button field columns starts from 4th column of the GridView, then
gvYourGridView.Columns[3].Visible = false;
gvYourGridView.Columns[4].Visible = false;
gvYourGridView.Columns[5].Visible = false;
|
|
|
|
|
Hi,
I have defined a hyperlink in a gridview but the problem is i want extract the value of that hyperlink in a textbox.since i am trying it i am getting a null value.Hyperlink is the 1st column in the gridview and also i am using the update panel.
Please any body can solve it..
Thanks in advance.
|
|
|
|
|
Can you post the portion of the code where you extract the value of the hyperlink.
Try this:
LinkButton lbtnYourHyperLink = (LinkButton)(gvYourGridView.Rows[rowIndex].FindControl("lbtnNameOfLinkButton"));
if(lbtnYourHyperLink != null)
textbox1.Text = lbtnYourHyperLink.Text
|
|
|
|
|
I have a web.config Root folder of my application and another web.config in a sub folder.
I want the sub folder to use the web.config present in the Root..
can you help to me.....
|
|
|
|
|
The configuration settings specified in the web.config from sub folder will always override the settings of the root folder web.config.
If you want to use the parent folder configuration settings, then remove the same configuration fron sub folder's web.config. Then it will be taken from root web.config by the application.
|
|
|
|
|
I am working on a DLL that will be licensed per domain and am trying to figure out the best way to handle subdomains.
How are sub-domains typically setup? I thought something like
c:\websites\domainX\www -> virtual directory for www.domainX.com
c:\websites\domainX\store -> virtual directory for store.domainX.com
Where would the DLL need to be so both "web sites" can use its functionality?
Or should the sub domain be setup directly under the www directory
c:\websites\domainX\www\store -> virtual directory for store.domainX.com
if the bin folder is also under \www will the subdomain site still have access to it? I think if someone navigates to www.domainX.com/store the answer is Yes but if they navigate using store.domainX.com the answer would be No because the root folder is now the Store folder.
I currently only have access to XP and IIS5 for development. How can I emulate subdomains in this environment?
|
|
|
|
|
Hi
I have a web application that iam running on an intranet, from this web application iam trying to open another access application that is found on the same server where i deployed the web application. I ust want to open the access application and to do that iam using
System.Diagnostics.Process.Start(System.Configuration.ConfigurationManager.AppSettings.Item("Path"))
in web.config key is:
<add key="Path" value="\\192.168.1.11\Shared\db\bdl_results.mdb"></add>
on my testing machine it is working fine but when i deploy at the customer site i get access denied error. Any ideas and thanks
|
|
|
|
|
samerh wrote: System.Diagnostics.Process.Start(System.Configuration.ConfigurationManager.AppSettings.Item("Path"))
in web.config key is:
<add key="Path" value="\\192.168.1.11\Shared\db\bdl_results.mdb">
First of all this will be always execute only on Server.
samerh wrote: on my testing machine it is working fine but when i deploy at the customer site i get access denied error.
In local system, you are doing it from VS, and its having it own ASP.NET engine and which has sufficient permission to access, read, write files in your local system.
But when you deployed it on IIS, Its runs on "Network Services " identity, which has minimum privilege to access your system. That is the reason you are getting the error.
Resolution :
1. Give the required privilage to that file.
2. Create Own Application Pool , Change the Identity of Application Pool to "Local System" . Assign the Application Pool to your virtual Directory.
I will suggest you to go with Option 2
Please let me know if any issue.
|
|
|
|
|
I am using javascript to print page from asp.net. Always print a empty page following the content. Pls help me to avoid empty page while printing ?
Thanks.....!
|
|
|
|
|
Hi,
I have a aspx page, in which a text box will display some text. I have given a Link Button on the same page. When I click Link Button, the text displaying in textbox should copy in to memory. That means its eqalent to Ctrl + C. Copy the text and Ready to Paste anywhere.
Please help me out.
Ramesh Sambari
|
|
|
|
|
Hi to all,
I have created a windows service which contains Timer control.The Service is being created and running well.I want to debug the code line by line of the service due to some malfunctioning.can any body help me regarding this.Can anybody tell how to debug the code.Hope that there will be someone to help me.
Thanks Before answering,
S G
|
|
|
|
|
|
Thank u Abhijit,
I will try this and let you know the result.Once again thanks for Your reply.
Regards,
S G
|
|
|
|
|
Estoy viendo varias alternativas para poder crear un menu que sea segun la necesidad... o sea si es administrador que cargue y de acceso solo a ciertas paginas, pero lo tengo que hacer dinamico, o sea, desde base de datos...
No soy muy buena en el tema y espero que me puedan entender y ayudar.. estoy trabajando con visual studio.net c# y sql server 2005...
Gracias
|
|
|
|
|
Is your question in spanish?
Hay un control de menú disponible en ASP.NET que permita que usted cree menús dinámicamente y estáticamente para su uso de la tela. Para su requisito, usted puede almacenar los artículos de menú basados en el papel del usuario en la base de datos y exhibirlos que usan este control de menú. Lea este acoplamiento
http://msdn.microsoft.com/en-us/library/ecs0x9w5(vs.80).aspx[^]
|
|
|
|
|
In English,
There is a menu control available in ASP.NET which allows you to create menus dynamically and statically for your web application. For your requirement, you can store the menu items based on the user role in the database and display it using this menu control. Read this link
http://msdn.microsoft.com/en-us/library/ecs0x9w5(vs.80).aspx[^]
|
|
|
|
|
Yes is in spanish sorry... my english is not good, but I understand your answere... thanks... but one question more... I do my DB in this form
Table User: nombre, nick, password, id_rol (if is admin or other), fecha_ingreso.
Table Rol: id_rol, detalle
Table "Permisos": id_permiso, id_rol, direccion (type int), indice (type int), detalle
The table "permisos" is for construct the menu and to know what pages he can see...
direccion and indice its and order in tree to do my menu...
In this form I need to construct my menu and to verify the acces to my proyect
If you don't understand my idea please write me and I send you my example
I hope you understand me
|
|
|
|
|
Hi All,
I want to validate a text box as a date from 01/01/1900 to 12/31/9999. I do the following, but my regular expressions validate from 01/01/1900 to around 2050. Can someone looking into it, where I'm going wrong.
<br />
<asp:RegularExpressionValidator ID="RegValidator" runat="server" ControlToValidate="TextBoxStartDate"<br />
ErrorMessage="DATE ERROR" Display="Dynamic" <br />
ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d"<br />
ValidationGroup="TextBox"><br />
</asp:RegularExpressionValidator><br />
Thanks a lot
I appreciate your help all the time...
CodingLover
|
|
|
|
|
I've solve the question my self. Thanks for all spending time to read my question.
I appreciate your help all the time...
CodingLover
|
|
|
|