|
put all the pages which you wanna have in 'Logged in ' area in configuration section of web.config as follows.
<location path="Home_Account.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
|
|
|
|
|
hi
thanks for your response
do you mean that i have to add as many location path in the web.config file as the no of secure pages i have...
can you please show me how to write it for 2 web pages(account.aspx,transaction.aspx) in the web.config file
thanks in advance
i m pradip kishore from india,working in vb.net & asp.net
|
|
|
|
|
respected sir
i hav made a datagrid and bind it to database.anyone can update and delete the records with the help of this grid.
now i hav to search the records.
for that i am opening a modal dialog box.and on the basis of search criteria
it shows the records in a grid in modal dialog.Here for the searched records i hav also given the functionality to update and delete.
i hav updated some of the records here.
upto this everything is working fine.
now when i m going to close modal dialog box(either by a back button or using browser) i want to bind the parent's grid by updated records.
i have tried to refresh parent and used this javascript function on
click of the back button.
function Closewindow()
{
opener.location.reload(true);
self.close();
}
but it only refreshes my parent window.
which is not my objective.
any suggetion
Ajay
|
|
|
|
|
I want to store data type Struct in java Script. same Struct in Java or C/ C++. But I don't know Javascript can create data type Struct. ?
You can help me. how can I do type data Struct in JavaScript same Struct in C or java.
Thank you.
Regards.
|
|
|
|
|
you can create a class on the fly in Javascript. You can use JSON to pass structs to javascript from C#, but you can't have a 1:1 relationship between structs in C# and classes in jscript.
A class and a struct are the same thing, in C++, and I don't think jscript supports structs, as such, just classes.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
|
this question is my interview question..
What is the meaning of share point and what is the use of it....
|
|
|
|
|
|
do u have idea about KMS company in pune
|
|
|
|
|
Hi All!
I have a problem with message box in ASP.NET. I want to show a message box which alert for user after function executed. I used a Script segment to implement but when Message Box is showed then that page's background have a white color, no controls on it.
Please help resolve this problem.
Thanks!
|
|
|
|
|
How are you showing a messagebox ? Is it with C#/VB.NET, or with javascript ? C#/VB will work, so long as you browse on the server. you need to use a javascript alert to make it work on the client side.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Use javascript
alert('Hello');
:->
Pavan Pareta
|
|
|
|
|
I have a small Access table that is connected to a Gridview on a page. One of the columns in the Access table is an OLEObject field that stores picture files within the database. I'm trying to connect that field to the Gridview so that it displays the pictures. In the Gridview I'm using a ImageField. The DataImageURLField is set to the Access field name. When it runs it does not display the pictures. What else am I missing?
|
|
|
|
|
DataImageURLField will output the field contents into the src attribute of the resulting tag. Its expecting a string, you're giving it a bunch of binary data. Check the API docs for it.
Images can't be sent to the client that way, you'd have to make the URL point to another aspx page (or web servicy type thing) that takes a request parameter and pulls the image data out the DB and returns it down the response stream to the client (obviously being sent as image/type as the content type). Or even better don't store the images in the DB, rather write them to disk with a sequential file name and insert that into the DB (or if they have to be in the DB use a caching mechanism unless you have some fat servers!)
That make sense?
|
|
|
|
|
this is the error code "it is an error to use a section registered as allow definition='Mashine ToApplicatio' beyond application level.this error can be caused by a virtual directory not being configured as an application in IIS"
let's work together
|
|
|
|
|
It means you have a web config that sets this key, below your main directory. You need to define this directory as an application of it's own, or remove the entry.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hai,
in my application asp.net(vb.net)
if ds.tables(0).rows.count>0 then
'do something
end if
i am getting error table 0 cant be found ,what would be the problem
plz reply
thanks and regards,
surendra
surendra
|
|
|
|
|
Gee - could it be that your dataset is empty ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
i will check it out now
surendra
|
|
|
|
|
If it doesn't exist, you have an empty dataset.
|
|
|
|
|
Hi,
I got a textbox on .aspx file under Ok button , talking id from textbox and getting specific information. But If I change the value of textbox then the reportviewer cant change the information, its remain same information. I have put some toggle breakpoint to see the code is working or not. Inside the code data is changing but reportviewer cant change data.
Waiting For Your Help
Sarfarj Ahmed
|
|
|
|
|
Could anyone help me on how i can write an ASp.Net to access data from a web page(someone else web page). I want to access the page and read the data into my own asp.net page.
The web page data is expected in Table format.
Preferably,if there can be a conversion of the webpage data to another format for my page to use.
thank u in advance
t.aransiola
|
|
|
|
|
You can use a WebRequest or a WebClient object to request the page.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi.
I'm a new member here.
My English is not very well, but I hope it´s good enough to make you understand me.
Well...
I'm with a litlle problems here.
I registered a "Click" event
handler for the dynamicly added control. However, when I
click the control , its event handler isn't called. But If I add and register the event handler operation in the Page_load, it works well.
Here is the code:
protected void CreateTable()
{
HtmlTable tablegen = new HtmlTable();
HtmlTableRow rowgen = new HtmlTableRow();
for (int i = 0; i <= 2; i++)
{
HtmlTableCell cellgen = new HtmlTableCell();
if (i == 0)
{
cellgen.Width = "50px";
cellgen.Align = "center";
cellgen.InnerText = "......"
}
else if(i == 1)
{
cellgen.Width = "50px";
cellgen.Align = "center";
cellgen.InnerText = ".....";
}
else if(i == 2)
{
cellgen.Width = "50px";
cellgen.Align = "center";
ImageButton imgButton = new ImageButton();
imgButton.ImageUrl = "Test.gif";
imgButton.ToolTip = "Test";
imgButton.Click +=
new ImageClickEventHandler(imgButton_Click);
cellgen.Controls.Add(imgButton);
}
rowgen.Cells.Add(cellgen);
}
tablegen.Rows.Add(rowgen);
I call this method from a click event of a button.
I need to create controls, in this case ImageButtons, that are
dynamically loaded, and they must be allocated in the third cell of a table in every row. The curios is that they don't call the event handler when created out of the Page_Load.
Somebody can help me ?
Maximilian Thanks
|
|
|
|
|
If you add controls dynamically, they need to be recreated before the Page_Load event ( usually in LoadViewState ), or the viewstate won't be restored for the control in time for the event to have a control to attach itself to, so it will be lost.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|