|
True, I forgot. My response has been edited. The increment should be after the imageNum is used.
Abhishek Sur wrote: I just used this for security purpose.
Explain?
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Explain
Might be if somebody initializes it with "" .. or using some existing variable which is having value as character... (Not in this code )
|
|
|
|
|
Hi,
I want to build a user friendly SQL builder for my clients using AJAX? Can someone give me some ideas on how to do it?
Thanks,
Raja.
|
|
|
|
|
Start here[^] or here[^]
only two letters away from being an asset
|
|
|
|
|
Hi All,
i am struck in between the logic.
My question is i am loading the user control dynamically as follows.
step1:
--> In Defalut.aspx.cs--> page_Load i am written
--> Control uc = LoadControl("MyUserControl");
PlaceHolder.Controls.Add(uc);
step2: In UserControl there is GridView Control Need to bind the gridview only
in "Default.aspx.cs"
Can you please help me, how to bind the gridview control of usercontrol which is loaded and need to bind only in Defalut.aspx.cs
Thanks in Advance.
JohnDas
|
|
|
|
|
Johndas wrote: how to bind the gridview control of usercontrol
The way you normally would, assign the datasource and call DataBind.
Johndas wrote: need to bind only in Defalut.aspx.cs
Set the data source for the gridview to null in this case.
only two letters away from being an asset
|
|
|
|
|
Make the gridview of the Usercontrol as public,
Add
uc.gridView.DataSource= yourdatasource;
uc.gridView.DataBind();
Or you can modify the control to handle this itself ..
|
|
|
|
|
IMO, a very poor design to directly expose the controls within a user control or server control.
only two letters away from being an asset
|
|
|
|
|
Ya. Then he can have a property(I thought the user already knows the use of properties ) to expose the gridview...
|
|
|
|
|
Then why the down vote?
only two letters away from being an asset
|
|
|
|
|
Sorry friend... Vote changed.
|
|
|
|
|
Thanks, but negated by pettiness from MarkyMark1961[^] I assume
only two letters away from being an asset
|
|
|
|
|
These downvoters have the opposite effect in the end. I've corrected the 1 votes.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks
only two letters away from being an asset
|
|
|
|
|
|
Not worth asking here IMHO. Might be better off asking in General IT issues or Work and Training related issues forum.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Are you the one asking, or the one getting the interview ? If you don't know what to ask, then you don't know how to hire someone. If you don't know the answers, then we can't possibly give you the exact answers to lie your way into the job, nor would we want to.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi
in a webapplication to redirect a page to another page i am using the following code
Response.Redirect(dl.url + "LoginPage1.aspx", True)
where dl.url is my wesite url
it worked fine for few months back
but now it showing a error
i found that it is response.statuscode=200
now what is this Response.Statuscode=200 error
how can i solve this
earlier it worked fine ,i didnt touch the code in this page and it is also giving the error like this
Server Error in '/' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'CreateResourceBasedLiteralControl' is not a member of 'ASP.masterpage_master'.
Source Error:
Line 1: <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: C:\Inetpub\vhosts\shieldpro.in\httpdocs\MasterPage.master Line: 1
please help me
|
|
|
|
|
Inherits ="MasterPage" should point to your class in codefile.
Say
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="myMasterPage"%>
should point to
Public Class myMasterPage<br />
Inherits MasterPage
|
|
|
|
|
hi abhishek
i too got the same problem and struggling hard to solve it
as u said i checked with my webapplication
i changed like this
in code file
//MasterPage.master.vb
Partial Class MasterPage
Inherits System.Web.UI.MasterPage
End Class
in MasterPage source file
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
both are same now but y it is showing the same error
|
|
|
|
|
Hello,
Can one tell me what is the best available Product Catalog Solution (Commercial Only).
Solution must be must be customizable
Must be able to store or pull images, pdf and possible videos from a database or within the CMS.
Needs to be able to integrate with our current CMS http://www.sitefinity.com
Must Be on .Net Platform (Only Microsoft compatible solutions)
Must be able to support multiple attributes three level deep.
Must be able to support Complex Hierarchy greater than two levels.
Must be able to tie into SQL server, Oracle (Complete Microsoft compatibility)
Product Solution must have a search feature or module
Must be able to batch upload products for quick product updates
Must be able to attach product specs, documents and images to Product details.
Possible solution to link the product catalog with the shopping cart.
Any urgent response will be appreciate able.
Thanks.
|
|
|
|
|
I think this is not the right place to ask... Its ASP.NET forum.
|
|
|
|
|
Im trying to put my ASP.Net application online but I just keep getting "You are not authorized to view this page" errorpage (error 401.1).
Heres what i have done:
-Placed the complied ASP.net application and its files to D:\mypage\
-Created a virtual folder in IIS 5.1 called mypage and selected correct ASP.Net version (2.0.50727)
-Directory security is set to anonymous access (using IUSR_machinename). No integrated windows logon is selected.
Now when i try to open from client side http://client IP/mypage/ i get "You are not authorized to view this page".
Im out of ideas. When I did the same on my local host everything worked fine.
Thax in advance
|
|
|
|
|
Check if the virtual directory itself points to correct directory. Sometimes we often point to directory just parent to it and find such problems.
|
|
|
|
|
i hv given right directory path.
n problem is still unresolve
|
|
|
|