|
You can use Open() method of ModalPopupExtender in code behind when new row is added.
|
|
|
|
|
Hi,
I am developing ASP.net and VS2010; I am using MVC; I right click on Model Folder to choose an Data Model; just wondering to know what is difference between Dataset and SQLServerDatabase?
|
|
|
|
|
Dataset are inmemory objects, these are used to store data (in table form).We fetch data from the databse, fill it in databse. Now we do our manipulation in the dataset and show the results accordingly. .NET provides the facility to do most of the opertaion that we can do with database table. We use dataset , when there is low no records in resultant table.
While SQLServerDatabase, we store in database. Ther are stored in files at harddisk.Obusly we have bit more flexibility over dataset. If number of records are higher, we use databse for all the manipulation..
|
|
|
|
|
what are the advantages of .ashx pages and how can I write Html tags in ashx file?
Sample url
Page Extension is ASHX[^]
|
|
|
|
|
We used to write HTTP Handlers at certain situations in our applications. In traditional way, writing Handlers needs to several steps. To avoid these, ASP.NET provides a way to write the HTTP Handler by just using a .ashx files.
We use Handlers, to handle certain situations like, if we want to process some different file extensions,for changing themes etc..
for details, have a look to followng links..
Click here 1
Click here 2
|
|
|
|
|
ok thanks for the links.
one more doubts, how to handle click events below submit button in the .ashx page.
context.Response.Write(
"<input type=submit name='Lookup'
value='Lookup'></input>");
|
|
|
|
|
I have to say that, given the importance of validating user input against SQL Injection, XSS and the like, that someone (.. Microsoft themsleves, as a .NET class) haven't written a comprehensive class library to take care of this. Client side validation doesn't count - though having said that, the routines used for that must go some way at least towards a solution.
I know that the new .NET validation server controls can validate server-side, but they still expect the user to define (too much) in terms of pattern matching, for example. i.e., they are too complex; what is really needed is something much simpler that just returns True or False depending on whether the input is a potential threat in terms of SQL Injection or XSS. Whether they've entered the correct data in the correct field is another issue.
I know it's a tricky task, but surely not beyond the wit of one of you eggheads out there But perhaps I've missed it, and there are such libraries available...
|
|
|
|
|
Hi all
I need to validate a string to allow html or simple text but not script language means a textbox can accept bold, italic tag of html
but not script tag like alert("hi");
how can i do this
Any help would be appreciated..
Amit
|
|
|
|
|
Just check the <script tag.
if(txtBox.Text.Contains("<script")
|
|
|
|
|
It takes a bit more than that............
what about if the symbols are encoded, what about if the user puts whitespace between the symbol and the 's' there are various other things to think about.
Search Google, there are various articles relating to Validating User Input and limited HTML;
e.g.
http://www.brainhandles.com/techno-thoughts/form-validation-php-html[^]
Dave
Find Me On: Web| Facebook| Twitter| LinkedIn
CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.
|
|
|
|
|
I have developed a set of ssrs .rdl reports and am trying to display them from the reportviewer control embeded in my asp web page. The problem is that when I select the print icon on the reportviewer I am prompted to install ms sql server. I need help here. What is the best way to print .rdl reports from the web page's embeded reportviewer control to the client's local network printer?
Thanks,
Steve
|
|
|
|
|
After doing some research it appears that using the RsClientPrint ActiveX control is the way to go. Is this correct? Now if this is the best way to do what I want how would I initially install it on every client machine that is accessing my website? Any help with this would be great!. Also, is there a way to set the reportviewer print layout to legal size by default?
Thanks,
Steve Holdorf
|
|
|
|
|
Re: Just to clairfy my last post. When I said that I wanted to set the reportview print to legal size I mean portrait mode on legal size paper. Again, any help would be great!
|
|
|
|
|
I have a question..
where is codeproject.com hosted? with which company?
|
|
|
|
|
aaaaannnnndddd how is this related to ASP?
|
|
|
|
|
It's hard to know for sure but based on their use of easydns to manage their own dns it's a reasonable assumption that they might own and use their own servers.
|
|
|
|
|
Scratch that....
http://www.onx.com/
is the host
|
|
|
|
|
Well, your question is not related to asp.net still i am answering.
The Registrant of Codeproject is: Maunder, Chris.
IP Address: 69.10.233.10
Server Type: IIS 6
email registered for Administrative/technical contact is: webmaster@codeproject.com
For more details, please look into whois information of codeproject. It is publically avialable.
|
|
|
|
|
Hi,
any suggestion to bypass popup bloker ?
Except the use of modalpopup extender.
thanks,
Hemant
By:
Hemant Thaker
|
|
|
|
|
Please god no - Popup blockers were developed for a reason, you know...
|
|
|
|
|
right,..
thanks.
By:
Hemant Thaker
|
|
|
|
|
Hi,
Basically when user goes to a site for the first time - say www.abc.com - the cookie is set so that user see the pop up promotion and the main home page is freezed(transparently) and then user either select close and go to home page or continue with the promotion on that...
I have done this in past but now i have totally forgotten what is it called exactly - i know it's not pop up but some other term used for it.
Once i know the term i can Google it and will try to refresh my memory to figure out how to do that bit.
Thank You
Andyyy
|
|
|
|
|
|
oh yes - thanks
|
|
|
|
|
Brij wrote: model
You mean modal... This[^] is a model... (may or may not be SFW)
|
|
|
|