|
Guess that is a great answer for sure.
|
|
|
|
|
Hi, millions of dollars? a lot of money. You can use express edition its totally free.
Hope this one can help.
Thanks
Hi, Please select Good Question if my answer are fit to your Question.
|
|
|
|
|
I'm using asp:GridView on a page that uses a Master Page, and I added a template field to grid so that I can pop up a window instead of taking them to a full page.
When I click on the link that should call the script to open the popup, I get the error "Microsoft JScript runtime error: Object expected", & I haven't really seen any good answers online yet.
I'm using this, pretty much as given @ this article: Popup window for the GridView[^] (slow traffic there so posting here)
If anyone could provide a corretive assessment(ie: HELP!!!), that'd be great!
My page source looks a bit like this:
<code>
<asp:Content ID="Content1" runat="server"
contentplaceholderid="MainContentPlaceHolder">
<script language="javascript">
var popupWindow
function openPopup(strOpen) {
popupWindow = window.open(strOpen, 'DaaaaName', 'width=500, height=700, top=100, left=300');
if (window.focus) popupWindow.focus();
}
</script>
<asp:GridView......>
.....
< Columns >
......
<asp:TemplateField HeaderText="Rate it?">
< ItemTemplate >
< a href="javascript:openPage('Ratings.aspx?ID=<%# Eval("ID") %>')">Rate it! </a >
< /ItemTemplate>
< /asp:TemplateField>
< /Columns>
......
< /asp:GridView>
< /asp:Content>
</code>
|
|
|
|
|
Hi, make sure after you close your popup you will alwys return a value to your page(gridview).
|
|
|
|
|
Hello,
If you mean I should return true; from my javascript function "openPopup", I've already tried that w/ no effect on the error msg I'm getting about "Object expected"
Thanks
|
|
|
|
|
hey,
I cant find any function openPage() defined in script.that is why, u r getting object expected error. may be u r trying to call openPopup() function.
Happy coding.....
|
|
|
|
|
well hell, if that's not what it is. I love it when I do that. Thank you sir for your extra pair of eyes, it works as expected now.
|
|
|
|
|
I am trying to add a repeater to a view (in multiview control) at runtime...
i coded as below
Repeater repeater = new Repeater();
//repeater control requires template
TemplateBuilder template = new TemplateBuilder();
//for proper alignment , i want to insert a table with cells
HtmlTable table = new HtmlTable();
HtmlTableRow row = new HtmlTableRow();
HtmlTableCell cell = new HtmlTableCell();
Label l = new Label();
l.Text = "Model";
cell.Controls.Add(l);
HtmlTableCell cell2 = new HtmlTableCell();
TextBox t = new TextBox();
t.Text = "ModelNumber";
cell2.Controls.Add(t);
row.Cells.Add(cell);
row.Cells.Add(cell2);
table.Rows.Add(row);
ControlBuilder c=new ControlBuilder();
template.InstantiateIn(table);
repeater.ItemTemplate = template;
viewModels.Controls.Add(repeater);
multiViewResult.SetActiveView(viewModels);
i have added this code to page_load,
The text that i am assigning is dummy here but i would be assingin string to it.. i did this to try if it works but it turns out that it works fine... it doesn't throw exceptions but still no data is displayed... can anyone help me with this problem
thanx
|
|
|
|
|
Hi,
I have a question, a kind of simple question but i don't know the exact answer so please help with providing one or 2 reasons...
i want to populate my asp.net page with data retrieved from database. i can bind the data in onloadcomplete method and can do the same in pageload method... Which of these two is preferred choice and why? i am gonna add controls at runtime... when should controls be added... plz provide help
thanx
|
|
|
|
|
Neither. PRerender is when you should read data from the db, so if any data is changed by an event, such as a button click, you read the data after the change.
|
|
|
|
|
wow...thanx... do you have any article on all these methods, coz i think i really need to learn about these methods... how about when one is dynamically attaching controls, where do we put that code...
I think i need to read such things but i've never read about such practices in any book or any article...
where can i find help
thanx
regards
|
|
|
|
|
dynamically added controls need to be added before page load, and need to be added every time the same, if you want them to have viewstate.
There's a great book which explained all of this really well, called Essential ASP.NEt with examples in C# ( there's a VB.Net version also )
|
|
|
|
|
I am trying to run my asp.net project for testing in my laptob and I use Kaspersky internet security. The project cannot be displayed as the internet explorer showed. Please if you have any idea that would be greate. Thanks
|
|
|
|
|
Did U try changing the tools option setting in Internet settings?
|
|
|
|
|
Thank you for replying, but how exactly should I do that?
hawari
|
|
|
|
|
Go to tools
internet options
Click on advanced
There uncheck the Disable the script debugging option.
I hope that solves ur problem
|
|
|
|
|
Hi, thanks for looking
Im trying to change the datatype of a column from a datatable in a dataset from smallmoney to money
At first when i made the dataset the column in the DB was smallmoney then i changed the column in the DB to money, but in my dataset i have made some relations, set some default values, added custom queries.... I wouldnt like to redrop the table, besides it would be good to know how to do it
Ive already tryed changing directly the dataset.designer.vb file, finding all occurrences of smallmoney and replacing them with money, but if i make any change to the dataset designer, all code is rewritten and the columns are smallmoney again
The datatype of the money and smallmoney columns look the same in the dataset designer (decimal)
Where is the datatype of columns saved??
The column in DB is already money type
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
Hi All,
Its working fine locally and in QA environment but in the production we are having this issue.
We are calling a third party service from a our web application there we are getting this exception.
Now please have a look at below
1. Its happening for only few users (2 out of 100).
2. Not able to reproduce the issue locally.
Server is not having any information for this reuquest (No logs)
I have googled and found that there is problem in the request
But i am able to send the same data for which we got this exception in the server
Please help
Does it possible the request get this exception before reaching the server
If no then server must log this exception..
Please give some thoughts
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
You're actually making the call on the client machine, not the server ?
Can you visit the user, or use gotomeeting to reproduce the issue yourself ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi Christian,
Thanks for the reply
Christian Graus wrote: You're actually making the call on the client machine, not the server ?
Actually we are calling ajax from client side to get few information required to send in the request and we are calling this request from the server. So in short we are not making a call from client direclty to the service.
Christian Graus wrote: Can you visit the user, or use gotomeeting to reproduce the issue yourself ?
Can't do that
One question Chris
Can i get the bad request exception at the proxy layer ?
I am suspecting the exception is ocurring here it self Please
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Sandeep Akhare wrote: Can i get the bad request exception at the proxy layer ?
I'm not sure, but I'd be doing some checks to see if the AJAX call is failing. I'd also be asking if other AJAX calls work on those machines. Is the AJAX call being made at all, because, if it is, then it's the same server that should be making the actual call, so why would that not work for a specific user ? It's a process of elimination, if it never works for 2 users and always works for the others, I think the AJAX call itself is getting lost or blocked.
You can use www.gotomeeting.com to set up a web meeting where you can control the users machine to try to diagnose the problem.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Christian Graus wrote: I'd be doing some checks to see if the AJAX call is failing
Ajax call is not getting failed because we are logging the data before calling the service and we see all the right data there.
Christian Graus wrote: I'd also be asking if other AJAX calls work on those machines.
Yes other calls are working one 1 specific call is getting failed
Christian Graus wrote: Is the AJAX call being made at all, because, if it is, then it's the same server that should be making the actual call, so why would that not work for a specific user ?
Thats the issue
Christian Graus wrote: You can use www.gotomeeting.com to set up a web meeting where you can control the users machine to try to diagnose the problem.
I can't do that, Customer service will handle that issue. Here we don't have any way to do that but can send a feedback regarding this.
All production issue we came to know from log files which are always 1 day late.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Well, if you have contact with the server, then you have a very strange issue indeed. Can you add a level of logging code to try to tell you move about what goes wrong, then ask the client to make a request to test it ? Can you put packet sniffers on the server to see what calls are made and what data is sent ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
At service server side which we are calling from our web application there is no any information for this request in the logs .
It seems that request is not going at the servert itself.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
We have a fairly large project with a lot of roles and a lot of pages. For a time, we've been using location elements in the web.config to manage security, but it is starting to get unmaintainable.
What I would really like is some sort of way that I can authorize or deny a request based on the user's permissions that doesn't involve tampering with a config file. Ideally, this thing should get its data either from a database or by being hardcoded (for instance, it would be awesome if there was a nice fluent interface that I could use for this).
Does anyone have any suggestions?
Will
|
|
|
|