|
Duplicate Authentication tags here - you have the same on line 50 and 52, both set to different values - that won't fly at all.
C# has already designed away most of the tedium of C++.
|
|
|
|
|
You amy want to read this How to get an answer to your question[^]
"Please help me" is not a very good subject. It will most likely ensure your question is ignored.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Check there should 2 web.config exist in your project folder.
delete one.
Rating always..... WELCOME
The only reason people get lost in thought is because it's unfamiliar territory.
|
|
|
|
|
thank everyone ! help me !! this trust the web.config is existed . Because i was opened and builded , next time i open new website , run . this error occur
I am sorry reply late
|
|
|
|
|
Hi Experts,
I am showing a alert in code level like,
Page.RegisterStartupScript("Error", "<script language=javascript> alert('Error while validating the imported CRF Mapping excel! Check the imported file for more Error Messages ');</script>");
My requirement is, i want to generate a excel file after clicking ok button in the alert but when i write the code below the RegisterStartupScript then both the alert and then file generation is done at the same time. I want to generate the file only after i click ok in alert. Any sugession are highly appreciated!!!!!!!
|
|
|
|
|
What is the error you are getting?
I would suggest, instead of using RegisterStartupScript, use alert on client side event only. And onClick of "Ok" from alert, post back to the server and generate the excel file.
Is it helping you? If not, please elaborate your question.
|
|
|
|
|
AS the reason of page life cycle of asp.net, so if you generate the excel file in the backend using C#,it will works out the excel first then the alert.
you needn't put the alert phrase into the backend,just write it on the frontend , using a function to to represent it,alertme for example , then in the asp.net button ,you just register the following code :
onclientclick="alertme();"
best regards...thx
I can do!
|
|
|
|
|
Did you mean to use confirm instead of alert ?
Use a hidden field to store a flag variable, After the alert statement (or confirm as the case may be), set the flag and submit the page using JavaScript (window.forms[0].submit). In the code behind Page_Load event, check for the flag and generate the file.
|
|
|
|
|
I have a Crystal Report which contain the Terms and Conditions that has to be printed at the End of the Report.I used page footer for that.But it should show only in first page.So I suppressed it.But when i suppressed pagefooter,i am able to see a lot of space.How to avoid that space.Hope ypu will help me.I tried a lot.
|
|
|
|
|
Where did you write the supress formula? The footer or the text item?
|
|
|
|
|
in footer,i wrote suppress formula and also i checked supprss blank space.but a space is there
|
|
|
|
|
hi alll
please help me ASAP
i need to call web service in window application now my web service devloped in delphi ....
i had add service reference and by creating its object i m ablt to get methods
now my problem is for the first time my application return me result but for the second call it will
throw me error for time out
e.x. having two form first will give me list of country and second will give me list of state
now if i click on country then it will return me data while for state it will trhow me time out exception
now i closed my win application and now this time i first open state form so it will give me data for state list
and for country list it will throw me exception
i m not sure but may be der is problem in calling because whenever i close my win application and then again
whtever form first time call means whtever object first time created will gve me data
plsss help me on this
Reasons are not Important but Results are Important.
http://www.sql4professional.blogspot.com
Swati Tripathi
|
|
|
|
|
Obviously, the connection to the web service is timing out. It could be a configuration error. Unless you are more specific and show us some code, we cannot help you.
|
|
|
|
|
Hi i have a gridview and edit hiperlink on it and i need edit a single row,how can i do it?
|
|
|
|
|
just use the gridview's rowcommand/row_editing/row_updating event ,have a try!!!
I can do!
|
|
|
|
|
Hi All.
We have a vb6 project and planning to migrate to vb.net using visual studio.
Googled it, but could not get proper result for it.
Is there any done this before?Please suggest.
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
Please try the VB forum, this.
Migration has been made many of times I'm sure, but for any reasonably sized project I doubt the conversion can be fully automatic.
|
|
|
|
|
In most cases I've seen it wasn't worth migrating from VB6 to VB.NET. Redesign and re-engineer the application to make use of better methodologies available with .NET
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Don't
It is far harder than you will ever think.
There are commercial products available that say they can do it for you, but this is not entirely true.
They can do parts, but the languages are not just superficially different, they are fundimentally different.
Easier to rewrite the thing from scratch.
------------------------------------
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[ ^]
|
|
|
|
|
I suspect I know which, but a) I fell down a programming hole till 3am so I'm questioning myself heavily b) I was a mostly an ASP.NET/backend dev 2001-2007, then I switched to desktop/backend, so I'm still ASP.NET rusty & getting back into it... I would like CPville's take on this bitof our architecture:
- We remoce the normal, built-in resource manager that gets the file from its physical location given the URL
-
We replace it with our own Manager which:
- Takes a specially coded URL
- Decodes it to an actual URL to get the resource
For example the URL of out home button is
http://www.uop.edu.jo/ResourceManager.axd?file=ucvozmcg&type=9&path=~/tonzvpkoy
but really is should be
/webimages/homeicon.gif
The filename and path are split up and run through a simple substitution cipher (see my blog for how secure that is) and the extension is given a numerical value (e.g. 1= .css 2 = .gif). The net result is that we are running extra code just to get resources lowering perfomance, the URL is longer, and [worst] the developers can't tell what is coming from where. The resource manager doesn't BTW, it just maps semi-obstifucated information to the actual loaction, so it is not even looking after where things are stored.
Other than a cack-handed attempt at securing something that doesn't needed are there any advantages to this approach, above job security?
|
|
|
|
|
With a sufficiently long file name, it would be hard to brute force get files. But with the example you gave (ucv0zmcg), that may be open to brute forcing. Supposing the method of jumbling the file names was secure and you added some extra data to make the jumbled data (encrypted, hopefully) long, then it may make it harder for people to randomly get files.
There are better (more secure) ways, but that seems like one potential advantage. Another "advantage" would be that the encrypted data may be base64 encoded or something, so you don't have to worry about funky characters being in the URL. You could just do the base64 encoding, but hey you wanted advantages so that's one.
Also, it makes it harder for somebody to get random files on the server. Though, a better way to do that would be to associate an ID to each file path and use that ID in the URL to look up the file. That way, you only serve up files that have been explicitly allowed by the database.
|
|
|
|
|
Thanks for the input, what is happening on our site is so odd that I'm second guessing myself, along the lines of "This is so stupid I must be missing something". The only reasons I could come up are pretty much yours (except the one about getting random files on the server).
The cryptography we have is a joke, I would've understood what was happening if the Original "Programmer" had encrypted with any degree of sense , but take a look at my blog entry (here[^]) to see what he actually did. Brute force would have long strings encrypted our way in no time, though it is be quicker to work out the cipher with the little grey cells! Curiously r maps to r, so I doubt he checked the cipher properly.
I could also understand if the resource manager actually managed resources putting them/getting them from somewhere more exotic than the web folder structure like a file server or a Database or something, but it doesn't even do that. Frankly, this is bit is only the tip of the iceberg, and I have to figure out how to migrate the damned thing to something that can actually be maintained.
|
|
|
|
|
Hi All,
I am developing one website. In That I want to call a popup window on dropdown_selectedIndexChaged.
If I put That DropDown in an Anchor tag The Window Opens As Soon As I Click On DropDown Which I Dont Want.
I Want that Popup Should Open After Selecting The Value Of That DropDown.
So Please Help Me To Solve My Problem.
And is there any way to write Anchor Tag in code behind and Call It On dropdown_selectedIndexChaged To Open A Popup.
My Anchor tag Is Like This :
<a id="AA1" runat="server" class="thickbox" title="" href="InventoryQty.aspx?action=add&TB_iframe=true&height=420&width=700">
<asp:DropDownList ID="InsertDDLItem1" runat="server"
AppendDataBoundItems="true"
DataTextField="ItemName"
DataValueField="ItemID"
AutoPostBack="true"
OnSelectedIndexChanged="InsertDDLItem1_SelectedIndexChanged" Width="280px">
<asp:ListItem Selected="True" Value="0">Select ITem Type</asp:ListItem>
</asp:DropDownList>
</a>
Please Help Me To Solve My Problem.
Thanks & Regards
Sanket Patil
.
|
|
|
|
|
This would best be implemented using JavaScript and handling the onchange event there to open the new window.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
First of all, get rid of the anchor tag. You'll need to use the onchange event to initiate some JavaScript to open a window. You'll have to modify it a bit to work with your code, but this is some code I had laying around that you can use:
<script type="text/javascript">
function HandleDDClick(element) {
if(element.selectedIndex > 0) {
var url = element.options[element.selectedIndex].value;
window.open(url);
}
}
</script>
<asp:DropDownList runat="server" onchange="HandleDDClick(this)">
<asp:ListItem Text="Select an item..." />
<asp:ListItem Text="Google" Value="http://www.google.com" />
<asp:ListItem Text="Microsoft" Value="http://www.microsoft.com" />
</asp:DropDownList>
|
|
|
|