|
Thanks! That works very well. sorry to be so you-know-what. Thanks again!
|
|
|
|
|
Hi All,
I have one web application which is having asmx web service files(created using 2.0). Now i have added few svc files to the same web application.
Anyone please tell me, how do i convert this application to ASP.NET Web Service Application (3.5)
I have seen a option, where you can "Convert to web Application" option for Web Service Applications. But I need vice versa procedure.
pleeeeeeeeeeeeeease help me.
Ramana
|
|
|
|
|
Hi Gurus,
This is the situation:-
I have a master page (masterpage.master) that contains a save button (btn_save). There are 3 contentpages that inherit this master page, each content page needs to use the save button but use the procdure for the content page. How do I make this happen that when user is on contentpage1 and user clicks save button, the procedure to save for contentpage1 is executed.
I am new to .net and have searched the web but in vain. Will appreciate any help. I am using Vb.net ,kindly reply with code / explanation in vb.
Thanks
|
|
|
|
|
You could create an event which the content page would subscribe to then handle the button click event on the master page and raise the event
public EventHandler<EventArgs> Submit;
public void OnSubmit(object sender, EventArgs e)
{
EventHandler<EventArgs> handler = Submit;
if (handler != null)
{
handler(sender, e);
}
} In your content page
public void OnInit(...)
{
((MyMaster)Page.Master).Submit += new EventHandler<EventArgs>(OnSubmit);
}
public void OnSubmit(object sender, EventArgs e)
{
}
I know the language. I've read a book. - _Madmatt
modified on Tuesday, March 22, 2011 1:56 PM
|
|
|
|
|
I do not understand , where would you create the event in the code behind of master page? Could you give soe more explanation and codesnipped vb?
|
|
|
|
|
The first snippet is in your master page, the second, as indicated, is in your content page.
What more explaination do you require?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
what will the EventArgs be? How does this work. Can you give me a working example?
Thank you for your time.
|
|
|
|
|
This is a working example.
I understand you are a novice but you don't seem to have a base from which to understand this. There is nothing more I can explain if you don't understand basic event handling in .net. I would suggest you pick up a book on ASP.NET and work through it. Then, if you still don't understand how this works, come back and ask more questions.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi Mark,
I've a few licenses of ESET NOD32 to be given away (It's fully functional, free, no strings attached, and nothing expected in return), and I chose a few people whom I think are contributing on the programming forums regularly. If you'd like one of those licenses, drop me a line.
You could write to me at rajesh AT indiamvps DOT net
Regards,
Rajesh.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
HI
my next project is online exam project.
My boss ask me some sugessions about security for online exam.
Please Suggest me. How can i provide security. and bla bla bla.
try and try untill reach success..
|
|
|
|
|
Rajeshwar Code- Developer wrote: and bla bla bla.
And you expect a sensible response to this?
I must get a clever new signature for 2011.
|
|
|
|
|
In CP there is a section for Web Security[^] so browse the articles there...do what do you want.
|
|
|
|
|
Private individual log in details is a start, also confirmation of payment of course fees.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Make sure to hard-code your connection strings in your webpages and make use of plenty of string concatenations to form inline sql statements.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
Guess you didn't get the joke
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Nah, I got it; but I've seen such things in production code.
Besides, you forgot to make sure it included raw user input in those concatenations, particularly when he is stringing-together DDL.
|
|
|
|
|
|
|
Hi...
In my application i used timer for data update. Want to show graph view via asp chart control. Timer calling every 2sec once data available in the database that information populate to chart then show its to page. Once data got i disabled the timer ( timer1.Enable = false). After that timer call once again in page_load callback method.
How can restrict these. Is possible to make synchronized call in asp timer
Thanks
|
|
|
|
|
If I understand you correctly (and there is a good chance that I don't, not enough tea this morning ), this won't work server side: Once the page is rendered to the browser it is pretty much closed for business and the page object on the server is close to disposal.
If you want timed updates, you'll need to call them from the browser side, your requirements seem especially suited to AJAX, there is a sample partial update here http://ajax.net-tutorials.com/controls/timer-control/[^]
|
|
|
|
|
I have a big issue regarding an Intranet website.
If i use Forms authentication everything works fine.. If I turn Windows authentication on I get logged in but it seems like I loose access to all files on the server.
I do have Identity Impersonate set to true so no matter if I login with Forms or Windows my User.Identity.name = GSPV\DK.. which is my domain and user.
I've tried to set maximum permission to all folders on the site to every possible user, but still it can't read, mostly images, from folders.
Unfortunally it's not possible to hook up my debugging environment to the IIS itself because of geographical issues.
In the IIS (6.0)/Directory Security I have disabled anonymous access and enabled Integrated windows authentication
My web.config looks like this:
<authorization>
<deny users="?">
</authorization>
<identity impersonate="true" />
<authentication mode="Windows />
btw.. If I set
<identity impersonate="true" userName="GSPV/DK" password="ThePassword" /> everything works great..
Anyone?
|
|
|
|
|
Have you tried something like this?
<configuration>
<location path="Images">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
</configuration>
http://msdn.microsoft.com/en-us/library/b6x6shw7.aspx[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
No luck.
It feels like the user is not getting set properly cause when I include userName and Password in the config-file it impersonates the GSPV\DK user
This works:
<identity impersonate="true" userName="GSPV\DK" password="ThePassword" /> This doesn't work (but I get logged in):
<identity impersonate="true" />
|
|
|
|
|
Is there a way in VStudio to set a breakpoint on a line where an exception is expected and tell the debugger that when a particular exception is encountered to "catch" it and proceed with the normal flow of execution? This is particularly useful so that putting a try-catch and then rebuilding would not be necessary while discovering exceptions. Hope not a newbie/ridiculous question.
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|