|
Sorry for the quick posting. I got it to work by:
if (blah blah)
{
GridView1.Column[4].Visible = false
}
else
{
true
}
Thanks anyway gang. Take care
|
|
|
|
|
This may seem like a very basic question but how to I get ASP.NET to authenticate based on the credentials provided in a .config file?
It's just for testing a site and when it's moved to production it will be in an SQL Database but whatever I do it tries to find an SQL database in ~/App_Data to load the authorization information from.
|
|
|
|
|
You probably have a sql-based membership provider configured in your web.config. Something like this:
<system.web>
...
<membership defaultProvider="xxx">
<providers>
<add name="xxx" type="System.Web.Security.SqlMembershipProvider" ... />
</providers>
</membership>
...
</system.web>
You will probably want to change the <membership> configuration to a different provider for your test environment.
|
|
|
|
|
Nope, that's the thing which is annoying me, the web.config is blank from providers but I looked through the assemblies in the Object Browser and couldn't see anything to change it to.
|
|
|
|
|
Hi,
On server side in form code behind class, I have a function
<AjaxPro.AjaxMethod()> _
Public Function test_get() As PROPREGLB.AssetQuerry
Dim v As PROPREGLB.AssetQuerry '
v = New PROPREGLB.AssetQuerry
v.AddNote("ASP.NET")
v.AddNote("2.0")
Return v
End Function
I call this function from my page javascript
function test()
{
var t;
debugger;
var retobj = AssetDataEntry.test_get();
}
when I debug retvalue,
I get retvalue as
__type "PROPREGLB.AssetQuerry, App_Code.hpedrzja, Version=1.0.5.31325, Culture=neutral, PublicKeyToken=null"
How to convert retval as the proper object of PROPREGLB.AssetQuerry
What kind of typecast has to be used.
I need to call methods available in
PROPREGLB.AssetQuerry class from the returned object in javascript also need to avail the existing data(inserted in the server side) in the javascript client side code.
any help will be highly apreciated.
regards
lee
Leya
|
|
|
|
|
Hey Guys
I want to display records from db having multilevel categories
ID, Name, Description, ParentID(ID of parent category).
I found many examples to show categories in heirarchical structure, BUT these are using Stored Procedures! Is there any efficient way to achieve this in C# ???
Thanks in Advance
Work Smart...
|
|
|
|
|
Hi All,
I have System.Xml.XmlDocument xmldc = new System.Xml.XmlDocument(); I am able to load values in to it from XML String.
Now I want to read these values in to DataSet object or DataTable object. But without writing it in to the file. By writing in to the file I can but I dont want to use it.
If you want we can write it in to XMLReader objet, shouldnt write in to the file, which is time consuming.
Any help is very usefull.
Thanks a Lot,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Hi guys i having some probs ...,
Plz any one knows help me...,
On each monday one stored procedure have to run automatically...,
How can i do that?
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
I suggest you concentrate on one issue at a time.
|
|
|
|
|
leppie wrote: I suggest you concentrate on one issue at a time.
Yes, like hiring a developer. Oh no, how to do that?
led mike
|
|
|
|
|
New one wrote: How can i do that?
With Sql Agent.
New one wrote: please don't forget to vote on the post
Done. Bad Question. Its in totally the wrong place with little/no relevant information.
|
|
|
|
|
Hi my dataset having multiple datatable...,
In runtime its creating multiple datatables...,
So we cant exactly tell how many datatables its having...,
Now all the datatables i want to write it in, different different excel file how to do that?,
Plz help me
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Hi there
I have a page with a DDL which binds the data in the .aspx page rather than the code behind. It was all working nicely until I moved this page onto another computer - it was working on one with Visual Web Developer Xpress but now it won't work on Visual Studio 2005. I thought maybe it is because the versions of .Net are different. I'm a newbie so please don't patronise!
Here is a snippet of my code:
<body>
<form id="form1" runat="server">
<div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:angell_eurosalesConnectionStringLocal %>"
SelectCommand="SELECT DISTINCT [BicCode], [Description], [BicCode] + ' : ' + [Description] AS CodeDesc
FROM [tblBicCode] WHERE LEN(LTRIM(BicCode))=1"></asp:SqlDataSource>
</div>
Please someone help me!
Lorna
|
|
|
|
|
Hello all,
I am opening a popup window on a link button click. When popup window opens user filled up the form and click on submit button then a mail goes to client and document get downloaded. Once the mail send and a popbox box shows user and promt him to save or open a document. I want to close the popup window and mail get send to admin. How can i do this.
i have tried following once mail get send
[code]
Page.ClientScript.RegisterStartupScript(GetType(Page), "Confirm", "CloseWindow()")
[/code]
but window isnot getting closed.
Please guide me.
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
btn_close.Attributes.Add("onclick", "window.close(); return false;");
Response.Write ("<script language = javascript>window.opener=self;window.close();</script>");
|
|
|
|
|
hi,
i have tried the code. Window is getting closed as soon as i click on button. But i want to close the window when mail get send to user and prompting user to download or save or cancel the document.
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
So you want the user to recieve the e-mail, then after they have recieved it you want to provide a prompt or cancel or save the document before they close the window?
|
|
|
|
|
Yes,
As per the functionality for downloading the document user must fill up a form containing his information. Once user fill and click on submit i m sending a mail to admin and downloading the document for user. When document get download Mozilla Firefox/internet explorer displays a prompt and ask user that he want to save document or just want to open. (like whenever we are downloading any file from server) once user done his action for document or after sending the mail i want to close that form (which is appearing in popup window).
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Hi All,
I am writing code in code behind file to generate Unique Id in sql table when the user clicks the Register Button.
So there is a possibility of registering more than one customer with in a fraction of second......I that particular situation how to avoid CONCURRENCY CONTROL.
Note: I AM WRINTING THE CODE IN ASPX.CS FILE OF BUTTON_CLICK EVENT.
Thanking you
Mcmilan.
|
|
|
|
|
|
Hi,
When I open my website in different browsers Controls layout is not in a correct position....It looks good in internet explorer(6.0).......
Please help me as soon as possible........
Thanking you
Mcmilan.
|
|
|
|
|
Thats because browsers render css differently.
A webiste designed for IE might not look correct in Firefox.
This is mainly down to the fact that IE almost corrects your mistakes in your css code where as firefox doesnt.
You will just have to go through it and change parts to suit both browsers
|
|
|
|
|
mcmilan wrote: When I open my website in different browsers Controls layout is not in a correct position....It looks good in internet explorer(6.0)...
This is very common for a web site that is developed for IE. The CSS is written to depend on the rendering errors in IE, so it will not look as intended in any browser that renders the page correctly (which is pretty much all other browsers).
Here you can find a list of some of the rendering errors in IE[^].
First of all, make sure that you have a working doctype tag for the page, so that it renders in standards compliant mode, not it quirks mode.
I suggest that you build the page so that it works correctly in Firefox, then it will almost always look the same in other browsers (except IE). After that you can tweak the CSS to work for IE also.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
I am using javascript to close the window when I click the Button. I am using window.close() in Response.write() .....It is working nice in IE .....
But it is not working in Mozilla......
Thanking you
Mcmilan.
|
|
|
|
|
mcmilan wrote: I am using javascript to close the window when I click the Button. I am using window.close() in Response.write() .....It is working nice in IE .....
But it is not working in Mozilla......
Instead of response.write,use this line code
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "key", "window.close();", true);
please don't forget to vote on the post that helped you.
|
|
|
|